canonical-ubuntu-qa team mailing list archive
-
canonical-ubuntu-qa team
-
Mailing list archive
-
Message #07888
[Bug 2122683] Re: plucky:ubuntu_kselftests_net:cmsg_ipv6.sh failure
I have tested the kernel with the following commit + the commit in the
description reverted and test passed.
Author: Willem de Bruijn <willemb@xxxxxxxxxx>
Date: Thu Mar 6 22:34:08 2025 -0500
ipv6: remove leftover ip6 cookie initializer
BugLink: https://bugs.launchpad.net/bugs/2115678
[ Upstream commit 54580ccdd8a9c6821fd6f72171d435480867e4c3 ]
As of the blamed commit ipc6.dontfrag is always initialized at the
start of udpv6_sendmsg, by ipcm6_init_sk, to either 0 or 1.
Later checks against -1 are no longer needed and the branches are now
dead code.
The blamed commit had removed those branches. But I had overlooked
this one case.
UDP has both a lockless fast path and a slower path for corked
requests. This branch remained in the fast path.
** Also affects: ubuntu-kernel-tests
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2122683
Title:
plucky:ubuntu_kselftests_net:cmsg_ipv6.sh failure
Status in ubuntu-kernel-tests:
New
Status in linux package in Ubuntu:
New
Status in linux source package in Plucky:
New
Bug description:
plucky:linux 6.14.0-32.32, 2025.08.11 cycle, because of the following
commit from the upstream net:cmsg_ipv6.sh fails. Mostlike we need the
tests to be updated.
Author: Willem de Bruijn <willemb@xxxxxxxxxx>
Date: Thu Mar 6 22:34:09 2025 -0500
ipv6: save dontfrag in cork
BugLink: https://bugs.launchpad.net/bugs/2115678
[ Upstream commit a18dfa9925b9ef6107ea3aa5814ca3c704d34a8a ]
When spanning datagram construction over multiple send calls using
MSG_MORE, per datagram settings are configured on the first send.
That is when ip(6)_setup_cork stores these settings for subsequent use
in __ip(6)_append_data and others.
The only flag that escaped this was dontfrag. As a result, a datagram
could be constructed with df=0 on the first sendmsg, but df=1 on a
next. Which is what cmsg_ip.sh does in an upcoming MSG_MORE test in
the "diff" scenario.
Changing datagram conditions in the middle of constructing an skb
makes this already complex code path even more convoluted. It is here
unintentional. Bring this flag in line with expected sockopt/cmsg
behavior.
And stop passing ipc6 to __ip6_append_data, to avoid such issues
in the future. This is already the case for __ip_append_data.
inet6_cork had a 6 byte hole, so the 1B flag has no impact.
Test Log:
03:05:23 INFO | START ubuntu_kselftests_net.net:cmsg_ipv6.sh ubuntu_kselftests_net.net:cmsg_ipv6.sh timeout=2700 timestamp=1756523123 localtime=Aug 30 03:05:23
03:05:23 DEBUG| Persistent state client._record_indent now set to 2
03:05:23 DEBUG| Persistent state client.unexpected_reboot now set to ('ubuntu_kselftests_net.net:cmsg_ipv6.sh', 'ubuntu_kselftests_net.net:cmsg_ipv6.sh')
03:05:23 DEBUG| Waiting for pid 395345 for 2700 seconds
03:05:23 WARNI| System python is too old, crash handling disabled
03:05:23 DEBUG| Running 'make run_tests -C net TEST_PROGS=cmsg_ipv6.sh TEST_GEN_PROGS='' TEST_CUSTOM_PROGS='''
03:05:23 DEBUG| [stdout] make: Entering directory '/home/ubuntu/autotest/client/tmp/ubuntu_kselftests_net/src/linux/tools/testing/selftests/net'
03:05:23 DEBUG| [stdout] TAP version 13
03:05:23 DEBUG| [stdout] 1..1
03:05:23 DEBUG| [stdout] # timeout set to 0
03:05:23 DEBUG| [stdout] # selftests: net: cmsg_ipv6.sh
03:05:23 DEBUG| [stdout] # ERROR: ld.so: object '/usr/libexec/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
03:05:23 DEBUG| [stdout] # Case DONTFRAG UDP setsock returned 1, expected 0
03:05:25 DEBUG| [stdout] # FAIL - 1/93 cases failed
03:05:25 DEBUG| [stdout] not ok 1 selftests: net: cmsg_ipv6.sh # exit=1
03:05:25 DEBUG| [stdout] make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kselftests_net/src/linux/tools/testing/selftests/net'
03:05:25 ERROR| Exception escaping from test:
Traceback (most recent call last):
File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
_call_test_function(self.execute, *p_args, **p_dargs)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
return func(*args, **dargs)
File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
self._call_run_once(constraints, profile_only,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
postprocess_profiled_run, args, dargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
self.run_once(*args, **dargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/home/ubuntu/autotest/client/tests/ubuntu_kselftests_net/ubuntu_kselftests_net.py", line 176, in run_once
raise error.TestError(test_name + ' failed.')
autotest.client.shared.error.TestError: net:cmsg_ipv6.sh failed.
03:05:25 ERROR| child process failed
03:05:25 DEBUG| Traceback (most recent call last):
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
03:05:25 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
03:05:25 DEBUG| return func(*args, **dargs)
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
03:05:25 DEBUG| self._call_run_once(constraints, profile_only,
03:05:25 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| postprocess_profiled_run, args, dargs)
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
03:05:25 DEBUG| self.run_once(*args, **dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_kselftests_net/ubuntu_kselftests_net.py", line 176, in run_once
03:05:25 DEBUG| raise error.TestError(test_name + ' failed.')
03:05:25 DEBUG| autotest.client.shared.error.TestError: net:cmsg_ipv6.sh failed.
03:05:25 DEBUG|
03:05:25 DEBUG| During handling of the above exception, another exception occurred:
03:05:25 DEBUG|
03:05:25 DEBUG| Traceback (most recent call last):
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/parallel.py", line 25, in fork_start
03:05:25 DEBUG| l()
03:05:25 DEBUG| ~^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/job.py", line 506, in
03:05:25 DEBUG| l = lambda: test.runtest(self, url, tag, args, dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/test.py", line 121, in runtest
03:05:25 DEBUG| common_test.runtest(job, url, tag, args, dargs, locals(), globals(),
03:05:25 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| job.sysinfo.log_before_each_test,
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| job.sysinfo.log_after_each_test,
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| job.sysinfo.log_before_each_iteration,
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| job.sysinfo.log_after_each_iteration)
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 913, in runtest
03:05:25 DEBUG| mytest._exec(args, dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 434, in _exec
03:05:25 DEBUG| raise exc_info[0](exc_info[1]).with_traceback(exc_info[2])
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
03:05:25 DEBUG| _call_test_function(self.execute, *p_args, **p_dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
03:05:25 DEBUG| return func(*args, **dargs)
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 290, in execute
03:05:25 DEBUG| self._call_run_once(constraints, profile_only,
03:05:25 DEBUG| ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| postprocess_profiled_run, args, dargs)
03:05:25 DEBUG| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
03:05:25 DEBUG| self.run_once(*args, **dargs)
03:05:25 DEBUG| ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
03:05:25 DEBUG| File "/home/ubuntu/autotest/client/tests/ubuntu_kselftests_net/ubuntu_kselftests_net.py", line 176, in run_once
03:05:25 DEBUG| raise error.TestError(test_name + ' failed.')
03:05:25 DEBUG| autotest.client.shared.error.TestError: net:cmsg_ipv6.sh failed.
03:05:27 INFO | ERROR ubuntu_kselftests_net.net:cmsg_ipv6.sh ubuntu_kselftests_net.net:cmsg_ipv6.sh timestamp=1756523127 localtime=Aug 30 03:05:27 net:cmsg_ipv6.sh failed.
03:05:27 INFO | END ERROR ubuntu_kselftests_net.net:cmsg_ipv6.sh ubuntu_kselftests_net.net:cmsg_ipv6.sh timestamp=1756523127 localtime=Aug 30 03:05:27
03:05:27 DEBUG| Persistent state client._record_indent now set to 1
03:05:27 DEBUG| Persistent state client.unexpected_reboot deleted
03:05:27 DEBUG| Test has timeout: 2700 sec.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2122683/+subscriptions