2022-10-06 14:01:42

by kernel test robot

[permalink] [raw]
Subject: [net] 0e4d354762: kernel-selftests.net.fcnal-test.sh.fail


Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: 0e4d354762cefd3e16b4cff8988ff276e45effc4 ("net-next: Fix IP_UNICAST_IF option behavior for connected sockets")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kernel-selftests
version: kernel-selftests-x86_64-700a8991-1_20220823
with following parameters:

group: net
test: fcnal-test.sh
atomic_test: ipv6_udp

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz (Skylake) with 28G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/r/[email protected]



# selftests: net: fcnal-test.sh
# SYSCTL: net.ipv4.udp_early_demux=1
#
#
# ###########################################################################
# IPv6/UDP
# ###########################################################################
#
#
# #################################################################
# No VRF
#
#
# #################################################################
# udp_l3mdev_accept disabled
#
# SYSCTL: net.ipv4.udp_l3mdev_accept=0
#
# TEST: Global server - ns-A IPv6 [ OK ]
# TEST: Device server - ns-A IPv6 [ OK ]
# TEST: Global server - ns-A IPv6 LLA [ OK ]
# TEST: Device server - ns-A IPv6 LLA [ OK ]
# TEST: Global server - ns-A loopback IPv6 [ OK ]
# TEST: No server - ns-A IPv6 [ OK ]
# TEST: No server - ns-A loopback IPv6 [ OK ]
# TEST: No server - ns-A IPv6 LLA [ OK ]
# TEST: Client - ns-B IPv6 [ OK ]
# TEST: Client, device bind - ns-B IPv6 [ OK ]
# TEST: Client, device send via cmsg - ns-B IPv6 [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B IPv6 [ OK ]
# TEST: No server, unbound client - ns-B IPv6 [ OK ]
# TEST: No server, device client - ns-B IPv6 [ OK ]
# TEST: Client - ns-B loopback IPv6 [ OK ]
# TEST: Client, device bind - ns-B loopback IPv6 [ OK ]
# TEST: Client, device send via cmsg - ns-B loopback IPv6 [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B loopback IPv6 [ OK ]
# TEST: No server, unbound client - ns-B loopback IPv6 [ OK ]
# TEST: No server, device client - ns-B loopback IPv6 [ OK ]
# TEST: Client - ns-B IPv6 LLA [ OK ]
# TEST: Client, device bind - ns-B IPv6 LLA [ OK ]
# TEST: Client, device send via cmsg - ns-B IPv6 LLA [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B IPv6 LLA [ OK ]
# TEST: No server, unbound client - ns-B IPv6 LLA [ OK ]
# TEST: No server, device client - ns-B IPv6 LLA [ OK ]
# TEST: Global server, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, local connection - IPv6 loopback [ OK ]
# TEST: Device server, unbound client, local connection - ns-A IPv6 [ OK ]
# TEST: Device server, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Device server, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device send via cmsg, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device client via IPV6_UNICAST_IF, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device client, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device send via cmsg, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - ns-A loopback IPv6 [FAIL]
# TEST: Global server, device client, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device send via cmsg, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - IPv6 loopback [ OK ]
# TEST: Device server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: No server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: UDP in - LLA to GUA [ OK ]
#
# #################################################################
# udp_l3mdev_accept enabled
#
# SYSCTL: net.ipv4.udp_l3mdev_accept=1
#
# TEST: Global server - ns-A IPv6 [ OK ]
# TEST: Device server - ns-A IPv6 [ OK ]
# TEST: Global server - ns-A IPv6 LLA [ OK ]
# TEST: Device server - ns-A IPv6 LLA [ OK ]
# TEST: Global server - ns-A loopback IPv6 [ OK ]
# TEST: No server - ns-A IPv6 [ OK ]
# TEST: No server - ns-A loopback IPv6 [ OK ]
# TEST: No server - ns-A IPv6 LLA [ OK ]
# TEST: Client - ns-B IPv6 [ OK ]
# TEST: Client, device bind - ns-B IPv6 [ OK ]
# TEST: Client, device send via cmsg - ns-B IPv6 [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B IPv6 [ OK ]
# TEST: No server, unbound client - ns-B IPv6 [ OK ]
# TEST: No server, device client - ns-B IPv6 [ OK ]
# TEST: Client - ns-B loopback IPv6 [ OK ]
# TEST: Client, device bind - ns-B loopback IPv6 [ OK ]
# TEST: Client, device send via cmsg - ns-B loopback IPv6 [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B loopback IPv6 [ OK ]
# TEST: No server, unbound client - ns-B loopback IPv6 [ OK ]
# TEST: No server, device client - ns-B loopback IPv6 [ OK ]
# TEST: Client - ns-B IPv6 LLA [ OK ]
# TEST: Client, device bind - ns-B IPv6 LLA [ OK ]
# TEST: Client, device send via cmsg - ns-B IPv6 LLA [ OK ]
# TEST: Client, device bind via IPV6_UNICAST_IF - ns-B IPv6 LLA [ OK ]
# TEST: No server, unbound client - ns-B IPv6 LLA [ OK ]
# TEST: No server, device client - ns-B IPv6 LLA [ OK ]
# TEST: Global server, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, local connection - IPv6 loopback [ OK ]
# TEST: Device server, unbound client, local connection - ns-A IPv6 [ OK ]
# TEST: Device server, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Device server, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device send via cmsg, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device client via IPV6_UNICAST_IF, local connection - ns-A IPv6 [ OK ]
# TEST: Global server, device client, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device send via cmsg, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection - ns-A loopback IPv6 [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - ns-A loopback IPv6 [FAIL]
# TEST: Global server, device client, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device send via cmsg, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection - IPv6 loopback [ OK ]
# TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - IPv6 loopback [ OK ]
# TEST: Device server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: No server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: UDP in - LLA to GUA [ OK ]
#
# #################################################################
# With VRF
#
#
# #################################################################
# Global server disabled
#
# SYSCTL: net.ipv4.udp_l3mdev_accept=0
#
# TEST: Global server - ns-A IPv6 [ OK ]
# TEST: Global server - VRF IPv6 [ OK ]
# TEST: VRF server - ns-A IPv6 [ OK ]
# TEST: VRF server - VRF IPv6 [ OK ]
# TEST: Enslaved device server - ns-A IPv6 [ OK ]
# TEST: Enslaved device server - VRF IPv6 [ OK ]
# TEST: No server - ns-A IPv6 [ OK ]
# TEST: No server - VRF IPv6 [ OK ]
# TEST: Global server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: Global server, VRF client, local conn - VRF IPv6 [ OK ]
# TEST: VRF server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: VRF server, VRF client, local conn - VRF IPv6 [ OK ]
# TEST: Global server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: VRF server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: Enslaved device server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: Enslaved device server, device client, local conn - ns-A IPv6 [ OK ]
#
# #################################################################
# Global server enabled
#
# SYSCTL: net.ipv4.udp_l3mdev_accept=1
#
# TEST: Global server - ns-A IPv6 [ OK ]
# TEST: Global server - VRF IPv6 [ OK ]
# TEST: VRF server - ns-A IPv6 [ OK ]
# TEST: VRF server - VRF IPv6 [ OK ]
# TEST: Enslaved device server - ns-A IPv6 [ OK ]
# TEST: Enslaved device server - VRF IPv6 [ OK ]
# TEST: No server - ns-A IPv6 [ OK ]
# TEST: No server - VRF IPv6 [ OK ]
# TEST: VRF client [ OK ]
# TEST: No server, VRF client [ OK ]
# TEST: Enslaved device client [ OK ]
# TEST: No server, enslaved device client [ OK ]
# TEST: Global server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: VRF server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: Global server, VRF client, local conn - VRF IPv6 [ OK ]
# TEST: VRF server, VRF client, local conn - VRF IPv6 [ OK ]
# TEST: No server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: No server, VRF client, local conn - VRF IPv6 [ OK ]
# TEST: Global server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: VRF server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: Device server, VRF client, local conn - ns-A IPv6 [ OK ]
# TEST: Device server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: No server, device client, local conn - ns-A IPv6 [ OK ]
# TEST: Global server, linklocal IP [ OK ]
# TEST: No server, linklocal IP [ OK ]
# TEST: Enslaved device client, linklocal IP [ OK ]
# TEST: No server, device client, peer linklocal IP [ OK ]
# TEST: Enslaved device client, local conn - linklocal IP [ OK ]
# TEST: No server, device client, local conn - linklocal IP [ OK ]
# TEST: UDP in - LLA to GUA [ OK ]
#
# Tests passed: 136
# Tests failed: 2
not ok 2 selftests: net: fcnal-test.sh # exit=1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-0e4d354762cefd3e16b4cff8988ff276e45effc4/tools/testing/selftests/net'



To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file

# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.



--
0-DAY CI Kernel Test Service
https://01.org/lkp



Attachments:
(No filename) (14.86 kB)
config-6.0.0-rc2-00573-g0e4d354762ce (170.79 kB)
job-script (7.37 kB)
dmesg.xz (46.26 kB)
kernel-selftests (175.20 kB)
job.yaml (6.12 kB)
reproduce (518.00 B)
Download all attachments

2022-10-30 16:19:01

by David Ahern

[permalink] [raw]
Subject: Re: [net] 0e4d354762: kernel-selftests.net.fcnal-test.sh.fail

On 10/6/22 7:23 AM, kernel test robot wrote:
> # TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - ns-A loopback IPv6 [FAIL]

...

> # TEST: Global server, device client via IP_UNICAST_IF, local connection, with connect() - ns-A loopback IPv6 [FAIL]

Richard:

Don't recall a followup on this report. Can you take a look? These tests
were added by you after your change for IP_UNICAST_IF.