INFO: task udevd:5840 blocked for more than 144 seconds. Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24096 pid:5840 tgid:5840 ppid:1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0xe55/0x5740 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6785 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2615 wait_for_reconnect drivers/block/nbd.c:1043 [inline] nbd_handle_cmd drivers/block/nbd.c:1085 [inline] nbd_queue_rq+0xcbc/0x1220 drivers/block/nbd.c:1143 blk_mq_dispatch_rq_list+0x443/0x1dc0 block/blk-mq.c:2030 __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+0xcdf/0x1620 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xd4/0x150 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x451/0x9a0 block/blk-mq.c:2243 blk_mq_dispatch_plug_list block/blk-mq.c:2747 [inline] blk_mq_flush_plug_list+0x5df/0x1be0 block/blk-mq.c:2798 __blk_flush_plug+0x2c5/0x4b0 block/blk-core.c:1199 blk_finish_plug block/blk-core.c:1226 [inline] blk_finish_plug block/blk-core.c:1223 [inline] __submit_bio+0x3fb/0x4d0 block/blk-core.c:623 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x6fb/0xd70 block/blk-core.c:725 submit_bio_noacct+0x9e6/0x1f10 block/blk-core.c:854 submit_bh fs/buffer.c:2824 [inline] block_read_full_folio+0x812/0xa50 fs/buffer.c:2451 filemap_read_folio+0xc6/0x2a0 mm/filemap.c:2367 do_read_cache_folio+0x263/0x5c0 mm/filemap.c:3825 read_mapping_folio include/linux/pagemap.h:1011 [inline] read_part_sector+0xd3/0x410 block/partitions/core.c:714 adfspart_check_ICS+0x94/0x940 block/partitions/acorn.c:360 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:581 [inline] bdev_disk_changed+0x71f/0x1520 block/partitions/core.c:685 blkdev_get_whole+0x187/0x290 block/bdev.c:707 bdev_open+0x2c7/0xe20 block/bdev.c:916 blkdev_open+0x36c/0x450 block/fops.c:631 do_dentry_open+0x6ca/0x1530 fs/open.c:958 vfs_open+0x82/0x3f0 fs/open.c:1088 do_open fs/namei.c:3774 [inline] path_openat+0x1e6a/0x2d60 fs/namei.c:3933 do_filp_open+0x1dc/0x430 fs/namei.c:3960 do_sys_openat2+0x17a/0x1e0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f81b4d169a4 RSP: 002b:00007fff31ac35e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055dac2dd32f0 RCX: 00007f81b4d169a4 RDX: 00000000000a0800 RSI: 000055dac2cb8300 RDI: 00000000ffffff9c RBP: 000055dac2cb8300 R08: 0000000000000001 R09: 00007f81b5135080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055dac2d07260 R14: 0000000000000001 R15: 000055dac2cac2c0 INFO: task udevd:6273 blocked for more than 145 seconds. Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24704 pid:6273 tgid:6273 ppid:1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5328 [inline] __schedule+0xe55/0x5740 kernel/sched/core.c:6693 __schedule_loop kernel/sched/core.c:6770 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6785 schedule_timeout+0x136/0x2a0 kernel/time/timer.c:2615 wait_for_reconnect drivers/block/nbd.c:1043 [inline] nbd_handle_cmd drivers/block/nbd.c:1085 [inline] nbd_queue_rq+0xcbc/0x1220 drivers/block/nbd.c:1143 blk_mq_dispatch_rq_list+0x443/0x1dc0 block/blk-mq.c:2030 __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+0xcdf/0x1620 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xd4/0x150 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x451/0x9a0 block/blk-mq.c:2243 blk_mq_dispatch_plug_list block/blk-mq.c:2747 [inline] blk_mq_flush_plug_list+0x5df/0x1be0 block/blk-mq.c:2798 __blk_flush_plug+0x2c5/0x4b0 block/blk-core.c:1199 blk_finish_plug block/blk-core.c:1226 [inline] blk_finish_plug block/blk-core.c:1223 [inline] __submit_bio+0x3fb/0x4d0 block/blk-core.c:623 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x6fb/0xd70 block/blk-core.c:725 submit_bio_noacct+0x9e6/0x1f10 block/blk-core.c:854 submit_bh fs/buffer.c:2824 [inline] block_read_full_folio+0x812/0xa50 fs/buffer.c:2451 filemap_read_folio+0xc6/0x2a0 mm/filemap.c:2367 do_read_cache_folio+0x263/0x5c0 mm/filemap.c:3825 read_mapping_folio include/linux/pagemap.h:1011 [inline] read_part_sector+0xd3/0x410 block/partitions/core.c:714 adfspart_check_ICS+0x94/0x940 block/partitions/acorn.c:360 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:581 [inline] bdev_disk_changed+0x71f/0x1520 block/partitions/core.c:685 blkdev_get_whole+0x187/0x290 block/bdev.c:707 bdev_open+0x2c7/0xe20 block/bdev.c:916 blkdev_open+0x36c/0x450 block/fops.c:631 do_dentry_open+0x6ca/0x1530 fs/open.c:958 vfs_open+0x82/0x3f0 fs/open.c:1088 do_open fs/namei.c:3774 [inline] path_openat+0x1e6a/0x2d60 fs/namei.c:3933 do_filp_open+0x1dc/0x430 fs/namei.c:3960 do_sys_openat2+0x17a/0x1e0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f81b4d169a4 RSP: 002b:00007fff31ac35e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055dac2cdb220 RCX: 00007f81b4d169a4 RDX: 00000000000a0800 RSI: 000055dac2cd9740 RDI: 00000000ffffff9c RBP: 000055dac2cd9740 R08: 0000000000000001 R09: 00007f81b5135080 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055dac2d07680 R14: 0000000000000001 R15: 000055dac2cac2c0 Showing all locks held in the system: 5 locks held by kworker/0:0/8: #0: ffff888022eedd48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc900000d7d80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff8881457bc190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff8881457bc190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4e10 drivers/usb/core/hub.c:5849 #3: ffff88807f817190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff88807f817190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1005 #4: ffff888145281a78 (&(&priv->bus_notifier)->rwsem){++++}-{3:3}, at: blocking_notifier_call_chain kernel/notifier.c:387 [inline] #4: ffff888145281a78 (&(&priv->bus_notifier)->rwsem){++++}-{3:3}, at: blocking_notifier_call_chain+0x53/0xa0 kernel/notifier.c:376 2 locks held by kworker/u8:1/12: #0: ffff8881456dd148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc90000117d80 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 1 lock held by khungtaskd/30: #0: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e1b8340 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6720 2 locks held by getty/5582: #0: ffff88814d3c90a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900032532f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211 3 locks held by udevd/5833: #0: ffff8880264534c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0x41a/0xe20 block/bdev.c:904 #1: ffff888025c8c110 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888025c8c110 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888025c8c110 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x443/0x9a0 block/blk-mq.c:2243 #2: ffff8880264b0180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xbe/0x1220 drivers/block/nbd.c:1135 3 locks held by udevd/5840: #0: ffff888025e1a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0x41a/0xe20 block/bdev.c:904 #1: ffff888025b5aa90 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888025b5aa90 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888025b5aa90 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x443/0x9a0 block/blk-mq.c:2243 #2: ffff888025f18180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xbe/0x1220 drivers/block/nbd.c:1135 3 locks held by udevd/5847: #0: ffff888025db74c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0x41a/0xe20 block/bdev.c:904 #1: ffff888025c44b90 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888025c44b90 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888025c44b90 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x443/0x9a0 block/blk-mq.c:2243 #2: ffff888025ff0180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xbe/0x1220 drivers/block/nbd.c:1135 3 locks held by udevd/6273: #0: ffff888025e1e4c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0x41a/0xe20 block/bdev.c:904 #1: ffff888025b5af10 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888025b5af10 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888025b5af10 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x443/0x9a0 block/blk-mq.c:2243 #2: ffff888025f88180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xbe/0x1220 drivers/block/nbd.c:1135 3 locks held by udevd/6274: #0: ffff888025fa24c8 (&disk->open_mutex){+.+.}-{3:3}, at: bdev_open+0x41a/0xe20 block/bdev.c:904 #1: ffff888025ca7490 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline] #1: ffff888025ca7490 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline] #1: ffff888025ca7490 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x443/0x9a0 block/blk-mq.c:2243 #2: ffff888026498180 (&cmd->lock){+.+.}-{3:3}, at: nbd_queue_rq+0xbe/0x1220 drivers/block/nbd.c:1135 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 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+0xf0c/0x1240 kernel/hung_task.c:379 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/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: 3592 Comm: kworker/u8:11 Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lock_release+0x10/0x6f0 kernel/locking/lockdep.c:5833 Code: ff ff 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 57 <41> 56 41 55 41 54 49 89 fc 55 53 48 81 ec 90 00 00 00 48 8d 5c 24 RSP: 0018:ffffc9000ce9fb80 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff8ae7b84d RDX: ffff88803323c880 RSI: ffffffff8ae7b547 RDI: ffffffff8e1b8340 RBP: 00000000000003e4 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: 000000000003dbcc R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb90f708ab8 CR3: 00000000306e2000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x88c/0x1060 net/batman-adv/network-coding.c:719 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244