reuseport_bpf_numa in net from ubuntu_kernel_selftests fails on ppc64le
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Kleber Sacilotto de Souza | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza | ||
Bionic |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza | ||
Focal |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza | ||
Hirsute |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza | ||
Impish |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza | ||
Jammy |
Fix Released
|
Medium
|
Kleber Sacilotto de Souza |
Bug Description
[ Impact ]
The reuseport_bpf_numa testcase in selftests/net fails on some PowerPC systems with:
# selftests: net: reuseport_bpf_numa
# ---- IPv4 UDP ----
# send node 0, receive socket 0
# libnuma: Warning: Cannot read node cpumask from sysfs
# ./reuseport_
not ok 3 selftests: net: reuseport_bpf_numa # exit=1
[ Fix ]
In some platforms the numa node numbers are not necessarily consecutive, so when reuseport_bpf_numa iterates on the nodes from 0 to the max available node some of those will not be available. The fix is to change the testcase so it checks whether the node is available before trying to send/receive from it.
[ Test ]
Run reuseport_bpf_numa from selftests/net in one of the affected test nodes.
[ Where Problems Could Occur ]
This is a very simple fix which relies on the libnuma exported functions and bitmaps to check whether a numa node number is available on the system. If something is not right on how this check is made or on the libnuma code itself only the reuseport_bpf_numa testcase will be affected by reporting false negatives or having a reduced test coverage.
[ Original bug report ]
This issue was extracted from the comment in bug 1812638, since that bug will be specific for i386
This reuseport_bpf_numa in net will fail on PowerPC with:
The output on B-5.3 P8 is:
# selftests: net: reuseport_bpf_numa
# ---- IPv4 UDP ----
# send node 0, receive socket 0
# send node 1, receive socket 7
# ./reuseport_
not ok 3 selftests: net: reuseport_bpf_numa # exit=1
CVE References
tags: | added: 5.0 5.3 sru-20191202 |
tags: | added: ppc64el ubuntu-kernel-selftests |
tags: | added: sru-202002 |
tags: |
added: sru-20200217 removed: sru-202002 |
tags: | added: bionic |
tags: | added: sru-20200406 |
tags: | added: sru-20200427 |
tags: | added: sru-20200810 |
tags: | added: 5.4 focal sru-20210315 |
tags: | added: hwe hwe-5.4 |
tags: | added: sru-20210412 |
tags: | added: sru-20210531 |
tags: | added: 5.11 |
tags: | added: sru-20210719 |
Changed in linux (Ubuntu Hirsute): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Focal): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Impish): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Jammy): | |
status: | Incomplete → Confirmed |
description: | updated |
description: | updated |
description: | updated |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Kleber Sacilotto de Souza (kleber-souza) |
Changed in linux (Ubuntu Jammy): | |
assignee: | nobody → Kleber Sacilotto de Souza (kleber-souza) |
Changed in linux (Ubuntu Jammy): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Impish): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Hirsute): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-kernel-tests: | |
status: | New → Fix Released |
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 1867570
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.