ACK: [K][L][SRU][PATCH 0/1] selftests: net: fix cmsg_so_mark.sh test hang

Tim Gardner tim.gardner at canonical.com
Tue Jan 17 13:36:02 UTC 2023


On 1/17/23 3:58 AM, Po-Hsu Lin wrote:
> [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.
> 
> Po-Hsu Lin (1):
>    selftests: net: fix cmsg_so_mark.sh test hang
> 
>   tools/testing/selftests/net/cmsg_sender.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
Acked-by: Tim Gardner <tim.gardner at canonical.com>
-- 
-----------
Tim Gardner
Canonical, Inc




More information about the kernel-team mailing list