kci_test_encap_fou() in rtnetlink.sh from kselftests/net failed with "FAIL: can't add fou port 7777, skipping test"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Bionic |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
Focal |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
Groovy |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
linux-oem-5.6 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Groovy |
Invalid
|
Undecided
|
Unassigned | ||
linux-oem-osp1 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Groovy |
Invalid
|
Undecided
|
Unassigned |
Bug Description
== SRU Justification ==
The kci_test_
kselftests/net will fail with non-zero return value, and print:
"FAIL: can't add fou port 7777, skipping test"
How to reproduce this:
devdummy=
testns="testns"
ip netns add "$testns"
ip netns exec "$testns" ip link set lo up
ip netns exec "$testns" ip link add name "$devdummy" type dummy
ip netns exec "$testns" ip link set "$devdummy" up
ip netns exec "$testns" ip fou add port 7777 ipproto 47
RTNETLINK answers: No such file or directory
Error talking to the kernel
This test would require the fou module to be loaded before it gets
started.
== Fix
* 26ebd6fed9bb ("selftests: rtnetlink: load fou module for
kci_test_
This patch needs to be backported for series after Xenial.
== Test ==
Patch tested directly on the kernel tree, the test will now pass as
expected.
== Regression Potential ==
Low, change limited to the testing tool.
== Original Bug Report ==
The kci_test_
"FAIL: can't add fou port 7777, skipping test"
How to reproduce this:
devdummy=
testns="testns"
ip netns add "$testns"
ip netns exec "$testns" ip link set lo up
ip netns exec "$testns" ip link add name "$devdummy" type dummy
ip netns exec "$testns" ip link set "$devdummy" up
ip netns exec "$testns" ip fou add port 7777 ipproto 47
RTNETLINK answers: No such file or directory
Error talking to the kernel
This is not a regression, it's the real test result after bug 1890136 has been fixed.
CVE References
tags: | added: 4.15 bionic sru-20200810 ubuntu-kernel-selftests |
description: | updated |
Changed in linux (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: sru-20200831 |
tags: | added: sru-20200921 |
tags: | added: 5.4 aws focal |
description: | updated |
Changed in linux-oem-osp1 (Ubuntu): | |
status: | New → Invalid |
Changed in linux-oem-osp1 (Ubuntu Focal): | |
status: | New → Invalid |
Changed in linux-oem-osp1 (Ubuntu Groovy): | |
status: | New → Invalid |
description: | updated |
Changed in linux-oem-5.6 (Ubuntu Groovy): | |
status: | New → Invalid |
description: | updated |
Changed in linux (Ubuntu Groovy): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Bionic): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Groovy): | |
status: | In Progress → Fix Committed |
Changed in linux-oem-5.6 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → Fix Released |
It appears this would require the fou module to be loaded before the test.
Patch sent to upstream:
https://<email address hidden>/T/#u