INFO: task syz-executor379:3646 blocked for more than 143 seconds. Not tainted 5.19.0-next-20220809-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor379 state:D stack:27432 pid:3646 ppid:3636 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:180 nbd_add_socket+0x166/0x810 drivers/block/nbd.c:1123 __nbd_ioctl drivers/block/nbd.c:1464 [inline] nbd_ioctl+0x4ab/0xbd0 drivers/block/nbd.c:1521 blkdev_ioctl+0x36e/0x800 block/ioctl.c:614 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7f72c2a5f399 RSP: 002b:00007ffc8dcc8b78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000007661f RCX: 00007f72c2a5f399 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffc8dcc8d18 R09: 00007ffc8dcc8d18 R10: 00007ffc8dcc85f0 R11: 0000000000000246 R12: 00007ffc8dcc8b8c R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 Showing all threads with locks held in the system: task:rcu_tasks_kthre state:I stack:29000 pid:12 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 rcu_tasks_one_gp+0x3e5/0xc70 kernel/rcu/tasks.h:514 rcu_tasks_kthread+0x73/0xa0 kernel/rcu/tasks.h:552 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf889b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 task:rcu_tasks_trace state:I stack:29120 pid:13 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 rcu_tasks_one_gp+0x3e5/0xc70 kernel/rcu/tasks.h:514 rcu_tasks_kthread+0x73/0xa0 kernel/rcu/tasks.h:552 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf886b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 task:klogd state:R running task stack:25504 pid:2962 ppid:1 flags:0x00000000 Call Trace: no locks held by klogd/2962. task:getty state:S stack:23392 pid:3285 ppid:1 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 wait_woken+0x18b/0x1f0 kernel/sched/wait.c:459 n_tty_read+0x1051/0x13e0 drivers/tty/n_tty.c:2243 iterate_tty_read drivers/tty/tty_io.c:858 [inline] tty_read+0x33a/0x5d0 drivers/tty/tty_io.c:933 call_read_iter include/linux/fs.h:2186 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x67d/0x930 fs/read_write.c:470 ksys_read+0x127/0x250 fs/read_write.c:607 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+0x63/0xcd RIP: 0033:0x7f55aa5a58fe RSP: 002b:00007ffff583eb18 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 000055ab76486910 RCX: 00007f55aa5a58fe RDX: 0000000000000001 RSI: 00007ffff583eb30 RDI: 0000000000000000 RBP: 000055ab76486970 R08: 0000000000000007 R09: 000055ab76487cd0 R10: 0000000000000063 R11: 0000000000000246 R12: 000055ab764869ac R13: 00007ffff583eb30 R14: 0000000000000000 R15: 000055ab764869ac 2 locks held by getty/3285: #0: ffff88814a913098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 task:syz-executor379 state:D stack:27432 pid:3646 ppid:3636 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0xadf/0x52b0 kernel/sched/core.c:6494 schedule+0xda/0x1b0 kernel/sched/core.c:6570 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:180 nbd_add_socket+0x166/0x810 drivers/block/nbd.c:1123 __nbd_ioctl drivers/block/nbd.c:1464 [inline] nbd_ioctl+0x4ab/0xbd0 drivers/block/nbd.c:1521 blkdev_ioctl+0x36e/0x800 block/ioctl.c:614 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 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+0x63/0xcd RIP: 0033:0x7f72c2a5f399 RSP: 002b:00007ffc8dcc8b78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000007661f RCX: 00007f72c2a5f399 RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffc8dcc8d18 R09: 00007ffc8dcc8d18 R10: 00007ffc8dcc85f0 R11: 0000000000000246 R12: 00007ffc8dcc8b8c R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000 1 lock held by syz-executor379/3646: #0: ffff888147440198 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xbd0 drivers/block/nbd.c:1514 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.19.0-next-20220809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x46/0x14f lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:227 [inline] watchdog+0xcf7/0xfd0 kernel/hung_task.c:384 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.19.0-next-20220809-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:load_new_mm_cr3+0x7e/0x110 arch/x86/mm/tlb.c:294 Code: 48 8b 05 dd ac a7 0c a9 00 00 02 00 74 68 48 89 ef e8 46 f8 ff ff 48 89 c6 83 c3 01 0f b7 c3 48 09 f0 48 0f ba e8 3f 0f 22 d8 <5b> 5d c3 66 85 f6 75 5a 48 89 ef e8 22 f8 ff ff eb eb 0f 0b 48 c7 RSP: 0018:ffffc900000d7968 EFLAGS: 00000093 RAX: 000000000bc8e000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888011a6d880 RSI: ffffffff8136e1b4 RDI: 0000000000000007 RBP: ffffffff8bc8e000 R08: 0000000000000007 R09: 000000001fffffff R10: 000000000bc8e000 R11: 0000000000000000 R12: ffff88813fe30000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d9b57ba600 CR3: 000000000bc8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: switch_mm_irqs_off+0x562/0xa20 arch/x86/mm/tlb.c:628 unuse_temporary_mm arch/x86/kernel/alternative.c:1055 [inline] __text_poke+0x3f3/0x8e0 arch/x86/kernel/alternative.c:1165 text_poke arch/x86/kernel/alternative.c:1208 [inline] text_poke_bp_batch+0x44a/0x6c0 arch/x86/kernel/alternative.c:1554 text_poke_flush arch/x86/kernel/alternative.c:1660 [inline] text_poke_flush arch/x86/kernel/alternative.c:1657 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1667 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:801 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:811 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:803 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306