INFO: task udevd:3643 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00130-g511cce163b75 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:26248 pid: 3643 ppid: 2975 flags:0x00004006 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 io_schedule+0xba/0x130 kernel/sched/core.c:8714 folio_wait_bit_common+0x3dd/0xa90 mm/filemap.c:1298 __folio_lock mm/filemap.c:1664 [inline] folio_lock include/linux/pagemap.h:939 [inline] folio_lock include/linux/pagemap.h:935 [inline] __filemap_get_folio+0xc6d/0xed0 mm/filemap.c:1936 truncate_inode_pages_range+0x37c/0x1510 mm/truncate.c:378 kill_bdev block/bdev.c:75 [inline] blkdev_flush_mapping+0x140/0x2f0 block/bdev.c:661 blkdev_put_whole+0xd1/0xf0 block/bdev.c:692 blkdev_put+0x226/0x770 block/bdev.c:952 blkdev_close+0x64/0x80 block/fops.c:499 __fput+0x277/0x9d0 fs/file_table.c:320 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xad5/0x29b0 kernel/exit.c:795 do_group_exit+0xd2/0x2f0 kernel/exit.c:925 get_signal+0x238c/0x2610 kernel/signal.c:2857 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3a60525697 RSP: 002b:00007ffe03f70f10 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000008 RBX: 0000562f9032c8a0 RCX: 00007f3a60525697 RDX: 00000000000a0800 RSI: 0000562f90326bf0 RDI: 00000000ffffff9c RBP: 0000562f90326bf0 R08: 0000000000000001 R09: 00007ffe03f88080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 0000562f90313040 R14: 00007ffe03f70fbc R15: 0000562f902f72c0 INFO: task syz-executor370:3651 blocked for more than 143 seconds. Not tainted 6.0.0-rc7-syzkaller-00130-g511cce163b75 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor370 state:D stack:28560 pid: 3651 ppid: 3637 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 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa44/0x1350 kernel/locking/mutex.c:747 blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:812 blkdev_get_by_dev+0x6b/0x80 block/bdev.c:855 blkdev_open+0x13c/0x2c0 block/fops.c:485 do_dentry_open+0x4a4/0x13a0 fs/open.c:880 do_open fs/namei.c:3557 [inline] path_openat+0x1c92/0x28f0 fs/namei.c:3691 do_filp_open+0x1b6/0x400 fs/namei.c:3718 do_sys_openat2+0x16d/0x4c0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1340 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:0x7f757c7da9a4 RSP: 002b:00007f757c7cae70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f757c7da9a4 RDX: 0000000000000000 RSI: 00007f757c7caef0 RDI: 00000000ffffff9c RBP: 00007f757c7caef0 R08: 0000000000000000 R09: 00007f757c7cb700 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007f757c86f074 R14: 64626e2f7665642f R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf85db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf85ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bf86900 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 2 locks held by getty/3281: #0: ffff88814b185098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90001c382f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by udevd/3643: #0: ffff88801e9b14c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xbc/0x770 block/bdev.c:910 1 lock held by syz-executor370/3651: #0: ffff88801e9b14c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb90 block/bdev.c:812 2 locks held by dhcpcd/3663: #0: ffff888026a4c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1712 [inline] #0: ffff888026a4c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2f/0xdc0 net/packet/af_packet.c:3194 #1: ffffffff8bf915b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8bf915b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x562/0x670 kernel/rcu/tree_exp.h:940 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc7-syzkaller-00130-g511cce163b75 #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+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:212 [inline] watchdog+0xc18/0xf50 kernel/hung_task.c:369 kthread+0x2e4/0x3a0 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: 11 Comm: kworker/u4:1 Not tainted 6.0.0-rc7-syzkaller-00130-g511cce163b75 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__default_send_IPI_dest_field+0x7c/0x130 arch/x86/kernel/apic/ipi.c:173 Code: 00 c3 5f ff f6 c4 10 75 e2 44 89 e7 c1 e7 18 89 3c 25 10 c3 5f ff 89 f0 09 d8 80 cf 04 83 fe 02 0f 44 c3 89 04 25 00 c3 5f ff <48> 83 c4 08 5b 5d 41 5c c3 48 c7 c0 c0 0a a2 8b 48 ba 00 00 00 00 RSP: 0018:ffffc9000031f878 EFLAGS: 00000006 RAX: 00000000000008fb RBX: 0000000000000c00 RCX: 0000000000000001 RDX: 0000000000000800 RSI: 00000000000000fb RDI: 0000000002000000 RBP: fffffbffffebf860 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: ffffc9000031f8e0 R14: dffffc0000000000 R15: 0000000000000008 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056493b77c600 CR3: 000000000bc8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: _flat_send_IPI_mask+0x4e/0x60 arch/x86/kernel/apic/apic_flat_64.c:56 arch_send_call_function_single_ipi arch/x86/include/asm/smp.h:119 [inline] send_call_function_single_ipi+0x1b5/0x320 kernel/sched/core.c:3756 smp_call_function_many_cond+0x113e/0x1430 kernel/smp.c:968 on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1302 [inline] text_poke_bp_batch+0x59e/0x6c0 arch/x86/kernel/alternative.c:1559 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