[Possible Regression] net:reuseaddr_ports_exhausted.sh in ubuntu_kernel_selftests failed on F-oem-5.14 / J-oem-5.17

Bug #2007904 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux-oem-5.14 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned
linux-oem-5.17 (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

Issue found on F-oem-5.14.0-1058.66, it looks like a regression. This failure cannot be reproduced with 5.14.0-1057.64

Test log:
TAP version 13
1..3
# Starting 3 tests from 1 test cases.
# RUN global.reuseaddr_ports_exhausted_unreusable ...
# OK global.reuseaddr_ports_exhausted_unreusable
ok 1 global.reuseaddr_ports_exhausted_unreusable
# RUN global.reuseaddr_ports_exhausted_reusable_same_euid ...
# OK global.reuseaddr_ports_exhausted_reusable_same_euid
ok 2 global.reuseaddr_ports_exhausted_reusable_same_euid
# RUN global.reuseaddr_ports_exhausted_reusable_different_euid ...
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted_reusable_different_euid: Test failed at step #13
# FAIL global.reuseaddr_ports_exhausted_reusable_different_euid
not ok 3 global.reuseaddr_ports_exhausted_reusable_different_euid
# FAILED: 2 / 3 tests passed.
# Totals: pass:2 fail:1 xfail:0 xpass:0 skip:0 error:0

Test result with 5.14.0-1057.64
$ sudo ./reuseaddr_ports_exhausted.sh
TAP version 13
1..3
# Starting 3 tests from 1 test cases.
# RUN global.reuseaddr_ports_exhausted_unreusable ...
# OK global.reuseaddr_ports_exhausted_unreusable
ok 1 global.reuseaddr_ports_exhausted_unreusable
# RUN global.reuseaddr_ports_exhausted_reusable_same_euid ...
# OK global.reuseaddr_ports_exhausted_reusable_same_euid
ok 2 global.reuseaddr_ports_exhausted_reusable_same_euid
# RUN global.reuseaddr_ports_exhausted_reusable_different_euid ...
# OK global.reuseaddr_ports_exhausted_reusable_different_euid
ok 3 global.reuseaddr_ports_exhausted_reusable_different_euid
# PASSED: 3 / 3 tests passed.
# Totals: pass:3 fail:0 xfail:0 xpass:0 skip:0 error:0
tests done

CVE References

Po-Hsu Lin (cypressyew)
Changed in linux-oem-5.14 (Ubuntu):
status: New → Invalid
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is also failing on J-oem-5.17.0-1028.29.

$ sudo ./reuseaddr_ports_exhausted.sh
TAP version 13
1..3
# Starting 3 tests from 1 test cases.
# RUN global.reuseaddr_ports_exhausted_unreusable ...
# OK global.reuseaddr_ports_exhausted_unreusable
ok 1 global.reuseaddr_ports_exhausted_unreusable
# RUN global.reuseaddr_ports_exhausted_reusable_same_euid ...
# OK global.reuseaddr_ports_exhausted_reusable_same_euid
ok 2 global.reuseaddr_ports_exhausted_reusable_same_euid
# RUN global.reuseaddr_ports_exhausted_reusable_different_euid ...
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:Expected -1 (-1) == ret (0)
# reuseaddr_ports_exhausted.c:153:reuseaddr_ports_exhausted_reusable_different_euid:should fail to listen because only one uid reserves the port in TCP_LISTEN.
# reuseaddr_ports_exhausted_reusable_different_euid: Test failed at step #13
# FAIL global.reuseaddr_ports_exhausted_reusable_different_euid
not ok 3 global.reuseaddr_ports_exhausted_reusable_different_euid
# FAILED: 2 / 3 tests passed.
# Totals: pass:2 fail:1 xfail:0 xpass:0 skip:0 error:0
$ uname -a
Linux vought 5.17.0-1028-oem #29-Ubuntu SMP PREEMPT Fri Feb 10 10:28:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

summary: - net:reuseaddr_ports_exhausted.sh in ubuntu_kernel_selftests failed
+ [Possible Regression] net:reuseaddr_ports_exhausted.sh in
+ ubuntu_kernel_selftests failed on F-oem-5.14 / J-oem-5.17
tags: added: 5.17 jammy sru-20230130
Revision history for this message
Stefan Bader (smb) wrote :

@Timo, look for "UBUNTU: SAUCE: Fix inet_csk_listen_start after CVE-2023-0461" on the various distro kernels (5.15 for sure but I believe across all series).

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

patch added, but tracking won't work as the patch had no buglink and I didn't think to add it

Changed in linux-oem-5.17 (Ubuntu):
status: New → Invalid
Changed in linux-oem-5.14 (Ubuntu Focal):
status: New → Fix Committed
Changed in linux-oem-5.17 (Ubuntu Focal):
status: New → Fix Committed
Timo Aaltonen (tjaalton)
Changed in linux-oem-5.17 (Ubuntu Focal):
status: Fix Committed → Fix Released
Changed in linux-oem-5.14 (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.