msg_zerocopy.sh in net from ubuntu_kernel_selftests failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Colin Ian King | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Colin Ian King | ||
linux-hwe (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Low
|
Unassigned |
Bug Description
== SRU Justification [ FOCAL ] ==
The msg_zerocopy.sh kernel self test will fail on machines that don't have 2 or 3 CPUs such as 1 CPU cloud instances since the C test program tries to set CPU affinity to CPUs 2 and 3 and bails out if it fails.
== Fix ==
Upstream linux-next commit
commit 16f6458f2478b55
Author: Willem de Bruijn <email address hidden>
Date: Wed Aug 5 04:40:45 2020 -0400
selftests/net: relax cpu affinity requirement in msg_zerocopy test
The fix now just emits a warning that CPU affinity can't be set rather than cause an exit(1) termination.
== Test cast ==
Run the msg_zerocopy.sh test from the kernel net selftest on a 1 CPU system. Without the fix the test fails. With the fix it runs successfully as expected.
== Regression Potential ==
The original test pinned the CPUs for a benchmarking metric, for our testing we are using this to test to see if the operations in the test work successfully. There is a potential that users using this test will not notice the warning if they are using this test as a benchmark on a 1 CPU system and may get more jittery timing in their benchmarks rather than a test failing and complaining they are not running it on a suitable multi-CPU system. However, the likelyhood of a user using this test on a single CPU system for benchmarking is small and as it stands the test will now run and produce potentially jittery benchmarks on a 1 CPU system compared to previously where it never ran.
-------
This test will return 1
$ sudo ./msg_zerocopy.sh
ipv4 tcp -t 1
./msg_zerocopy: setaffinity 2
./msg_zerocopy: setaffinity 3
$ echo $?
1
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.18.0-13-generic x86_64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Jan 21 07:41 seq
crw-rw---- 1 root audio 116, 33 Jan 21 07:41 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Mon Jan 21 07:50:33 2019
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
PciMultimedia:
ProcFB: 0 cirrusdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.175.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: Ubuntu-
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
CVE References
tags: | added: linux-kvm sru-20190603 ubuntu-kernel-selftests |
summary: |
- msg_zerocopy in net from ubuntu_kernel_selftests failed on C + msg_zerocopy in net from ubuntu_kernel_selftests failed |
tags: | added: sru-20190701 |
tags: | added: gke |
tags: | added: sru-20190902 |
tags: |
added: disco removed: cosmic |
tags: | added: aws |
tags: | added: sru-20190930 |
tags: | added: gcp |
no longer affects: | linux-azure (Ubuntu Cosmic) |
no longer affects: | linux-aws (Ubuntu Cosmic) |
no longer affects: | linux (Ubuntu Cosmic) |
summary: |
- msg_zerocopy in net from ubuntu_kernel_selftests failed + msg_zerocopy.sh in net from ubuntu_kernel_selftests failed |
tags: | added: sru-20200316 |
Changed in linux-aws (Ubuntu Disco): | |
status: | New → Won't Fix |
Changed in linux-azure (Ubuntu Disco): | |
status: | Confirmed → Won't Fix |
Changed in linux (Ubuntu Disco): | |
status: | New → Won't Fix |
tags: | added: oracle sru-20200629 |
Changed in ubuntu-kernel-tests: | |
status: | New → Confirmed |
Changed in linux (Ubuntu Focal): | |
status: | New → Fix Committed |
Changed in ubuntu-kernel-tests: | |
status: | Confirmed → Triaged |
no longer affects: | linux-azure (Ubuntu) |
no longer affects: | linux-aws (Ubuntu Focal) |
no longer affects: | linux-aws (Ubuntu Eoan) |
no longer affects: | linux-aws (Ubuntu Disco) |
no longer affects: | linux-azure (Ubuntu Disco) |
no longer affects: | linux-azure (Ubuntu Eoan) |
no longer affects: | linux (Ubuntu Bionic) |
Changed in linux (Ubuntu Focal): | |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in linux-hwe (Ubuntu): | |
status: | New → Invalid |
tags: | added: sru-20200810 |
Changed in linux-hwe (Ubuntu Bionic): | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in linux (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ubuntu-kernel-tests: | |
status: | Confirmed → Fix Released |
This change was made by a bot.