https://lists.ubuntu.com/archives/kernel-team/2021-May/120236.html

Sent fix to mailing list.

** Description changed:

- io_uring02 from ubuntu_ltp_syscalls fails on F/oem-5.6 5.6.0-1056.60 on
- host spitfire
+ [Impact]
+ When using async io_uring OP_SENDMSG, a copy to kernel address 0 might be 
attempted, leading to a kernel WARN/BUG and an uninterruptible process.
+ 
+ [Fix]
+ Partial backport of dd821e0c95a64b5923a0c57f07d3f7563553e756 ("io_uring: fix 
missing msg_name assignment"). The recvmsg side does not seed to set msg_name, 
as it copies from a local/stack kernel address (at ____sys_recvmsg) to a uaddr 
parameter, which is given when doing the copy_msghdr operation.
+ 
+ [Test case]
+ LTP io_uring02 was run, and an equivalent recvmsg test was done too. A 
successfull sendmsg test (without the chroot at io_uring02 test) was also 
tested.
+ 
+ [Potential regressions]
+ io_uring sendmsg/recvmsg paths could fail, potentially leading to a system 
crash or even a security vulnerability.
+ 
+ 
+ -----------------------------------------------------------------------
+ 
+ 
+ io_uring02 from ubuntu_ltp_syscalls fails on F/oem-5.6 5.6.0-1056.60 on host 
spitfire
  
  This test isn't found to be ran on previous versions on F/oem-5.6, so
  would not consider this to be a regression.
- 
  
  26934.        05/07 14:42:48 DEBUG| utils:0153| [stdout] tag=io_uring01 
stime=1620398217 dur=0 exit=exited stat=0 core=no cu=0 cs=0
  26935.        05/07 14:42:48 DEBUG| utils:0153| [stdout] startup='Fri May 7 
14:36:57 2021'
  26936.        05/07 14:42:48 DEBUG| utils:0153| [stdout] tst_test.c:1311: 
TINFO: Timeout per run is 0h 05m 00s
  26937.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26938.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26939.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26940.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26941.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26942.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26943.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26944.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26945.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26946.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26947.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Test timeouted, 
sending SIGKILL!
  26948.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Cannot kill test 
processes!
  26949.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Congratulation, 
likely test hit a kernel bug.
  26950.        05/07 14:42:48 DEBUG| utils:0153| [stdout] Exitting uncleanly...
  26951.        05/07 14:42:48 DEBUG| utils:0153| [stdout] tag=io_uring02 
stime=1620398217 dur=350 exit=exited stat=1 core=no cu=0 cs=0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1928028

Title:
  io_uring02 from ubuntu_ltp_syscalls fails on F/oem-5.6 (timeouted /
  SIGKILL)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1928028/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to