INFO: task syz-executor315:5081 blocked for more than 143 seconds. Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor315 state:D stack:27424 pid:5081 ppid:5079 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xcce/0x5b20 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 blkdev_put+0xc0/0x770 block/bdev.c:911 blkdev_close+0x68/0x80 block/fops.c:507 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 ptrace_notify+0x118/0x140 kernel/signal.c:2354 ptrace_report_syscall include/linux/ptrace.h:411 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline] syscall_exit_work kernel/entry/common.c:251 [inline] syscall_exit_to_user_mode_prepare+0x129/0x290 kernel/entry/common.c:278 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0xd/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2dd64aabbb RSP: 002b:00007ffe8408e710 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f2dd64aabbb RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000064 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000009e09 R13: 00007f2dd65734dc R14: 00007ffe8408e770 R15: 00007f2dd65734c0 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c795f30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c795c30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8c796a80 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495 2 locks held by getty/4752: #0: ffff8880275fe098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor315/5081: #0: ffff88801e9494c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xc0/0x770 block/bdev.c:911 1 lock held by udevd/5083: #0: ffff88801e9494c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:813 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x316/0x3e0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x333/0x440 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+0xe53/0x11b0 kernel/hung_task.c:377 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 11 Comm: kworker/u4:1 Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:mark_held_locks+0x7c/0xe0 kernel/locking/lockdep.c:4229 Code: 0a 00 00 85 c0 7e 57 48 63 c3 48 8d 04 80 49 8d 34 c6 48 8d 7e 22 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 <7f> 04 84 c0 75 4a 0f b6 46 22 89 c2 83 e2 03 80 fa 01 89 ea 83 da RSP: 0018:ffffc900001078f8 EFLAGS: 00000093 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffffffff1ceda29 RDX: 0000000000000002 RSI: ffff88813fe544b8 RDI: ffff88813fe544da RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000001 R10: fffffbfff1cee032 R11: 0000000000000000 R12: ffff88813fe53a80 R13: dffffc0000000000 R14: ffff88813fe544b8 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557877239c20 CR3: 000000000c572000 CR4: 0000000000350ef0 Call Trace: __trace_hardirqs_on_caller kernel/locking/lockdep.c:4255 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4322 [inline] lockdep_hardirqs_on_prepare+0x139/0x410 kernel/locking/lockdep.c:4274 trace_hardirqs_on+0x36/0x40 kernel/trace/trace_preemptirq.c:61 smp_call_function_many_cond+0xe2d/0x10a0 kernel/smp.c:979 on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:1155 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1770 [inline] text_poke_bp_batch+0x237/0x770 arch/x86/kernel/alternative.c:1970 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_flush arch/x86/kernel/alternative.c:2158 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_disable_cpuslocked+0x156/0x1b0 kernel/jump_label.c:235 static_key_disable+0x1a/0x20 kernel/jump_label.c:243 toggle_allocation_gate mm/kfence/core.c:804 [inline] toggle_allocation_gate+0x143/0x230 mm/kfence/core.c:791 process_one_work+0x9bf/0x1820 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308