INFO: task udevd:5776 blocked for more than 143 seconds. Not tainted 6.11.0-rc4-syzkaller-00138-g8af174ea863c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:22776 pid:5776 tgid:5776 ppid:1 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 wait_for_reconnect drivers/block/nbd.c:1023 [inline] nbd_handle_cmd drivers/block/nbd.c:1065 [inline] nbd_queue_rq+0x7cd/0x2f70 drivers/block/nbd.c:1123 blk_mq_dispatch_rq_list+0xb89/0x1b30 block/blk-mq.c:2032 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:170 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:184 [inline] __blk_mq_sched_dispatch_requests+0xb8a/0x1840 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xcb/0x140 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x576/0xae0 block/blk-mq.c:2245 blk_mq_flush_plug_list+0x1115/0x1880 block/blk-mq.c:2794 __blk_flush_plug+0x420/0x500 block/blk-core.c:1198 blk_finish_plug block/blk-core.c:1225 [inline] __submit_bio+0x422/0x560 block/blk-core.c:623 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x4d3/0xe30 block/blk-core.c:725 submit_bh fs/buffer.c:2829 [inline] block_read_full_folio+0x93b/0xcd0 fs/buffer.c:2456 filemap_read_folio+0x1a0/0x790 mm/filemap.c:2355 do_read_cache_folio+0x134/0x820 mm/filemap.c:3789 read_mapping_folio include/linux/pagemap.h:913 [inline] read_part_sector+0xb3/0x330 block/partitions/core.c:712 adfspart_check_ICS+0xd9/0x9a0 block/partitions/acorn.c:360 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:579 [inline] bdev_disk_changed+0x72c/0x13d0 block/partitions/core.c:683 blkdev_get_whole+0x2d2/0x450 block/bdev.c:700 bdev_open+0x2d4/0xc60 block/bdev.c:909 blkdev_open+0x3e8/0x570 block/fops.c:630 do_dentry_open+0x970/0x1440 fs/open.c:959 vfs_open+0x3e/0x330 fs/open.c:1089 do_open fs/namei.c:3727 [inline] path_openat+0x2b3e/0x3470 fs/namei.c:3886 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f61df7169a4 RSP: 002b:00007ffc139692a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055ace94e9580 RCX: 00007f61df7169a4 RDX: 00000000000a0800 RSI: 000055ace94eda90 RDI: 00000000ffffff9c RBP: 000055ace94eda90 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055ace94dca70 R14: 0000000000000002 R15: 000055ace94cb910 INFO: task udevd:6005 blocked for more than 144 seconds. Not tainted 6.11.0-rc4-syzkaller-00138-g8af174ea863c #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:21656 pid:6005 tgid:6005 ppid:1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 wait_for_reconnect drivers/block/nbd.c:1023 [inline] nbd_handle_cmd drivers/block/nbd.c:1065 [inline] nbd_queue_rq+0x7cd/0x2f70 drivers/block/nbd.c:1123 blk_mq_dispatch_rq_list+0xb89/0x1b30 block/blk-mq.c:2032 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:170 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:184 [inline] __blk_mq_sched_dispatch_requests+0xb8a/0x1840 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xcb/0x140 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x576/0xae0 block/blk-mq.c:2245 blk_mq_flush_plug_list+0x1115/0x1880 block/blk-mq.c:2794 __blk_flush_plug+0x420/0x500 block/blk-core.c:1198 blk_finish_plug block/blk-core.c:1225 [inline] __submit_bio+0x422/0x560 block/blk-core.c:623 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x4d3/0xe30 block/blk-core.c:725 submit_bh fs/buffer.c:2829 [inline] block_read_full_folio+0x93b/0xcd0 fs/buffer.c:2456 filemap_read_folio+0x1a0/0x790 mm/filemap.c:2355 do_read_cache_folio+0x134/0x820 mm/filemap.c:3789 read_mapping_folio include/linux/pagemap.h:913 [inline] read_part_sector+0xb3/0x330 block/partitions/core.c:712 adfspart_check_ICS+0xd9/0x9a0 block/partitions/acorn.c:360 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:579 [inline] bdev_disk_changed+0x72c/0x13d0 block/partitions/core.c:683 blkdev_get_whole+0x2d2/0x450 block/bdev.c:700 bdev_open+0x2d4/0xc60 block/bdev.c:909 blkdev_open+0x3e8/0x570 block/fops.c:630 do_dentry_open+0x970/0x1440 fs/open.c:959 vfs_open+0x3e/0x330 fs/open.c:1089 do_open fs/namei.c:3727 [inline] path_openat+0x2b3e/0x3470 fs/namei.c:3886 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f61df7169a4 RSP: 002b:00007ffc139692a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055ace94ece10 RCX: 00007f61df7169a4 RDX: 00000000000a0800 RSI: 000055ace94e47d0 RDI: 00000000ffffff9c RBP: 000055ace94e47d0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055ace94dd6f0 R14: 0000000000000002 R15: 000055ace94cb910 Showing all locks held in the system: 1 lock held by ksoftirqd/0/16: #0: ffff8880b923e9d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:560 1 lock held by khungtaskd/30: #0: ffffffff8e938320 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:326 [inline] #0: ffffffff8e938320 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:838 [inline] #0: ffffffff8e938320 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6626 2 locks held by getty/4984: #0: ffff88802b2170a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900034c32f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ac/0x1e00 drivers/tty/n_tty.c:2211 3 locks held by udevd/5236: #0: ffff8880210f14c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0xf0/0xc60 block/bdev.c:897 #1: ffff888020ff1f90 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888020ff1f90 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888020ff1f90 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x54d/0xae0 block/blk-mq.c:2245 #2: ffff8880212a0180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xfc/0x2f70 drivers/block/nbd.c:1115 3 locks held by udevd/5776: #0: ffff888020f694c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0xf0/0xc60 block/bdev.c:897 #1: ffff888020dd1f10 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888020dd1f10 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888020dd1f10 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x54d/0xae0 block/blk-mq.c:2245 #2: ffff888021080180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xfc/0x2f70 drivers/block/nbd.c:1115 3 locks held by udevd/6005: #0: ffff888020f6d4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0xf0/0xc60 block/bdev.c:897 #1: ffff888020ff1590 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888020ff1590 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888020ff1590 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x54d/0xae0 block/blk-mq.c:2245 #2: ffff888021128180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xfc/0x2f70 drivers/block/nbd.c:1115 3 locks held by udevd/6469: #0: ffff888020fae4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0xf0/0xc60 block/bdev.c:897 #1: ffff888020f2ea10 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888020f2ea10 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888020f2ea10 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x54d/0xae0 block/blk-mq.c:2245 #2: ffff888021240180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xfc/0x2f70 drivers/block/nbd.c:1115 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-rc4-syzkaller-00138-g8af174ea863c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xff4/0x1040 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.11.0-rc4-syzkaller-00138-g8af174ea863c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x70 kernel/kcov.c:209 Code: 89 fb e8 23 00 00 00 48 8b 3d cc f7 95 0c 48 89 de 5b e9 63 94 5b 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 00 d7 03 00 65 8b 15 b0 4b RSP: 0018:ffffc90000a18d58 EFLAGS: 00000002 RAX: 1ffff11017265901 RBX: 0000000000000001 RCX: dffffc0000000000 RDX: 0000000000010000 RSI: ffff8880b932c950 RDI: ffffc90003eb7d68 RBP: ffffc90000a18ea8 R08: ffffffff8bafdbf8 R09: 1ffffffff202fe65 R10: dffffc0000000000 R11: fffffbfff202fe66 R12: 1ffff1101726592b R13: dffffc0000000000 R14: ffffc90003eb7d60 R15: ffff8880b932c880 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f99e52e8178 CR3: 000000000e734000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __remove_hrtimer kernel/time/hrtimer.c:1118 [inline] __run_hrtimer kernel/time/hrtimer.c:1669 [inline] __hrtimer_run_queues+0x3d9/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:inat_immediate_size arch/x86/include/asm/inat.h:198 [inline] RIP: 0010:insn_get_immediate+0xdd/0x11f0 arch/x86/lib/insn.c:664 Code: df f5 89 e8 25 00 00 04 00 75 7a 89 ee 81 e6 00 70 00 00 31 ff e8 c3 fd df f5 89 e8 25 00 70 00 00 0f 84 6a 02 00 00 c1 ed 0c <83> e5 07 48 89 ef 48 c7 c6 60 37 ff 8f e8 e1 fe df f5 83 fd 03 0f RSP: 0018:ffffc90000117818 EFLAGS: 00000202 RAX: 0000000000006000 RBX: 1ffff92000022f2d RCX: ffff888017ad5a00 RDX: ffff888017ad5a00 RSI: 0000000000006000 RDI: 0000000000000000 RBP: 0000000000000016 R08: ffffffff8bb391bd R09: ffffffff8bb35c36 R10: 0000000000000002 R11: ffff888017ad5a00 R12: ffffc90000117920 R13: dffffc0000000000 R14: 1ffff92000022f2b R15: ffffc9000011795c insn_get_length arch/x86/lib/insn.c:723 [inline] insn_decode+0x2d6/0x4c0 arch/x86/lib/insn.c:762 arch_jump_entry_size arch/x86/kernel/jump_label.c:24 [inline] __jump_label_patch+0xe8/0x490 arch/x86/kernel/jump_label.c:45 arch_jump_label_transform_queue+0x68/0x100 arch/x86/kernel/jump_label.c:137 __jump_label_update+0x177/0x3a0 kernel/jump_label.c:493 static_key_disable_cpuslocked+0xd2/0x1c0 kernel/jump_label.c:240 static_key_disable+0x1a/0x20 kernel/jump_label.c:248 toggle_allocation_gate+0x1b8/0x250 mm/kfence/core.c:838 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244