INFO: task syz-executor.0:8131 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28496 pid: 8131 ppid: 17310 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6250 schedule+0xd2/0x260 kernel/sched/core.c:6323 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 nbd_add_socket+0x166/0x810 drivers/block/nbd.c:1109 __nbd_ioctl drivers/block/nbd.c:1454 [inline] nbd_ioctl+0x38c/0xb10 drivers/block/nbd.c:1511 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:0x7fe32cc92ae9 RSP: 002b:00007fe32a208188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe32cda5f60 RCX: 00007fe32cc92ae9 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 00007fe32ccecf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcda0cff7f R14: 00007fe32a208300 R15: 0000000000022000 INFO: task syz-executor.0:8138 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:29592 pid: 8138 ppid: 17310 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6250 schedule+0xd2/0x260 kernel/sched/core.c:6323 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6382 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 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:0x7fe32cc92ae9 RSP: 002b:00007fe32a1e7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe32cda6020 RCX: 00007fe32cc92ae9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007fe32ccecf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcda0cff7f R14: 00007fe32a1e7300 R15: 0000000000022000 INFO: task syz-executor.0:8164 blocked for more than 143 seconds. Not tainted 5.15.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:29592 pid: 8164 ppid: 17310 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4969 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6250 schedule+0xd2/0x260 kernel/sched/core.c:6323 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6382 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 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:0x7fe32cc92ae9 RSP: 002b:00007fe32a184188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe32cda6260 RCX: 00007fe32cc92ae9 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 00007fe32ccecf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcda0cff7f R14: 00007fe32a184300 R15: 0000000000022000 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 2 locks held by in:imklog/6211: 2 locks held by agetty/6221: #0: ffff888022b8e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002aa82e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 1 lock held by syz-executor.0/8131: #0: ffff88801a4b9998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 1 lock held by syz-executor.0/8138: #0: ffff88801a4b9998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 1 lock held by syz-executor.0/8164: #0: ffff88801a4b9998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.0-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:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 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: 1082 Comm: kworker/u4:5 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:hlock_id kernel/locking/lockdep.c:401 [inline] RIP: 0010:__lock_acquire+0xa38/0x54a0 kernel/locking/lockdep.c:5015 Code: 58 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 38 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 35 38 00 00 41 0f b7 44 24 20 <66> 25 ff 1f 66 89 44 24 08 41 0f b6 44 24 22 83 e0 03 48 83 7c 24 RSP: 0018:ffffc90004b2f788 EFLAGS: 00000046 RAX: 0000000000000090 RBX: 0000000000307419 RCX: ffffffff815caaea RDX: 1ffff11003832169 RSI: 0000000000000008 RDI: ffff88801c190b49 RBP: ffff88801c190b4a R08: 0000000000000000 R09: ffffffff8ff75a17 R10: fffffbfff1feeb42 R11: 000000000000003f R12: ffff88801c190b28 R13: ffff88801c190000 R14: 0000000000000000 R15: 9003074182af4f12 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7eee5cb030 CR3: 000000000b88e000 CR4: 0000000000350ee0 Call Trace: lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:349 [inline] __get_locked_pte+0x2b6/0x4d0 mm/memory.c:1722 get_locked_pte include/linux/mm.h:2160 [inline] __text_poke+0x1ae/0x8c0 arch/x86/kernel/alternative.c:1000 text_poke_bp_batch+0x2eb/0x560 arch/x86/kernel/alternative.c:1310 text_poke_flush arch/x86/kernel/alternative.c:1451 [inline] text_poke_flush arch/x86/kernel/alternative.c:1448 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1458 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d5/0x430 kernel/jump_label.c:830 static_key_disable_cpuslocked+0x152/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate mm/kfence/core.c:746 [inline] toggle_allocation_gate+0x183/0x390 mm/kfence/core.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: 58 pop %rax 1: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 8: fc ff df b: 48 8b 54 24 38 mov 0x38(%rsp),%rdx 10: 48 c1 ea 03 shr $0x3,%rdx 14: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax 18: 84 c0 test %al,%al 1a: 74 08 je 0x24 1c: 3c 03 cmp $0x3,%al 1e: 0f 8e 35 38 00 00 jle 0x3859 24: 41 0f b7 44 24 20 movzwl 0x20(%r12),%eax * 2a: 66 25 ff 1f and $0x1fff,%ax <-- trapping instruction 2e: 66 89 44 24 08 mov %ax,0x8(%rsp) 33: 41 0f b6 44 24 22 movzbl 0x22(%r12),%eax 39: 83 e0 03 and $0x3,%eax 3c: 48 rex.W 3d: 83 .byte 0x83 3e: 7c 24 jl 0x64