2022-12-29 02:55:57 |
Po-Hsu Lin |
bug |
|
|
added bug |
2022-12-29 02:56:05 |
Po-Hsu Lin |
bug task added |
|
linux-riscv (Ubuntu) |
|
2022-12-29 02:56:14 |
Po-Hsu Lin |
nominated for series |
|
Ubuntu Kinetic |
|
2022-12-29 02:56:14 |
Po-Hsu Lin |
bug task added |
|
linux-riscv (Ubuntu Kinetic) |
|
2022-12-29 02:57:20 |
Po-Hsu Lin |
summary |
cmsg_so_mark.sh in net from ubuntu_kernel_selftests hang with RISCV kernel |
cmsg_so_mark.sh in net from ubuntu_kernel_selftests hang with K-RISCV kernel |
|
2022-12-29 03:08:25 |
Po-Hsu Lin |
bug task added |
|
linux-allwinner (Ubuntu) |
|
2022-12-29 05:44:29 |
Po-Hsu Lin |
bug task added |
|
linux (Ubuntu) |
|
2022-12-29 05:44:46 |
Po-Hsu Lin |
tags |
kinetic sru-20221114 ubuntu-kernel-selftests |
arm64 kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests |
|
2022-12-29 05:44:59 |
Po-Hsu Lin |
nominated for series |
|
Ubuntu Lunar |
|
2022-12-29 05:44:59 |
Po-Hsu Lin |
bug task added |
|
linux (Ubuntu Lunar) |
|
2022-12-29 05:44:59 |
Po-Hsu Lin |
bug task added |
|
linux-riscv (Ubuntu Lunar) |
|
2022-12-29 05:44:59 |
Po-Hsu Lin |
bug task added |
|
linux-allwinner (Ubuntu Lunar) |
|
2022-12-29 05:46:06 |
Po-Hsu Lin |
bug task deleted |
linux-allwinner (Ubuntu) |
|
|
2022-12-29 05:46:13 |
Po-Hsu Lin |
bug task deleted |
linux-allwinner (Ubuntu Kinetic) |
|
|
2022-12-29 05:46:15 |
Po-Hsu Lin |
bug task deleted |
linux-allwinner (Ubuntu Lunar) |
|
|
2022-12-29 05:46:17 |
Po-Hsu Lin |
bug task deleted |
linux-riscv (Ubuntu Kinetic) |
|
|
2022-12-29 05:46:22 |
Po-Hsu Lin |
bug task deleted |
linux-riscv (Ubuntu) |
|
|
2022-12-29 05:46:26 |
Po-Hsu Lin |
bug task deleted |
linux-riscv (Ubuntu Lunar) |
|
|
2022-12-29 06:00:07 |
Ubuntu Kernel Bot |
linux (Ubuntu): status |
New |
Incomplete |
|
2022-12-29 16:36:50 |
Po-Hsu Lin |
summary |
cmsg_so_mark.sh in net from ubuntu_kernel_selftests hang with K-RISCV kernel |
cmsg_so_mark.sh / cmsg_time.sh in net from ubuntu_kernel_selftests hang with K-RISCV kernel |
|
2022-12-30 10:09:28 |
Po-Hsu Lin |
summary |
cmsg_so_mark.sh / cmsg_time.sh in net from ubuntu_kernel_selftests hang with K-RISCV kernel |
cmsg_so_mark.sh / cmsg_time.sh in net from ubuntu_kernel_selftests hang with non-amd64 |
|
2022-12-30 10:15:00 |
Po-Hsu Lin |
summary |
cmsg_so_mark.sh / cmsg_time.sh in net from ubuntu_kernel_selftests hang with non-amd64 |
cmsg_so_mark.sh / cmsg_time.sh / cmsg_ipv6.sh in net from ubuntu_kernel_selftests hang with non-amd64 |
|
2023-01-06 08:11:46 |
Po-Hsu Lin |
ubuntu-kernel-tests: assignee |
|
Po-Hsu Lin (cypressyew) |
|
2023-01-06 08:11:48 |
Po-Hsu Lin |
ubuntu-kernel-tests: status |
New |
In Progress |
|
2023-01-06 08:12:07 |
Po-Hsu Lin |
linux (Ubuntu Kinetic): assignee |
|
Po-Hsu Lin (cypressyew) |
|
2023-01-06 08:12:09 |
Po-Hsu Lin |
linux (Ubuntu Kinetic): status |
New |
In Progress |
|
2023-01-06 08:12:12 |
Po-Hsu Lin |
linux (Ubuntu Lunar): assignee |
|
Po-Hsu Lin (cypressyew) |
|
2023-01-06 08:12:13 |
Po-Hsu Lin |
linux (Ubuntu Lunar): status |
Incomplete |
In Progress |
|
2023-01-17 10:58:06 |
Po-Hsu Lin |
description |
Issue found with 5.19.0-1010.11, 5.19.0-1011.12
This issue does not exist in 5.19.0-1009.10 because the net test can't be built by that time.
Test output:
Running 'make run_tests -C net TEST_PROGS=cmsg_so_mark.sh TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
make --no-builtin-rules ARCH=riscv -C ../../../.. headers_install
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
INSTALL ./usr/include
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
TAP version 13
1..1
# selftests: net: cmsg_so_mark.sh
Timer expired (5400 sec.), nuking pid 82951
A manual test shows it will stuck with:
$ sudo ./cmsg_so_mark.sh
+ NS=ns
+ IP4=172.16.0.1/24
+ TGT4=172.16.0.2
+ IP6=2001:db8:1::1/64
+ TGT6=2001:db8:1::2
+ MARK=1000
+ trap cleanup EXIT
+ ip netns add ns
+ ip netns exec ns sysctl -w 'net.ipv4.ping_group_range=0 2147483647'
+ ip -netns ns link add type dummy
+ ip -netns ns link set dev dummy0 up
+ ip -netns ns addr add 172.16.0.1/24 dev dummy0
+ ip -netns ns addr add 2001:db8:1::1/64 dev dummy0
+ ip -netns ns rule add fwmark 1000 lookup 300
+ ip -6 -netns ns rule add fwmark 1000 lookup 300
+ ip -netns ns route add prohibit any table 300
+ ip -6 -netns ns route add prohibit any table 300
+ BAD=0
+ TOTAL=0
+ for ovr in setsock cmsg both
+ for i in 4 6
+ '[' 4 == 4 ']'
+ TGT=172.16.0.2
+ for p in u i r
+ '[' u == u ']'
+ prot=UDP
+ '[' u == i ']'
+ '[' u == r ']'
+ '[' setsock == setsock ']'
+ m=-M
+ '[' setsock == cmsg ']'
+ '[' setsock == both ']'
+ ip netns exec ns ./cmsg_sender -4 -p u -M 1001 172.16.0.2 1234
(test stuck here) |
[Impact]
cmsg_* tests in net tests from ubuntu_kernel_selftests will hang on
non-amd64 systems and eventually causing "Incomplete" test results on
RISCV kernels due to the timeout setting.
This is because of an infinity while loop caused by a char variable
used here to take the getopt() return value in cmsg_sender.c, it should
be an int instead.
[Fix]
* 1573c68820 ("selftests: net: fix cmsg_so_mark.sh test hang")
This patch can be cherry-picked into both Kinetic and Lunar, these test
cases are only available in these newer kernels.
[Test]
Compile the patched cmsg_sender.c on a non-amd64 system, and the cmsg_*
tests will no longer hanging.
[Where problems could occur ]
Change limited to testing tools, no actual impact to real functions.
[Original Bug Report]
Issue found with 5.19.0-1010.11, 5.19.0-1011.12
This issue does not exist in 5.19.0-1009.10 because the net test can't be built by that time.
Test output:
Running 'make run_tests -C net TEST_PROGS=cmsg_so_mark.sh TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net'
make --no-builtin-rules ARCH=riscv -C ../../../.. headers_install
make[1]: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
INSTALL ./usr/include
make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux'
TAP version 13
1..1
# selftests: net: cmsg_so_mark.sh
Timer expired (5400 sec.), nuking pid 82951
A manual test shows it will stuck with:
$ sudo ./cmsg_so_mark.sh
+ NS=ns
+ IP4=172.16.0.1/24
+ TGT4=172.16.0.2
+ IP6=2001:db8:1::1/64
+ TGT6=2001:db8:1::2
+ MARK=1000
+ trap cleanup EXIT
+ ip netns add ns
+ ip netns exec ns sysctl -w 'net.ipv4.ping_group_range=0 2147483647'
+ ip -netns ns link add type dummy
+ ip -netns ns link set dev dummy0 up
+ ip -netns ns addr add 172.16.0.1/24 dev dummy0
+ ip -netns ns addr add 2001:db8:1::1/64 dev dummy0
+ ip -netns ns rule add fwmark 1000 lookup 300
+ ip -6 -netns ns rule add fwmark 1000 lookup 300
+ ip -netns ns route add prohibit any table 300
+ ip -6 -netns ns route add prohibit any table 300
+ BAD=0
+ TOTAL=0
+ for ovr in setsock cmsg both
+ for i in 4 6
+ '[' 4 == 4 ']'
+ TGT=172.16.0.2
+ for p in u i r
+ '[' u == u ']'
+ prot=UDP
+ '[' u == i ']'
+ '[' u == r ']'
+ '[' setsock == setsock ']'
+ m=-M
+ '[' setsock == cmsg ']'
+ '[' setsock == both ']'
+ ip netns exec ns ./cmsg_sender -4 -p u -M 1001 172.16.0.2 1234
(test stuck here) |
|
2023-01-30 17:02:49 |
Stefan Bader |
linux (Ubuntu Lunar): importance |
Undecided |
Medium |
|
2023-01-30 17:02:49 |
Stefan Bader |
linux (Ubuntu Lunar): status |
In Progress |
Fix Committed |
|
2023-01-30 17:02:49 |
Stefan Bader |
linux (Ubuntu Lunar): assignee |
Po-Hsu Lin (cypressyew) |
Andrea Righi (arighi) |
|
2023-01-30 17:03:19 |
Stefan Bader |
linux (Ubuntu Kinetic): importance |
Undecided |
Medium |
|
2023-01-30 17:03:19 |
Stefan Bader |
linux (Ubuntu Kinetic): status |
In Progress |
Fix Committed |
|
2023-02-09 22:37:21 |
Ubuntu Kernel Bot |
tags |
arm64 kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests |
arm64 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-needed-kinetic |
|
2023-02-10 01:51:32 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-needed-jammy verification-needed-kinetic |
|
2023-02-10 02:38:55 |
Po-Hsu Lin |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-needed-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
linux (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
cve linked |
|
2022-20369 |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
cve linked |
|
2022-3545 |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
cve linked |
|
2022-47520 |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
cve linked |
|
2023-0179 |
|
2023-03-01 21:42:36 |
Launchpad Janitor |
cve linked |
|
2023-0461 |
|
2023-03-03 01:59:24 |
Launchpad Janitor |
linux (Ubuntu Lunar): status |
Fix Committed |
Fix Released |
|
2023-03-03 02:28:14 |
Po-Hsu Lin |
ubuntu-kernel-tests: status |
In Progress |
Fix Released |
|
2023-03-06 00:02:51 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
|
2023-03-06 00:57:50 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
|
2023-03-06 06:09:59 |
Po-Hsu Lin |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
|
2023-03-16 07:52:05 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
|
2023-03-16 16:17:30 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
|
2023-03-16 18:13:53 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-allwinner kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
|
2023-03-17 11:59:52 |
Po-Hsu Lin |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-allwinner kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-needed-kinetic |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-allwinner kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
|
2023-04-11 18:37:37 |
Ubuntu Kernel Bot |
tags |
arm64 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-allwinner kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-jammy verification-done-kinetic |
arm64 kernel-spammed-jammy-linux-nvidia-5.19 kernel-spammed-jammy-linux-oem-6.1 kernel-spammed-kinetic-linux kernel-spammed-kinetic-linux-allwinner kernel-spammed-kinetic-linux-aws kernel-spammed-kinetic-linux-azure kernel-spammed-kinetic-linux-riscv kernel-spammed-kinetic-linux-starfive kinetic ppc64el riscv64 s390x sru-20221114 ubuntu-kernel-selftests verification-done-kinetic verification-needed-jammy |
|