syzbot


INFO: task hung in io_uring_release (2)

Status: auto-closed as invalid on 2022/06/09 22:24
Reported-by: syzbot+f4dee1c474a6e3f68100@syzkaller.appspotmail.com
First crash: 252d, last: 140d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in io_uring_release 24 1084d 1101d 13/22 fixed on 2019/08/05 13:45
upstream INFO: task can't die in sysvec_apic_timer_interrupt 3 546d 565d 0/22 auto-closed as invalid on 2021/03/01 02:04

Sample crash report:
INFO: task syz-executor.0:14236 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc3-syzkaller-00043-gf4bc5bbb5fef #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:25904 pid:14236 ppid:  3633 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6295
 schedule+0x12b/0x1f0 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common+0xe9f/0x2490 kernel/locking/mutex.c:673
 __mutex_lock kernel/locking/mutex.c:733 [inline]
 mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785
 io_ring_ctx_wait_and_kill+0xa0/0x36a fs/io_uring.c:9655
 io_uring_release+0x59/0x63 fs/io_uring.c:9684
 __fput+0x3fc/0x870 fs/file_table.c:313
 task_work_run+0x146/0x1c0 kernel/task_work.c:164
 get_signal+0x2286/0x2330 kernel/signal.c:2630
 arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f4f0a73a059
RSP: 002b:00007f4f0908e168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: 0000000000003c67 RBX: 00007f4f0a84d030 RCX: 00007f4f0a73a059
RDX: 0000000000000000 RSI: 0000000000003c67 RDI: 0000000000000004
RBP: 00007f4f0a79408d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcbcc47aef R14: 00007f4f0908e300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8cb1db60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3275:
 #0: ffff88814a9e1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2077
2 locks held by syz-executor.0/14187:
1 lock held by syz-executor.0/14236:
 #0: ffff8880257620a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_ring_ctx_wait_and_kill+0xa0/0x36a fs/io_uring.c:9655

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.17.0-rc3-syzkaller-00043-gf4bc5bbb5fef #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc82/0xcd0 kernel/hung_task.c:369
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 13585 Comm: kworker/u4:9 Not tainted 5.17.0-rc3-syzkaller-00043-gf4bc5bbb5fef #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy5 ieee80211_iface_work
RIP: 0010:variable_test_bit arch/x86/include/asm/bitops.h:214 [inline]
RIP: 0010:test_bit include/asm-generic/bitops/instrumented-non-atomic.h:135 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:199 [inline]
RIP: 0010:__lock_acquire+0x1060/0x2b00 kernel/locking/lockdep.c:5023
Code: 84 c0 0f 85 32 15 00 00 41 8b 1e 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 1e fe 8f be 08 00 00 00 e8 f0 5a 6a 00 <48> 0f a3 1d a8 26 97 0e 0f 82 0e 02 00 00 48 c7 c0 a0 98 bf 90 48
RSP: 0018:ffffc9000f537840 EFLAGS: 00000056
RAX: 0000000000000001 RBX: 00000000000007c5 RCX: ffffffff8166f770
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8ffe1f18
RBP: ffffc9000f537990 R08: dffffc0000000000 R09: fffffbfff1ffc3e4
R10: fffffbfff1ffc3e4 R11: 0000000000000000 R12: ffff888037d9ba00
R13: ffff888037d9c4b0 R14: ffff888037d9c4a8 R15: 822ea2a028cafa75
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2b4c83ba88 CR3: 000000000c88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5639
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 skb_dequeue+0x29/0x140 net/core/skbuff.c:3236
 ieee80211_iface_work+0x981/0xca0 net/mac80211/iface.c:1588
 process_one_work+0x850/0x1130 kernel/workqueue.c:2307
 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
----------------
Code disassembly (best guess):
   0:	84 c0                	test   %al,%al
   2:	0f 85 32 15 00 00    	jne    0x153a
   8:	41 8b 1e             	mov    (%r14),%ebx
   b:	81 e3 ff 1f 00 00    	and    $0x1fff,%ebx
  11:	48 89 d8             	mov    %rbx,%rax
  14:	48 c1 e8 06          	shr    $0x6,%rax
  18:	48 8d 3c c5 20 1e fe 	lea    -0x7001e1e0(,%rax,8),%rdi
  1f:	8f
  20:	be 08 00 00 00       	mov    $0x8,%esi
  25:	e8 f0 5a 6a 00       	callq  0x6a5b1a
* 2a:	48 0f a3 1d a8 26 97 	bt     %rbx,0xe9726a8(%rip)        # 0xe9726da <-- trapping instruction
  31:	0e
  32:	0f 82 0e 02 00 00    	jb     0x246
  38:	48 c7 c0 a0 98 bf 90 	mov    $0xffffffff90bf98a0,%rax
  3f:	48                   	rex.W

Crashes (31):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/02/09 22:23 upstream f4bc5bbb5fef 0b33604d .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-smack-root 2021/12/23 19:00 upstream bc491fb12513 6caa12e4 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-smack-root 2021/12/19 18:59 upstream 3f667b5d4053 44068e19 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/12/04 19:58 upstream bbef3c7a63d2 a617004c .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/12/02 10:56 upstream 58e1100fdc59 61f86278 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/12/02 10:28 upstream 58e1100fdc59 61f86278 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/12/01 06:02 upstream f080815fdb3e 80270552 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/30 15:37 upstream d58071a8a76d 80270552 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/29 23:17 upstream d58071a8a76d d0830353 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/29 19:02 upstream d58071a8a76d d0830353 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/28 13:34 upstream 3498e7f2bb41 63eeac02 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/11/27 11:31 upstream c5c17547b778 63eeac02 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/26 01:16 upstream b501b85957de 63eeac02 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/25 15:55 upstream 5f53fa508db0 545ab074 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/25 03:59 upstream 5f53fa508db0 545ab074 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/24 04:38 upstream 5d9f4cf36721 545ab074 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-selinux-root 2021/11/20 22:32 upstream a90af8f15bdc 4eb20a4e .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/19 22:23 upstream 4c388a8e740d 3a9d0024 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/19 08:20 upstream 6fdf886424cf 31a30fc0 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/17 04:41 upstream 8ab774587903 cafff8b6 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/11/16 07:17 upstream 8ab774587903 83f5c9b5 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/14 12:32 upstream ccfff0a2bd2a 83f5c9b5 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/11/11 21:55 upstream debe436e77c7 75b04091 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/08 22:33 upstream e851dfae4371 d29682f1 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/11/07 06:34 upstream 512b7931ad05 4c1be0be .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce 2021/11/07 06:13 upstream 512b7931ad05 4c1be0be .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/11/03 09:17 upstream cc0356d6a02e 17f3edd2 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-root 2021/10/20 04:43 upstream d9abdee5fd5a 466b7db1 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-386 2021/12/02 14:56 upstream 58e1100fdc59 61f86278 .config log report info INFO: task hung in io_uring_release
ci-upstream-kasan-gce-386 2021/11/17 14:36 upstream 8ab774587903 cafff8b6 .config log report info INFO: task hung in io_uring_release
ci-upstream-linux-next-kasan-gce-root 2021/11/27 23:23 linux-next f81e94e91878 63eeac02 .config log report info INFO: task can't die in sysvec_apic_timer_interrupt