INFO: task udevd:5854 blocked for more than 143 seconds. Not tainted 6.6.0-rc4-syzkaller-00176-gb78b18fb8ee1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:24776 pid:5854 ppid:4489 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6a3/0xd60 kernel/locking/mutex.c:747 blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 blkdev_open+0x14c/0x330 block/fops.c:589 do_dentry_open+0x80f/0x1430 fs/open.c:929 do_open fs/namei.c:3639 [inline] path_openat+0x27bb/0x3180 fs/namei.c:3796 do_filp_open+0x234/0x490 fs/namei.c:3823 do_sys_openat2+0x13e/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x247/0x290 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f935eb169a4 RSP: 002b:00007ffc196783d0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055a74bed64c0 RCX: 00007f935eb169a4 RDX: 00000000000a0800 RSI: 000055a74bec8fc0 RDI: 00000000ffffff9c RBP: 000055a74bec8fc0 R08: 0000000000000001 R09: 00007ffc1970b0b0 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000a0800 R13: 000055a74bebd250 R14: 0000000000000001 R15: 000055a74beaa910 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 2 locks held by kworker/u4:6/987: #0: ffff8880b983c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x3a7/0x770 kernel/sched/psi.c:987 2 locks held by getty/4793: #0: ffff88802aac20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 1 lock held by udevd/5854: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 1 lock held by syz-executor.0/6053: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xff/0x770 block/bdev.c:884 1 lock held by syz-executor.0/6056: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 1 lock held by syz-executor.0/6210: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 1 lock held by syz-executor.0/6211: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 1 lock held by syz-executor.0/6269: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 1 lock held by syz-executor.0/6270: #0: ffff88801da8a4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x137/0x620 block/bdev.c:786 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc4-syzkaller-00176-gb78b18fb8ee1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/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+0xfa9/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 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: 2812 Comm: kworker/u4:9 Not tainted 6.6.0-rc4-syzkaller-00176-gb78b18fb8ee1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:127 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline] RIP: 0010:kasan_check_range+0x86/0x290 mm/kasan/generic.c:187 Code: 00 fc ff df 4f 8d 3c 31 4c 89 fd 4c 29 dd 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c 89 cd 48 f7 d5 48 01 dd 41 80 3b 00 <0f> 85 c5 01 00 00 49 ff c3 48 ff c5 75 ee e9 1e 01 00 00 45 89 dc RSP: 0018:ffffc9000b6af650 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffffffff20df88b RCX: ffffffff816cff5b RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff906fc458 RBP: ffffffffffffffff R08: ffffffff906fc45f R09: 1ffffffff20df88b R10: dffffc0000000000 R11: fffffbfff20df88b R12: ffff88802715a880 R13: 0000000000000001 R14: dffffc0000000001 R15: fffffbfff20df88c FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c764254600 CR3: 000000000d130000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] check_wait_context kernel/locking/lockdep.c:4797 [inline] __lock_acquire+0x8ab/0x7f70 kernel/locking/lockdep.c:5086 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xe8/0x3a0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x328/0x610 net/batman-adv/network-coding.c:720 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304