INFO: task systemd-udevd:3116 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:systemd-udevd state:D stack:27584 pid: 3116 ppid: 2970 flags:0x00000000 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 lo_release+0x1ac/0x1f0 drivers/block/loop.c:1761 blkdev_put_whole block/bdev.c:694 [inline] blkdev_put+0x2fb/0x9e0 block/bdev.c:956 blkdev_close+0x6a/0x80 block/fops.c:515 __fput+0x286/0x9f0 fs/file_table.c:280 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:0x7f937ad3d270 RSP: 002b:00007ffff63be0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f937ad3d270 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f937bbf7710 R08: 000056267712a0d0 R09: 0000562677129e00 R10: 00007f937bbf78c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000056267712cde0 R14: 0000000000000003 R15: 000000000000000e Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb80fe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 2 locks held by in:imklog/6228: #0: ffff88801ef26af0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 #1: ffffc900010277a0 (&futex_queues[i].lock/1){+.+.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 1 lock held by syz-executor.5/30424: #0: ffff88801adbf118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 2 locks held by kworker/u4:6/31832: #0: ffff8880b9d39b18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffff8880b9d279c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3a6/0x490 kernel/sched/psi.c:880 2 locks held by systemd-udevd/3116: #0: ffff88801adbf118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x97/0x9e0 block/bdev.c:914 #1: ffff88801adbab60 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 ============================================= NMI backtrace for cpu 0 CPU: 0 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 27268 Comm: kworker/u4:0 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_acquire+0x3aa/0x54a0 kernel/locking/lockdep.c:4975 Code: 45 09 f7 45 09 cf 25 ff 1f 00 00 41 09 c7 48 b8 00 00 00 00 00 fc ff df 45 89 7c 24 20 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 <38> d0 7c 08 84 d2 0f 85 84 11 00 00 8b 84 24 38 01 00 00 41 89 44 RSP: 0018:ffffc90002d979e0 EFLAGS: 00000002 RAX: 0000000000000007 RBX: ffff888081404418 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888073602cd4 RBP: 0000000000000000 R08: 1ffff1100e6c0595 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888073602cb0 R13: ffff888073602200 R14: 0000000000040000 R15: 00000000000406e9 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9930e0d010 CR3: 000000000b88e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:354 [inline] batadv_nc_purge_paths+0xdf/0x3a0 net/batman-adv/network-coding.c:446 batadv_nc_worker+0x8f9/0xfa0 net/batman-adv/network-coding.c:724 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 45 09 f7 or %r14d,%r15d 3: 45 09 cf or %r9d,%r15d 6: 25 ff 1f 00 00 and $0x1fff,%eax b: 41 09 c7 or %eax,%r15d e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 45 89 7c 24 20 mov %r15d,0x20(%r12) 1d: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx 21: 48 89 f8 mov %rdi,%rax 24: 83 e0 07 and $0x7,%eax 27: 83 c0 03 add $0x3,%eax * 2a: 38 d0 cmp %dl,%al <-- trapping instruction 2c: 7c 08 jl 0x36 2e: 84 d2 test %dl,%dl 30: 0f 85 84 11 00 00 jne 0x11ba 36: 8b 84 24 38 01 00 00 mov 0x138(%rsp),%eax 3d: 41 rex.B 3e: 89 .byte 0x89 3f: 44 rex.R