psock_snd.sh in net from ubuntu_kernel_selftests ADT failure with focal/groovy/hirsute/impish
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
Fix Released
|
Medium
|
Po-Hsu Lin | ||
linux-oem-5.10 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned | ||
linux-oem-5.13 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned | ||
linux-oem-5.14 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Hirsute |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
The expected to fail 'raw gso min size - 1' test in psock_snd.sh is
not failing as expected, and thus this test will fail with:
raw gso min size - 1 (expected to fail)
tx: 1524
rx: 1472
OK
This is because after commit 7c6d2ec ("net: be more gentle about silly
gso requests coming from user"), we relaxed the min gso_size check in
virtio_
So when a packet which is smaller then the gso_size, GSO for this
packet will not be set, the packet will be send/recv successfully.
[Fix]
* cfba3fb68960b4 selftests/net: remove min gso test in packet_snd
This patch can be cherry-picked into all affected kernels.
I decided to skip those 5.8 variants, as the current cycle
(2021-09-06) might be the last cycle for them.
[Test]
Run this psock_snd.sh script, this test will no longer exist and the
script can proceed with the next test.
[Where problems could occur]
Removing this broken test should not have any negative impact to our
tests. We will need to update our hints later.
[Original Bug Report]
Testing failed on focal/linux 5.4.0-44.48:
amd64: https:/
arm64: https:/
ppc64el: https:/
s390x: https:/
psock_snd.sh output:
16:28:30 DEBUG| [stdout] # selftests: net: psock_snd.sh
16:28:31 DEBUG| [stdout] # dgram
16:28:31 DEBUG| [stdout] # tx: 128
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # dgram bind
16:28:31 DEBUG| [stdout] # tx: 128
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw
16:28:31 DEBUG| [stdout] # tx: 142
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw bind
16:28:31 DEBUG| [stdout] # tx: 142
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw qdisc bypass
16:28:31 DEBUG| [stdout] # tx: 142
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw vlan
16:28:31 DEBUG| [stdout] # tx: 146
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw vnet hdr
16:28:31 DEBUG| [stdout] # tx: 152
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw csum_off
16:28:31 DEBUG| [stdout] # tx: 152
16:28:31 DEBUG| [stdout] # rx: 142
16:28:31 DEBUG| [stdout] # rx: 100
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw csum_off with bad offset (fails)
16:28:31 DEBUG| [stdout] # ./psock_snd: write: Invalid argument
16:28:31 DEBUG| [stdout] # raw min size
16:28:31 DEBUG| [stdout] # tx: 42
16:28:31 DEBUG| [stdout] # rx: 0
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw mtu size
16:28:31 DEBUG| [stdout] # tx: 1514
16:28:31 DEBUG| [stdout] # rx: 1472
16:28:31 DEBUG| [stdout] # OK
16:28:31 DEBUG| [stdout] #
16:28:31 DEBUG| [stdout] # raw mtu size + 1 (fails)
16:28:31 DEBUG| [stdout] # ./psock_snd: write: Message too long
16:28:31 DEBUG| [stdout] # raw vlan mtu size + 1 (fails)
16:28:31 DEBUG| [stdout] # ./psock_snd: write: Message too long
16:28:32 DEBUG| [stdout] # dgram mtu size
16:28:32 DEBUG| [stdout] # tx: 1500
16:28:32 DEBUG| [stdout] # rx: 1472
16:28:32 DEBUG| [stdout] # OK
16:28:32 DEBUG| [stdout] #
16:28:32 DEBUG| [stdout] # dgram mtu size + 1 (fails)
16:28:32 DEBUG| [stdout] # ./psock_snd: write: Message too long
16:28:32 DEBUG| [stdout] # raw truncate hlen (fails: does not arrive)
16:28:32 DEBUG| [stdout] # tx: 14
16:28:32 DEBUG| [stdout] # ./psock_snd: recv: Resource temporarily unavailable
16:28:32 DEBUG| [stdout] # raw truncate hlen - 1 (fails: EINVAL)
16:28:32 DEBUG| [stdout] # ./psock_snd: write: Invalid argument
16:28:32 DEBUG| [stdout] # raw gso min size
16:28:32 DEBUG| [stdout] # tx: 1525
16:28:32 DEBUG| [stdout] # rx: 1473
16:28:32 DEBUG| [stdout] # OK
16:28:32 DEBUG| [stdout] #
16:28:32 DEBUG| [stdout] # raw gso min size - 1 (fails)
16:28:32 DEBUG| [stdout] # tx: 1524
16:28:32 DEBUG| [stdout] # rx: 1472
16:28:32 DEBUG| [stdout] # OK
16:28:32 DEBUG| [stdout] #
16:28:32 DEBUG| [stdout] not ok 22 selftests: net: psock_snd.sh # exit=1
This failure is similar to bug 1884234, however, this test didn't fail on ADT with focal/linux before 5.4.0-44.48.
CVE References
tags: | added: kernel-adt-failure |
Changed in linux (Ubuntu Focal): | |
status: | New → Confirmed |
summary: |
- linux 5.4.0-44.48 ADT test failure with linux 5.4.0-44.48 + psock_snd.sh in net from ubuntu_kernel_selftests ADT failure with + focal/linux |
description: | updated |
tags: |
added: sru-20200810 removed: focal |
tags: | added: 5.4 focal ubuntu-kernel-selftests |
Changed in linux (Ubuntu): | |
status: | Incomplete → Confirmed |
tags: | added: sru-20200831 |
tags: | added: sru-20200921 |
tags: | added: aws |
tags: | added: groovy |
tags: | added: sru-20210315 |
tags: | added: kvm |
tags: | added: hwe |
tags: | added: sru-20210412 |
tags: | added: fips |
tags: | added: oem oem-5.6 |
summary: |
psock_snd.sh in net from ubuntu_kernel_selftests ADT failure with - focal/linux + focal/groovy |
summary: |
psock_snd.sh in net from ubuntu_kernel_selftests ADT failure with - focal/groovy + focal/groovy/impish |
tags: | added: impish |
summary: |
psock_snd.sh in net from ubuntu_kernel_selftests ADT failure with - focal/groovy/impish + focal/groovy/hirsute/impish |
tags: | added: sru-20210621 |
Changed in linux (Ubuntu Groovy): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Hirsute): | |
status: | New → Confirmed |
tags: | added: sru-20210719 |
tags: | added: sru-20210816 |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
description: | updated |
description: | updated |
description: | updated |
Changed in linux (Ubuntu): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Focal): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Groovy): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Hirsute): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux-oem-5.10 (Ubuntu): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
assignee: | Po-Hsu Lin (cypressyew) → nobody |
Changed in linux-oem-5.13 (Ubuntu Groovy): | |
status: | New → Invalid |
Changed in linux-oem-5.13 (Ubuntu Hirsute): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Groovy): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu Hirsute): | |
status: | New → Invalid |
Changed in ubuntu-kernel-tests: | |
status: | New → In Progress |
Changed in linux (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Focal): | |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Hirsute): | |
status: | Confirmed → In Progress |
no longer affects: | linux-oem-5.10 (Ubuntu Groovy) |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux-oem-5.13 (Ubuntu Focal): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
no longer affects: | linux-oem-5.14 (Ubuntu Groovy) |
no longer affects: | linux-oem-5.13 (Ubuntu Groovy) |
Changed in linux (Ubuntu Groovy): | |
status: | Confirmed → Won't Fix |
assignee: | Po-Hsu Lin (cypressyew) → nobody |
Changed in linux-oem-5.10 (Ubuntu Focal): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
status: | New → In Progress |
Changed in linux-oem-5.10 (Ubuntu Hirsute): | |
status: | New → Invalid |
description: | updated |
Changed in linux-oem-5.10 (Ubuntu): | |
status: | New → Invalid |
Changed in linux-oem-5.13 (Ubuntu): | |
status: | New → Invalid |
Changed in linux-oem-5.14 (Ubuntu): | |
status: | New → Invalid |
description: | updated |
Changed in linux-oem-5.10 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Hirsute): | |
status: | In Progress → Fix Committed |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Focal): | |
status: | In Progress → Fix Committed |
Changed in linux-oem-5.14 (Ubuntu Focal): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → 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 1892213
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.