arp_ndisc_evict_nocarrier.sh in net from ubuntu_kernel_selftests failed on J-oem-5.17 / K
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux-hwe-5.17 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Won't Fix
|
Undecided
|
Po-Hsu Lin | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned | ||
linux-oem-5.17 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Kinetic |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
In selftests: net: arp_ndisc_
sub-tests from this script have passed, the overall test result
is still a fail.
# selftests: net: arp_ndisc_
# run arp_evict_
# ok
# run arp_evict_
# ok
# run all.arp_
# ok
# run ndisc_evict_
# ok
# run ndisc_evict_
# ok
# run all.ndisc_
# ok
not ok 1 selftests: net: arp_ndisc_
This is caused by the cleanup() in the script, as it's trying to
access a non-existing file.
[Fix]
* 9c4d7f45d6 selftests: net: fix cleanup_v6() for arp_ndisc_
This patch can be cherry-picked into all affected kernels.
[Test]
Run the patched test and the test will pass.
[Where problems could occur]
Change limited to testing tools, no impact to real kernel function
or test performances.
[Original Bug Report]
Issue found on Jammy OEM 5.17.0-1003.3
It looks like all the sub-tests has passed, but the final return value is not 0.
Running 'make run_tests -C net TEST_PROGS=
make: Entering directory '/home/
make --no-builtin-rules ARCH=x86 -C ../../../.. headers_install
make[1]: Entering directory '/home/
INSTALL ./usr/include
make[1]: Leaving directory '/home/
TAP version 13
1..1
# selftests: net: arp_ndisc_
# run arp_evict_
# ok
# run arp_evict_
# ok
# run all.arp_
# ok
# run ndisc_evict_
# ok
# run ndisc_evict_
# ok
# run all.ndisc_
# ok
not ok 1 selftests: net: arp_ndisc_
make: Leaving directory '/home/
tags: | added: 5.19 kinetic sru-20221114 |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Kinetic): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Kinetic): | |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu): | |
status: | Incomplete → In Progress |
description: | updated |
Changed in linux (Ubuntu Jammy): | |
status: | New → Invalid |
Changed in linux-hwe-5.17 (Ubuntu): | |
status: | New → Invalid |
Changed in linux-hwe-5.17 (Ubuntu Jammy): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux-hwe-5.17 (Ubuntu Kinetic): | |
status: | New → Invalid |
description: | updated |
Changed in linux-oem-5.17 (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux-hwe-5.17 (Ubuntu Jammy): | |
status: | In Progress → Won't Fix |
Changed in linux (Ubuntu Kinetic): | |
status: | In Progress → Fix Committed |
This is a test case issue caused by the cleanup code in the script.
cleanup_v6()
{
ip netns del me
ip netns del peer
sysctl -w net.ipv4. conf.veth0. ndisc_evict_ nocarrier= 1 >/dev/null 2>&1 conf.all. ndisc_evict_ nocarrier= 1 >/dev/null 2>&1
sysctl -w net.ipv4.
}
This sysctl command is actually failing with: net/ipv4/ conf/veth0/ ndisc_evict_ nocarrier: No such file or directory
sysctl: cannot stat /proc/sys/
And thus return 255.