devlink_port_split from ubuntu_kernel_selftests.net fails on hirsute (KeyError: 'flavour')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Hirsute |
Won't Fix
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
Kinetic |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
Lunar |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
[Impact]
On s390x LPAR instances, this test will fail with:
# File "linux/
# if ports[port]
# KeyError: 'flavour'
not ok 1 selftests: net: devlink_
This is because the mlx4 driver in use on this instance does not set
attributes, therefore `devlink -j port show` command output does not
contain this "flavour" key.
[Fix]
* 3de66d08d3 selftests: net: devlink_
suitable device available
This patch can be cherry-picked into our J/K/L kernels.
[Test]
Run the patched devlink_
fail with # KeyError: 'flavour' but marked as SKIP instead.
[Where problems could occur]
If this change is incorrect, it may affect the test result, however it's
limited to testing tools, no actual impact to kernel functions.
[Original Bug Report]
Failing on hirsute/linux 5.11.0-26.28 host s2lp4
Not a regression as this is also failing on 5.11.0-24.25
17:16:32 DEBUG| [stdout] # selftests: net: devlink_
17:16:32 DEBUG| [stdout] # Traceback (most recent call last):
17:16:32 DEBUG| [stdout] # File "/home/
17:16:32 DEBUG| [stdout] # main()
17:16:32 DEBUG| [stdout] # File "/home/
17:16:32 DEBUG| [stdout] # ports = devlink_ports(dev)
17:16:32 DEBUG| [stdout] # File "/home/
17:16:32 DEBUG| [stdout] # self.if_names = devlink_
17:16:32 DEBUG| [stdout] # File "/home/
17:16:32 DEBUG| [stdout] # if ports[port]
17:16:32 DEBUG| [stdout] # KeyError: 'flavour'
17:16:32 DEBUG| [stdout] not ok 44 selftests: net: devlink_
CVE References
summary: |
- devlink_port_split from ubuntu_kernel_selftests fails on hirsute ( + devlink_port_split from ubuntu_kernel_selftests fails on hirsute + (KeyError: 'flavour') |
Changed in linux (Ubuntu Hirsute): | |
status: | New → Confirmed |
tags: | added: sru-20210816 |
summary: |
- devlink_port_split from ubuntu_kernel_selftests fails on hirsute + devlink_port_split from ubuntu_kernel_selftests.net fails on hirsute (KeyError: 'flavour') |
Changed in linux (Ubuntu): | |
status: | Incomplete → Invalid |
tags: | added: sru-20230227 |
tags: | added: 5.19 kinetic |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux (Ubuntu Jammy): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Kinetic): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Lunar): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | Invalid → In Progress |
Changed in linux (Ubuntu Kinetic): | |
status: | New → In Progress |
Changed in linux (Ubuntu Jammy): | |
status: | New → In Progress |
tags: | added: 5.15 jammy lunar |
Changed in linux (Ubuntu Kinetic): | |
importance: | Undecided → Medium |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Jammy): | |
importance: | Undecided → Medium |
status: | In Progress → Fix Committed |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1937133
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.