INFO: task udevd:5101 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:26304 pid:5101 ppid:4421 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6555 schedule+0xde/0x1b0 kernel/sched/core.c:6631 io_schedule+0xbe/0x130 kernel/sched/core.c:8811 folio_wait_bit_common+0x394/0x9b0 mm/filemap.c:1297 __folio_lock mm/filemap.c:1660 [inline] folio_lock include/linux/pagemap.h:938 [inline] folio_lock include/linux/pagemap.h:934 [inline] __filemap_get_folio+0xb71/0xd80 mm/filemap.c:1932 truncate_inode_pages_range+0x350/0xec0 mm/truncate.c:377 kill_bdev block/bdev.c:76 [inline] blkdev_flush_mapping+0x140/0x2f0 block/bdev.c:662 blkdev_put_whole+0xd1/0xf0 block/bdev.c:693 blkdev_put+0x224/0x770 block/bdev.c:953 blkdev_close+0x68/0x80 block/fops.c:492 __fput+0x27c/0xa90 fs/file_table.c:320 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xaa8/0x2950 kernel/exit.c:867 do_group_exit+0xd4/0x2a0 kernel/exit.c:1012 get_signal+0x21c3/0x2450 kernel/signal.c:2859 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/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:0x7fc7afd25697 RSP: 002b:00007ffc1484efc0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000008 RBX: 000055c24f0ff9d0 RCX: 00007fc7afd25697 RDX: 00000000000a0800 RSI: 000055c24f0e0b50 RDI: 00000000ffffff9c RBP: 000055c24f0e0b50 R08: 0000000000000001 R09: 00007ffc14908080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055c24f10fbf0 R14: 0000000000000001 R15: 000055c24f0c42c0 INFO: task syz-executor165:5109 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor165 state:D stack:28488 pid:5109 ppid:5096 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6555 schedule+0xde/0x1b0 kernel/sched/core.c:6631 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6690 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa48/0x1360 kernel/locking/mutex.c:747 blkdev_get_by_dev.part.0+0x9b/0xb80 block/bdev.c:813 blkdev_get_by_dev+0x6f/0x90 block/bdev.c:856 blkdev_open+0x140/0x2c0 block/fops.c:478 do_dentry_open+0x6cc/0x13f0 fs/open.c:882 do_open fs/namei.c:3557 [inline] path_openat+0x1bbc/0x2a50 fs/namei.c:3714 do_filp_open+0x1ba/0x410 fs/namei.c:3741 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f45624f2c34 RSP: 002b:00007f45624e2e70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f45624f2c34 RDX: 0000000000000000 RSI: 00007f45624e2ef0 RDI: 00000000ffffff9c RBP: 00007f45624e2ef0 R08: 0000000000000000 R09: 00007f45624e3700 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007f45625871a4 R14: 64626e2f7665642f R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/11: #0: ffffffff8c78df70 (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/12: #0: ffffffff8c78dc70 (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/27: #0: ffffffff8c78eac0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494 5 locks held by kworker/u4:4/55: 2 locks held by getty/4740: #0: ffff88814b502098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 1 lock held by udevd/5101: #0: ffff888146b5b4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xc0/0x770 block/bdev.c:911 1 lock held by syz-executor165/5109: #0: ffff888146b5b4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb80 block/bdev.c:813 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x333/0x3c0 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+0xc75/0xfc0 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: 55 Comm: kworker/u4:4 Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__sanitizer_cov_trace_pc+0x60/0x70 kernel/kcov.c:225 Code: 82 48 15 00 00 83 f8 02 75 20 48 8b 8a 50 15 00 00 8b 92 4c 15 00 00 48 8b 01 48 83 c0 01 48 39 c2 76 07 48 89 01 48 89 34 c1 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 55 41 54 49 89 RSP: 0018:ffffc9000201f9c0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000012468007 RCX: 0000000000000000 RDX: ffff88801871c040 RSI: ffffffff81ba7db5 RDI: 0000000000000007 RBP: 00002aaaaaaab000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000012468007 R11: 0000000000000000 R12: 0000000012468067 R13: ffffc9000201fa68 R14: ffff888012466aa8 R15: ffff888012462040 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a0ed95a680 CR3: 000000000c48e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pte_index include/linux/pgtable.h:64 [inline] pte_offset_kernel include/linux/pgtable.h:92 [inline] __get_locked_pte+0x75/0x270 mm/memory.c:1805 get_locked_pte include/linux/mm.h:2294 [inline] __text_poke+0x1b3/0x8e0 arch/x86/kernel/alternative.c:1586 text_poke arch/x86/kernel/alternative.c:1671 [inline] text_poke_bp_batch+0x37d/0x6b0 arch/x86/kernel/alternative.c:1976 text_poke_flush arch/x86/kernel/alternative.c:2131 [inline] text_poke_flush arch/x86/kernel/alternative.c:2128 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2138 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/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308