INFO: task syz-executor.0:5178 blocked for more than 143 seconds. Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28544 pid:5178 ppid:5113 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x969/0x1340 kernel/locking/mutex.c:747 blkdev_put+0xb0/0x8e0 block/bdev.c:884 blkdev_release+0x82/0xa0 block/fops.c:604 __fput+0x3f7/0xa70 fs/file_table.c:384 task_work_run+0x14d/0x240 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x215/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4546c9 RSP: 002b:00007f080a0bc0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: 00000000004546c9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 0000000000000409 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004e3e00 R13: 00007f080a0bc674 R14: 000000000054bf00 R15: 00000000004f4040 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613 2 locks held by getty/4791: #0: ffff8880295f20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc5/0x1480 drivers/tty/n_tty.c:2206 1 lock held by udevd/5133: #0: ffff8881413654c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786 1 lock held by syz-executor.0/5178: #0: ffff8881413654c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xb0/0x8e0 block/bdev.c:884 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 41 Comm: kworker/u4:2 Not tainted 6.6.0-rc3-syzkaller-00038-g0e945134b680 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:3762 [inline] RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3781 [inline] RIP: 0010:validate_chain kernel/locking/lockdep.c:3836 [inline] RIP: 0010:__lock_acquire+0x18c5/0x5de0 kernel/locking/lockdep.c:5136 Code: 85 db 48 0f 45 d8 eb 04 48 83 eb 08 48 85 db 74 40 48 8d 7b 18 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 fa 2b 00 00 48 8b 43 18 <49> 39 c6 0f 84 a6 f4 ff ff 48 8d 7b 08 48 89 f8 48 c1 e8 03 80 3c RSP: 0018:ffffc90000d2f9b0 EFLAGS: 00000046 RAX: 036e1fc2e1ccf8bc RBX: ffffffff908a9740 RCX: ffffffff816735bf RDX: 1ffffffff2339608 RSI: 0000000000000008 RDI: ffffffff908a9758 RBP: dffffc0000000000 R08: 0000000000000000 R09: fffffbfff233cbd0 R10: ffffffff919e5e87 R11: 0000000000000000 R12: 000000000001fa4c R13: ffff888013ee8c58 R14: 036e1fc2e1ccf8bc R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560abc6c3600 CR3: 000000000c976000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0x1ae/0x510 kernel/locking/lockdep.c:5718 percpu_down_read include/linux/percpu-rwsem.h:51 [inline] cpus_read_lock+0x42/0x160 kernel/cpu.c:489 static_key_disable+0x12/0x20 kernel/jump_label.c:242 toggle_allocation_gate mm/kfence/core.c:835 [inline] toggle_allocation_gate+0x13f/0x250 mm/kfence/core.c:822 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304