fib_nexthop_nongw.sh from ubuntu_kernel_selftests failed on B-5.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Jose Ogando Justo | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Jose Ogando Justo | ||
Focal |
Fix Released
|
Medium
|
Jose Ogando Justo |
Bug Description
Issue found on B-5.4.0-128-generic #144~18.04.1-Ubuntu
This is a new test case from bug 1988809
Test failed with:
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: fib_nexthop_
# Object "nexthop" is unknown, try "ip help".
# Error: either "to" is duplicate, or "nhid" is a garbage.
# TEST: nexthop: get route with nexthop without gw [FAIL]
# TEST: nexthop: ping through nexthop without gw [FAIL]
not ok 1 selftests: net: fib_nexthop_
-------
[Impact]
When running kselftests on Bionic with a 5.4 kernel, it would
fail because of no nexthop capability.
[Fix]
We query the ip command help to know whether it is implemented
or not, and we skip or execute the test accordingly
[Test Plan]
Running the test script directly in Bionic will throw a Skip,
while running it in Focal will throw the test result.
[Where problems could ocurr]
The regression potential for this is low.
[Other Info]
None
CVE References
description: | updated |
Changed in linux (Ubuntu Focal): | |
assignee: | nobody → Jose Ogando Justo (joseogando) |
Changed in linux (Ubuntu): | |
assignee: | nobody → Jose Ogando Justo (joseogando) |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Jose Ogando Justo (joseogando) |
tags: | added: verification-done-focal |
Looks like it's because the ip command does not has this "nexthop" object in Bionic.