INFO: task syz-executor421:5016 blocked for more than 143 seconds. Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor421 state:D stack:27424 pid:5016 ppid:5012 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5380 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6709 schedule+0xe7/0x1b0 kernel/sched/core.c:6785 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6844 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x967/0x1340 kernel/locking/mutex.c:747 blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786 blkdev_get_by_dev+0x75/0x80 block/bdev.c:829 disk_scan_partitions+0x1e9/0x320 block/genhd.c:369 blkdev_common_ioctl+0x616/0x1ce0 block/ioctl.c:553 blkdev_ioctl+0x249/0x770 block/ioctl.c:622 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa91c4a77b9 RSP: 002b:00007fa91c465228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa91c52f3e8 RCX: 00007fa91c4a77b9 RDX: 0000000000000000 RSI: 000000000000125f RDI: 0000000000000003 RBP: 00007fa91c52f3e0 R08: 00007fa91c4656c0 R09: 00007fa91c4656c0 R10: 00007fa91c4656c0 R11: 0000000000000246 R12: 00007fa91c52f3ec R13: 00007fa91c4fc1a4 R14: 64626e2f7665642f R15: 00007ffe57388968 INFO: task syz-executor421:5017 blocked for more than 143 seconds. Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor421 state:D stack:28640 pid:5017 ppid:5012 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5380 [inline] __schedule+0xee1/0x59f0 kernel/sched/core.c:6709 schedule+0xe7/0x1b0 kernel/sched/core.c:6785 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6844 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x967/0x1340 kernel/locking/mutex.c:747 blkdev_put+0xb0/0x8e0 block/bdev.c:884 blkdev_release+0x82/0xa0 block/fops.c:533 __fput+0x3f7/0xa70 fs/file_table.c:384 task_work_run+0x14d/0x240 kernel/task_work.c:179 ptrace_notify+0x10c/0x130 kernel/signal.c:2376 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:252 [inline] syscall_exit_to_user_mode_prepare+0x120/0x220 kernel/entry/common.c:279 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline] syscall_exit_to_user_mode+0xd/0x60 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa91c4a77b9 RSP: 002b:00007fa91c444228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007fa91c52f3f8 RCX: 00007fa91c4a77b9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000006 RBP: 00007fa91c52f3f0 R08: 00007ffe57388967 R09: 00007fa91c4446c0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa91c52f3fc R13: 00007fa91c4fc1a4 R14: 64626e2f7665642f R15: 00007ffe57388968 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c9a35b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c9a32b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/27: #0: ffffffff8c9a41c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615 1 lock held by klogd/4456: #0: ffff8880b983c418 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558 2 locks held by getty/4764: #0: ffff88814bbb1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900020382f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfcb/0x1480 drivers/tty/n_tty.c:2187 1 lock held by udevd/5013: #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786 1 lock held by syz-executor421/5016: #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786 1 lock held by syz-executor421/5017: #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xb0/0x8e0 block/bdev.c:884 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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+0x2ac/0x310 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+0xf29/0x11b0 kernel/hung_task.c:379 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 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:3 Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:pte_offset_kernel include/linux/pgtable.h:92 [inline] RIP: 0010:__pte_map include/linux/pgtable.h:107 [inline] RIP: 0010:__pte_offset_map+0x16c/0x3c0 mm/pgtable-generic.c:251 Code: ca be bb ff 49 83 fc 43 0f 85 50 01 00 00 e8 2b c3 bb ff 48 c1 eb 09 49 21 ef 48 b8 00 00 00 00 80 88 ff ff 81 e3 f8 0f 00 00 <48> 01 c3 49 01 df e8 09 c3 bb ff 4c 89 f8 48 83 c4 08 5b 5d 41 5c RSP: 0018:ffffc90000d2f8a0 EFLAGS: 00000202 RAX: ffff888000000000 RBX: 0000000000000558 RCX: 0000000000000000 RDX: ffff888014af4140 RSI: ffffffff81c96255 RDI: 0000000000000007 RBP: 0000000012868067 R08: 0000000000000007 R09: 0000000000000043 R10: 0000000000000043 R11: 0000000000000000 R12: 0000000000000043 R13: ffff888012866aa8 R14: 0000000000000000 R15: 0000000012868000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558781a45600 CR3: 000000000c776000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __pte_offset_map_lock+0x8e/0x250 mm/pgtable-generic.c:276 pte_offset_map_lock include/linux/mm.h:2862 [inline] __get_locked_pte+0x75/0xc0 mm/memory.c:1817 get_locked_pte include/linux/mm.h:2642 [inline] __text_poke+0x1be/0x8a0 arch/x86/kernel/alternative.c:1811 text_poke arch/x86/kernel/alternative.c:1896 [inline] text_poke_bp_batch+0x507/0x780 arch/x86/kernel/alternative.c:2285 text_poke_flush arch/x86/kernel/alternative.c:2398 [inline] text_poke_flush arch/x86/kernel/alternative.c:2395 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2405 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32e/0x410 kernel/jump_label.c:829 static_key_disable_cpuslocked+0x154/0x1b0 kernel/jump_label.c:235 static_key_disable+0x1a/0x20 kernel/jump_label.c:243 toggle_allocation_gate mm/kfence/core.c:836 [inline] toggle_allocation_gate+0x13f/0x250 mm/kfence/core.c:823 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600 worker_thread+0x687/0x1110 kernel/workqueue.c:2751 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.308 msecs