INFO: task syz-executor310:4311 blocked for more than 143 seconds. Not tainted 6.1.132-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor310 state:D stack:27832 pid:4311 ppid:4270 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6561 schedule+0xbf/0x180 kernel/sched/core.c:6637 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6696 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6b9/0xd80 kernel/locking/mutex.c:747 blkdev_put+0x100/0x750 block/bdev.c:913 blkdev_close+0x56/0x80 block/fops.c:514 __fput+0x3f6/0x8d0 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:203 get_signal+0x15d0/0x17a0 kernel/signal.c:2648 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f7fd8d7ab29 RSP: 002b:00007f7fd8d17218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007f7fd8e02338 RCX: 00007f7fd8d7ab29 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007f7fd8e02330 R08: 00007ffeed4da637 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7fd8e0233c R13: 00007f7fd8dcf544 R14: 64626e2f7665642f R15: 0000200000000040 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d32e910 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d32f110 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517 1 lock held by khungtaskd/28: #0: ffffffff8d32e740 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d32e740 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d32e740 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6510 1 lock held by klogd/3613: #0: ffff8880b8e3a998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537 2 locks held by getty/4006: #0: ffff88814cd44098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc9000325e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x54a/0x1620 drivers/tty/n_tty.c:2198 1 lock held by udevd/4274: #0: ffff8881437c94c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x148/0xa10 block/bdev.c:815 1 lock held by syz-executor310/4311: #0: ffff8881437c94c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x750 block/bdev.c:913 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ca/0x430 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf88/0xfd0 kernel/hung_task.c:377 kthread+0x28d/0x320 kernel/kthread.c:376 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: 1123 Comm: kworker/u4:5 Not tainted 6.1.132-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:task_wait_context kernel/locking/lockdep.c:4663 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4744 [inline] RIP: 0010:__lock_acquire+0x6e1/0x1f80 kernel/locking/lockdep.c:4999 Code: 8b 34 24 48 ba 00 00 00 00 00 fc ff df e9 65 ff ff ff 65 8b 05 74 b3 97 7e 41 b7 02 85 c0 48 8b 5c 24 10 75 1f 48 8b 44 24 58 <0f> b6 04 10 84 c0 0f 85 9f 14 00 00 83 3b 00 41 0f 94 c7 45 00 ff RSP: 0018:ffffc900047f7540 EFLAGS: 00000046 RAX: 1ffff11004e34c80 RBX: ffff8880271a6404 RCX: 0000000000000002 RDX: dffffc0000000000 RSI: ffff8880271a6420 RDI: ffffffff912bb260 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff225764d R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff8880271a5940 R14: ffff8880271a6508 R15: 1ffff11004e34c02 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b9e2963600 CR3: 000000000d08e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __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:351 [inline] __get_locked_pte+0x169/0x1c0 mm/memory.c:1850 get_locked_pte include/linux/mm.h:2243 [inline] __text_poke+0x280/0x9a0 arch/x86/kernel/alternative.c:1155 text_poke arch/x86/kernel/alternative.c:1240 [inline] text_poke_bp_batch+0x481/0x940 arch/x86/kernel/alternative.c:1556 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1732 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0xce/0x1b0 kernel/jump_label.c:237 static_key_disable+0x16/0x20 kernel/jump_label.c:245 toggle_allocation_gate+0x3e0/0x480 mm/kfence/core.c:819 process_one_work+0x917/0x1260 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295