INFO: task syz-executor.4:10925 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27608 pid:10925 ppid: 8011 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 __loop_clr_fd+0x1ae/0x1070 drivers/block/loop.c:1122 loop_clr_fd drivers/block/loop.c:1237 [inline] lo_ioctl+0x398/0x17c0 drivers/block/loop.c:1562 blkdev_ioctl+0x37a/0x800 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fda75f608a7 RSP: 002b:00007fda734d5fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000180 RCX: 00007fda75f608a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004 RBP: 00007fda734d66bc R08: 00007fda734d6040 R09: 00000000200002c0 R10: 0000000000000010 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007fda734d6000 R15: 0000000020000b00 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83b60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by in:imklog/6218: 5 locks held by kworker/u4:7/9947: 2 locks held by systemd-udevd/9998: #0: ffff88801ac81118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801ac6cb60 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 1 lock held by syz-executor.4/10925: #0: ffff88801ac6cb60 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2960 Comm: systemd-journal Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memory_is_nonzero mm/kasan/generic.c:101 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x5c/0x180 mm/kasan/generic.c:189 Code: e9 01 48 89 fd 48 b8 00 00 00 00 00 fc ff df 4d 89 ca 48 c1 ed 03 49 c1 ea 03 48 01 c5 49 01 c2 48 89 e8 49 8d 5a 01 48 89 da <48> 29 ea 48 83 fa 10 7e 63 41 89 eb 41 83 e3 07 75 74 4c 8d 5a 07 RSP: 0018:ffffc9000282fa18 EFLAGS: 00000082 RAX: fffffbfff1fee340 RBX: fffffbfff1fee341 RCX: ffffffff815c5c9a RDX: fffffbfff1fee341 RSI: 0000000000000008 RDI: ffffffff8ff71a00 RBP: fffffbfff1fee340 R08: 0000000000000000 R09: ffffffff8ff71a07 R10: fffffbfff1fee340 R11: 0000000000000000 R12: ffff88807affe160 R13: ffff88807affd700 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f0350ac38c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f034df48000 CR3: 0000000018e6d000 CR4: 0000000000350ef0 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] __lock_acquire+0x101a/0x54a0 kernel/locking/lockdep.c:4997 lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 __debug_object_init+0xb1/0xd10 lib/debugobjects.c:569 debug_object_init lib/debugobjects.c:620 [inline] debug_object_activate+0x32c/0x3e0 lib/debugobjects.c:706 debug_rcu_head_queue kernel/rcu/rcu.h:176 [inline] __call_rcu kernel/rcu/tree.c:2969 [inline] call_rcu+0x2c/0x740 kernel/rcu/tree.c:3065 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0350052840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007ffdc606ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: fffffffffffffffe RBX: 00007ffdc606af80 RCX: 00007f0350052840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000556d02374e70 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000556d02368040 R14: 00007ffdc606af40 R15: 0000556d02374c90 ---------------- Code disassembly (best guess): 0: e9 01 48 89 fd jmpq 0xfd894806 5: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax c: fc ff df f: 4d 89 ca mov %r9,%r10 12: 48 c1 ed 03 shr $0x3,%rbp 16: 49 c1 ea 03 shr $0x3,%r10 1a: 48 01 c5 add %rax,%rbp 1d: 49 01 c2 add %rax,%r10 20: 48 89 e8 mov %rbp,%rax 23: 49 8d 5a 01 lea 0x1(%r10),%rbx 27: 48 89 da mov %rbx,%rdx * 2a: 48 29 ea sub %rbp,%rdx <-- trapping instruction 2d: 48 83 fa 10 cmp $0x10,%rdx 31: 7e 63 jle 0x96 33: 41 89 eb mov %ebp,%r11d 36: 41 83 e3 07 and $0x7,%r11d 3a: 75 74 jne 0xb0 3c: 4c 8d 5a 07 lea 0x7(%rdx),%r11