INFO: task syz-executor.0:3699 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25920 pid: 3699 ppid: 3680 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629 __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 blkdev_put+0x100/0x730 block/bdev.c:910 blkdev_close+0x55/0x80 block/fops.c:499 __fput+0x3b9/0x820 fs/file_table.c:320 task_work_run+0x146/0x1c0 kernel/task_work.c:177 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x41816b RSP: 002b:00007ffeea063d00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 000000000041816b RDX: 00000000000004a3 RSI: 0000001b31b200bc RDI: 0000000000000003 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000001b31b200c4 R10: 00007ffeea0b50b8 R11: 0000000000000293 R12: 000000000055d900 R13: 000000000055d900 R14: 000000000055cf00 R15: 000000000055cfa0 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cd20a70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cd21270 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/29: #0: ffffffff8cd208a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3285: #0: ffff88802760c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 1 lock held by udevd/3683: #0: ffff88801e9194c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0xfd/0xa40 block/bdev.c:812 1 lock held by syz-executor.0/3699: #0: ffff88801e9194c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x100/0x730 block/bdev.c:910 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x47c/0x4b0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x169/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 1089 Comm: kworker/u4:5 Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:lock_is_held_type+0x10a/0x190 kernel/locking/lockdep.c:5710 Code: 83 fe ff 74 14 31 c0 f6 45 22 03 0f 95 c0 31 ed 44 39 f0 40 0f 94 c5 eb 05 bd 01 00 00 00 48 c7 c7 c0 88 ad 8a e8 46 14 00 00 ff ff ff ff 65 0f c1 05 09 d9 c8 75 83 f8 01 75 40 48 c7 04 24 RSP: 0018:ffffc90004477598 EFLAGS: 00000082 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000080000002 RDX: 0000000000000000 RSI: ffffffff8aad88c0 RDI: ffffffff8b0a66c0 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1c4b5fe R10: fffffbfff1c4b5fe R11: 1ffffffff1c4b5fd R12: 0000000000000046 R13: ffff8880207d8000 R14: 00000000ffffffff R15: ffffffff8cd20820 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055cad8cac018 CR3: 000000000ca8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125 trace_tlb_flush+0x7a/0x190 include/trace/events/tlb.h:38 switch_mm_irqs_off+0x59d/0x8f0 unuse_temporary_mm arch/x86/kernel/alternative.c:1055 [inline] __text_poke+0x749/0x9d0 arch/x86/kernel/alternative.c:1165 text_poke arch/x86/kernel/alternative.c:1208 [inline] text_poke_bp_batch+0x6bc/0x970 arch/x86/kernel/alternative.c:1554 text_poke_flush arch/x86/kernel/alternative.c:1660 [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 static_key_enable_cpuslocked+0x129/0x250 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate+0xbf/0x470 mm/kfence/core.c:811 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306