INFO: task udevd:5933 blocked for more than 143 seconds. Not tainted 6.15.0-rc1-syzkaller-00220-g6a325aed130b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:22192 pid:5933 tgid:5933 ppid:1 task_flags:0x400140 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b88/0x5240 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_timeout+0x15b/0x2b0 kernel/time/sleep_timeout.c:99 wait_for_reconnect drivers/block/nbd.c:1104 [inline] nbd_handle_cmd drivers/block/nbd.c:1146 [inline] nbd_queue_rq+0x773/0xf70 drivers/block/nbd.c:1204 blk_mq_dispatch_rq_list+0xad8/0x19d0 block/blk-mq.c:2120 __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+0xb8c/0x1840 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xd6/0x190 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x354/0x500 block/blk-mq.c:2354 blk_mq_dispatch_plug_list include/linux/spinlock.h:-1 [inline] blk_mq_flush_plug_list+0x1190/0x1880 block/blk-mq.c:2917 __blk_flush_plug+0x422/0x500 block/blk-core.c:1220 blk_finish_plug block/blk-core.c:1247 [inline] __submit_bio+0x56d/0x6d0 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x4d5/0xe30 block/blk-core.c:751 submit_bh fs/buffer.c:2801 [inline] block_read_full_folio+0x7c1/0x850 fs/buffer.c:2433 filemap_read_folio+0x14a/0x3b0 mm/filemap.c:2400 do_read_cache_folio+0x373/0x5b0 mm/filemap.c:3884 read_mapping_folio include/linux/pagemap.h:995 [inline] read_part_sector+0xb3/0x260 block/partitions/core.c:722 adfspart_check_ICS+0xcd/0xa20 block/partitions/acorn.c:360 check_partition block/partitions/core.c:141 [inline] blk_add_partitions block/partitions/core.c:589 [inline] bdev_disk_changed+0x783/0x14e0 block/partitions/core.c:693 blkdev_get_whole+0x36c/0x4f0 block/bdev.c:710 bdev_open+0x312/0xcd0 block/bdev.c:919 blkdev_open+0x38e/0x4e0 block/fops.c:652 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2caf/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feed97169a4 RSP: 002b:00007ffd39c9f110 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055c7004c3e80 RCX: 00007feed97169a4 RDX: 00000000000a0800 RSI: 000055c7004bb470 RDI: 00000000ffffff9c RBP: 000055c7004bb470 R08: 0000000000000001 R09: 7fffffffffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055c7004c4320 R14: 0000000000000001 R15: 000055c7004a3910 INFO: task udevd:5934 blocked for more than 144 seconds. Not tainted 6.15.0-rc1-syzkaller-00220-g6a325aed130b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:22864 pid:5934 tgid:5934 ppid:1 task_flags:0x400140 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b88/0x5240 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_timeout+0x15b/0x2b0 kernel/time/sleep_timeout.c:99 wait_for_reconnect drivers/block/nbd.c:1104 [inline] nbd_handle_cmd drivers/block/nbd.c:1146 [inline] nbd_queue_rq+0x773/0xf70 drivers/block/nbd.c:1204 blk_mq_dispatch_rq_list+0xad8/0x19d0 block/blk-mq.c:2120 __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+0xb8c/0x1840 block/blk-mq-sched.c:309 blk_mq_sched_dispatch_requests+0xd6/0x190 block/blk-mq-sched.c:331 blk_mq_run_hw_queue+0x354/0x500 block/blk-mq.c:2354 blk_mq_dispatch_plug_list include/linux/spinlock.h:-1 [inline] blk_mq_flush_plug_list+0x1190/0x1880 block/blk-mq.c:2917 __blk_flush_plug+0x422/0x500 block/blk-core.c:1220 blk_finish_plug block/blk-core.c:1247 [inline] __submit_bio+0x56d/0x6d0 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x4d5/0xe30 block/blk-core.c:751 submit_bh fs/buffer.c:2801 [inline] block_read_full_folio+0x7c1/0x850 fs/buffer.c:2433 filemap_read_folio+0x14a/0x3b0 mm/filemap.c:2400 do_read_cache_folio+0x373/0x5b0 mm/filemap.c:3884 read_mapping_folio include/linux/pagemap.h:995 [inline] read_part_sector+0xb3/0x260 block/partitions/core.c:722 adfspart_check_ICS+0xcd/0xa20 block/partitions/acorn.c:360 check_partition block/partitions/core.c:141 [inline] blk_add_partitions block/partitions/core.c:589 [inline] bdev_disk_changed+0x783/0x14e0 block/partitions/core.c:693 blkdev_get_whole+0x36c/0x4f0 block/bdev.c:710 bdev_open+0x312/0xcd0 block/bdev.c:919 blkdev_open+0x38e/0x4e0 block/fops.c:652 do_dentry_open+0xdec/0x1960 fs/open.c:956 vfs_open+0x3b/0x370 fs/open.c:1086 do_open fs/namei.c:3845 [inline] path_openat+0x2caf/0x35d0 fs/namei.c:4004 do_filp_open+0x284/0x4e0 fs/namei.c:4031 do_sys_openat2+0x12b/0x1d0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x249/0x2a0 fs/open.c:1455 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7feed97169a4 RSP: 002b:00007ffd39c9f110 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055c7004c3e80 RCX: 00007feed97169a4 RDX: 00000000000a0800 RSI: 000055c7004c2df0 RDI: 00000000ffffff9c RBP: 000055c7004c2df0 R08: 0000000000000001 R09: 7fffffffffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055c7004c4320 R14: 0000000000000001 R15: 000055c7004a3910 Showing all locks held in the system: 1 lock held by khungtaskd/31: #0: ffffffff8ed3dfe0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3dfe0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3dfe0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 3 locks held by kworker/u8:3/53: #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90000bf7c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000bf7c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303 2 locks held by kworker/u8:4/63: #0: ffff8880b8639b18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605 #1: ffff8880b8623b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987 3 locks held by kworker/u8:5/1010: #0: ffff88803157c148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88803157c148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90003907c60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003907c60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #2: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x110/0x16a0 net/ipv6/addrconf.c:4195 2 locks held by getty/5593: #0: ffff8880320860a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc9000333b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222 3 locks held by udevd/5888: #0: ffff888026393358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xf7/0xcd0 block/bdev.c:907 #1: ffff8880260bac90 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff8880260bac90 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff8880260bac90 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x32b/0x500 block/blk-mq.c:2354 #2: ffff888026807178 (&cmd->lock){+.+.}-{4:4}, at: nbd_queue_rq+0xc9/0xf70 drivers/block/nbd.c:1196 3 locks held by udevd/5889: #0: ffff88802613b358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xf7/0xcd0 block/bdev.c:907 #1: ffff888025e72290 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888025e72290 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888025e72290 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x32b/0x500 block/blk-mq.c:2354 #2: ffff8880262d0178 (&cmd->lock){+.+.}-{4:4}, at: nbd_queue_rq+0xc9/0xf70 drivers/block/nbd.c:1196 3 locks held by udevd/5933: #0: ffff88802600f358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xf7/0xcd0 block/bdev.c:907 #1: ffff888025e59b90 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888025e59b90 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888025e59b90 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x32b/0x500 block/blk-mq.c:2354 #2: ffff888026180178 (&cmd->lock){+.+.}-{4:4}, at: nbd_queue_rq+0xc9/0xf70 drivers/block/nbd.c:1196 3 locks held by udevd/5934: #0: ffff888025fbb358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xf7/0xcd0 block/bdev.c:907 #1: ffff888025f2eb10 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888025f2eb10 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888025f2eb10 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x32b/0x500 block/blk-mq.c:2354 #2: ffff8880262751f8 (&cmd->lock){+.+.}-{4:4}, at: nbd_queue_rq+0xc9/0xf70 drivers/block/nbd.c:1196 2 locks held by kworker/u8:9/6779: 4 locks held by kworker/u8:12/6788: #0: ffff88801bef6148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801bef6148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000bf9fc60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000bf9fc60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900f0910 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608 #3: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: netdev_wait_allrefs_any net/core/dev.c:11231 [inline] #3: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: netdev_run_todo+0x75c/0xf30 net/core/dev.c:11351 3 locks held by udevd/7444: #0: ffff8880262cb358 (&disk->open_mutex){+.+.}-{4:4}, at: bdev_open+0xf7/0xcd0 block/bdev.c:907 #1: ffff888025e72f10 (set->srcu){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline] #1: ffff888025e72f10 (set->srcu){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline] #1: ffff888025e72f10 (set->srcu){.+.+}-{0:0}, at: blk_mq_run_hw_queue+0x32b/0x500 block/blk-mq.c:2354 #2: ffff8880263d7178 (&cmd->lock){+.+.}-{4:4}, at: nbd_queue_rq+0xc9/0xf70 drivers/block/nbd.c:1196 3 locks held by syz-executor/10998: #0: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline] #0: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline] #0: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4067 #1: ffff88802996cd30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock include/linux/netdevice.h:2756 [inline] #1: ffff88802996cd30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: netdev_lock_ops include/net/netdev_lock.h:42 [inline] #1: ffff88802996cd30 (&dev_instance_lock_key#20){+.+.}-{4:4}, at: do_setlink+0x3c1/0x4390 net/core/rtnetlink.c:3051 #2: ffffffff8ed434f8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline] #2: ffffffff8ed434f8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x384/0x830 kernel/rcu/tree_exp.h:998 7 locks held by syz-executor/11000: #0: ffff888031a04420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888031a04420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff888029327088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1e2/0x510 fs/kernfs/file.c:325 #2: ffff888144f76008 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x206/0x510 fs/kernfs/file.c:326 #3: ffffffff8f996ca8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 #4: ffff88805b37a0e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #4: ffff88805b37a0e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff88805b37a0e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293 #5: ffff88805b379250 (&devlink->lock_key#15){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1675 #6: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline] #6: ffffffff900fd448 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_dev_lock+0x271/0x320 net/core/dev.c:2139 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc1-syzkaller-00220-g6a325aed130b #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x4ab/0x4e0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline] watchdog+0x1058/0x10a0 kernel/hung_task.c:437 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 3010 Comm: kworker/u8:7 Not tainted 6.15.0-rc1-syzkaller-00220-g6a325aed130b #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: bat_events batadv_nc_worker RIP: 0010:rcu_is_watching+0x74/0xb0 kernel/rcu/tree.c:738 Code: 93 49 03 1e 48 89 d8 48 c1 e8 03 42 0f b6 04 38 84 c0 75 22 8b 03 65 ff 0d b9 4a be 11 74 10 83 e0 04 c1 e8 02 5b 41 5e 41 5f cc cc cc cc e8 32 c2 81 ff eb e9 89 d9 80 e1 07 80 c1 03 38 c1 RSP: 0018:ffffc9000bb07a48 EFLAGS: 00000202 RAX: 0000000000000001 RBX: ffffffff93670020 RCX: ffff888031125a00 RDX: 0000000000000000 RSI: ffffffff8ca1b6c0 RDI: ffffffff8ca1b680 RBP: ffffffff8bf60cab R08: ffffffff8bf60dde R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888030314d80 R13: 0000000000000177 R14: ffff88802fb659c0 R15: ffffffff8ed3dfe0 FS: 0000000000000000(0000) GS:ffff888124fb0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffcaed62b38 CR3: 0000000032dc6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x4e/0x3e0 kernel/locking/lockdep.c:5877 rcu_lock_release include/linux/rcupdate.h:341 [inline] rcu_read_unlock include/linux/rcupdate.h:871 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x28b/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 kthread+0x7b7/0x940 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245