syzbot


INFO: task hung in io_uring_register (5)

Status: auto-obsoleted due to no activity on 2024/10/11 10:45
Subsystems: io-uring
[Documentation on labels]
First crash: 215d, last: 215d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in io_uring_register fs 1 1170d 1170d 0/28 auto-closed as invalid on 2022/04/01 07:34
upstream INFO: task hung in io_uring_register (3) io-uring syz error error 2 719d 715d 0/28 auto-obsoleted due to no activity on 2023/06/25 17:40
upstream INFO: task hung in io_uring_register (4) io-uring 1 338d 338d 0/28 auto-obsoleted due to no activity on 2024/06/10 23:45
upstream INFO: task hung in io_uring_register (2) io-uring 1 860d 860d 0/28 auto-obsoleted due to no activity on 2023/01/17 13:12

Sample crash report:
INFO: task syz.0.1849:13711 blocked for more than 184 seconds.
      Not tainted 6.10.0-rc7-syzkaller-00254-g528dd46d0fc3 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.1849      state:D stack:28032 pid:13711 tgid:13709 ppid:9684   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0xf15/0x5d00 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6837
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b8/0x9c0 kernel/locking/mutex.c:752
 __do_sys_io_uring_register+0x1a4/0x2240 io_uring/register.c:615
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa54ef75bd9
RSP: 002b:00007fa54e9df048 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab
RAX: ffffffffffffffda RBX: 00007fa54f104038 RCX: 00007fa54ef75bd9
RDX: 0000000020000100 RSI: 0000000000000018 RDI: 0000000000000004
RBP: 00007fa54efe4e60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fa54f104038 R15: 00007ffe84403778
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8dbb1620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff8dbb1620 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
 #0: ffffffff8dbb1620 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614
2 locks held by kworker/u8:3/51:
2 locks held by getty/4839:
 #0: ffff88802c8500a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2211
1 lock held by syz.0.1849/13710:
1 lock held by syz.0.1849/13711:
 #0: ffff88807a2c80a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __do_sys_io_uring_register+0x1a4/0x2240 io_uring/register.c:615

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

NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc7-syzkaller-00254-g528dd46d0fc3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xf86/0x1240 kernel/hung_task.c:379
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 15730 Comm: syz.1.2316 Not tainted 6.10.0-rc7-syzkaller-00254-g528dd46d0fc3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:__rcu_read_unlock+0x10e/0x580 kernel/rcu/tree_plugin.h:431
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 75 01 00 00 8b 83 44 04 00 00 <3d> ff ff ff 3f 0f 87 49 01 00 00 5b 5d 41 5c 41 5d 41 5e c3 cc cc
RSP: 0018:ffffc90003637330 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff888027d35a00 RCX: ffffc900036372e0
RDX: 0000000000000000 RSI: ffffffff8b2cb200 RDI: ffff888027d35e44
RBP: ffff888027d35a00 R08: 0000000000000000 R09: fffffbfff1fc90da
R10: ffffffff8fe486d7 R11: 0000000000000002 R12: ffff888027d35a00
R13: 00000000ffffffff R14: 000000000003d90c R15: ffffea00016bfcd8
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020020000 CR3: 000000000d97a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 filemap_unaccount_folio mm/filemap.c:192 [inline]
 filemap_unaccount_folio+0x1a4/0x870 mm/filemap.c:157
 __filemap_remove_folio+0x115/0x750 mm/filemap.c:231
 filemap_remove_folio+0xc8/0x210 mm/filemap.c:264
 truncate_inode_folio+0x49/0x70 mm/truncate.c:195
 shmem_undo_range+0x378/0x1160 mm/shmem.c:1012
 shmem_truncate_range mm/shmem.c:1125 [inline]
 shmem_evict_inode+0x3a3/0xbb0 mm/shmem.c:1253
 evict+0x2ed/0x6c0 fs/inode.c:667
 iput_final fs/inode.c:1741 [inline]
 iput.part.0+0x5a8/0x7f0 fs/inode.c:1767
 iput+0x5c/0x80 fs/inode.c:1757
 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:404
 __dentry_kill+0x1d0/0x600 fs/dcache.c:607
 dput.part.0+0x4b1/0x9b0 fs/dcache.c:849
 dput+0x1f/0x30 fs/dcache.c:839
 __fput+0x54e/0xbb0 fs/file_table.c:430
 task_work_run+0x14e/0x250 kernel/task_work.c:180
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa9b/0x2ba0 kernel/exit.c:876
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1025
 get_signal+0x2616/0x2710 kernel/signal.c:2909
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x14a/0x2a0 kernel/entry/common.c:218
 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f78a7f75bd9
Code: Unable to access opcode bytes at 0x7f78a7f75baf.
RSP: 002b:00007f78a8cfe048 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: 000000000000000b RBX: 00007f78a8103f60 RCX: 00007f78a7f75bd9
RDX: 0000000000000651 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 00007f78a7fe4e60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f78a8103f60 R15: 00007ffe404ea318
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/13 10:37 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in io_uring_register
* Struck through repros no longer work on HEAD.