INFO: task kworker/u4:5:1056 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:5 state:D stack:21624 pid:1056 ppid:2 flags:0x00004000 Workqueue: events_unbound fsnotify_mark_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_timeout+0xac/0x300 kernel/time/timer.c:2143 do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x46/0x60 kernel/sched/completion.c:138 __synchronize_srcu+0x2aa/0x350 kernel/rcu/srcutree.c:1283 fsnotify_mark_destroy_workfn+0x142/0x340 fs/notify/mark.c:898 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/u4:7:5192 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:7 state:D stack:25472 pid:5192 ppid:2 flags:0x00004000 Workqueue: events_unbound fsnotify_connector_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_timeout+0xac/0x300 kernel/time/timer.c:2143 do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x46/0x60 kernel/sched/completion.c:138 __synchronize_srcu+0x2aa/0x350 kernel/rcu/srcutree.c:1283 fsnotify_connector_destroy_workfn+0x40/0xa0 fs/notify/mark.c:208 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Showing all locks held in the system: 6 locks held by kworker/0:0/7: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d523910 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d524110 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d523740 (rcu_read_lock){....}-{1:2} , at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:5/1056: #0: ffff888012879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc90005bcfd00 ( (reaper_work).work ){+.+.}-{0:0} , at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 2 locks held by getty/4740: #0: ffff88802c6bb098 ( &tty->ldisc_sem ){++++}-{0:0} , at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 3 locks held by udevd/5135: #0: ffff88801ee89488 (&of->mutex){+.+.}-{3:3} , at: kernfs_file_read_iter fs/kernfs/file.c:240 [inline] , at: kernfs_fop_read_iter+0x19b/0x610 fs/kernfs/file.c:280 #1: ffff8880728352c0 ( kn->active #27 ){.+.+}-{0:0} , at: kernfs_file_read_iter fs/kernfs/file.c:241 [inline] , at: kernfs_fop_read_iter+0x1b8/0x610 fs/kernfs/file.c:280 #2: ffff88802ac7a190 ( &dev->mutex ){....}-{3:3} , at: device_lock_interruptible include/linux/device.h:836 [inline] , at: read_descriptors+0x30/0x390 drivers/usb/core/sysfs.c:874 3 locks held by udevd/5139: #0: ffff888022771c88 ( &of->mutex ){+.+.}-{3:3} , at: kernfs_file_read_iter fs/kernfs/file.c:240 [inline] , at: kernfs_fop_read_iter+0x19b/0x610 fs/kernfs/file.c:280 #1: ffff88802729fa00 (kn->active#27){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:241 [inline] #1: ffff88802729fa00 (kn->active#27){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1b8/0x610 fs/kernfs/file.c:280 #2: ffff88802c2ca190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:836 [inline] #2: ffff88802c2ca190 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x30/0x390 drivers/usb/core/sysfs.c:874 3 locks held by udevd/5170: #0: ffff888022225488 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:240 [inline] #0: ffff888022225488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x19b/0x610 fs/kernfs/file.c:280 #1: ffff88807e51f0f0 (kn->active#27){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:241 [inline] (kn->active#27){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1b8/0x610 fs/kernfs/file.c:280 #2: ffff88814a3b5190 ( &dev->mutex ){....}-{3:3} , at: device_lock_interruptible include/linux/device.h:836 [inline] , at: read_descriptors+0x30/0x390 drivers/usb/core/sysfs.c:874 2 locks held by kworker/u4:7/5192: #0: ffff888012879138 ( (wq_completion)events_unbound ){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc900046efd00 ( connector_reaper_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 4 locks held by kworker/1:4/5217: #0: ffff888012bc9538 ( (wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000482fd00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff888022ebf190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:831 [inline] , at: hub_event+0x1bb/0xd80 drivers/usb/core/hub.c:5737 #3: ffff88806f978190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:831 [inline] , at: __device_attach+0x8a/0x5a0 drivers/base/dd.c:983 5 locks held by kworker/1:6/5219: #0: ffff888012bc9538 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000484fd00 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff88814715f190 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:831 [inline] , at: hub_event+0x1bb/0xd80 drivers/usb/core/hub.c:5737 #3: ffff88806f411190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline] ffff88806f411190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x5a0 drivers/base/dd.c:983 #4: ffff88806f417118 ( &dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:831 [inline] , at: __device_attach+0x8a/0x5a0 drivers/base/dd.c:983 10 locks held by kworker/0:6/5223: 10 locks held by kworker/0:7/5229: 3 locks held by udevd/5284: #0: ffff88806f439888 ( &of->mutex ){+.+.}-{3:3} , at: kernfs_file_read_iter fs/kernfs/file.c:240 [inline] , at: kernfs_fop_read_iter+0x19b/0x610 fs/kernfs/file.c:280 #1: ffff88807063c2c0 ( kn->active #27 ){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:241 [inline] ){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1b8/0x610 fs/kernfs/file.c:280 #2: ffff88806f978190 ( &dev->mutex ){....}-{3:3} , at: device_lock_interruptible include/linux/device.h:836 [inline] , at: read_descriptors+0x30/0x390 drivers/usb/core/sysfs.c:874 3 locks held by udevd/5435: #0: ffff888070738088 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:240 [inline] #0: ffff888070738088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x19b/0x610 fs/kernfs/file.c:280 #1: ffff8880b9927748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x682/0xa30 kernel/sched/psi.c:976 #2: ffff88807d7fb158 (&ep->lock){....}-{2:2}, at: ep_poll_callback+0xcd/0xac0 fs/eventpoll.c:1145 2 locks held by dhcpcd/5729: #0: ffff88807c952130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #0: ffff88807c952130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 #1: ffffffff8d528d78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8d528d78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a6/0x890 kernel/rcu/tree_exp.h:946 2 locks held by dhcpcd/5732: #0: ffff88806fdca130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #0: ffff88806fdca130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 #1: ffffffff8d528d78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #1: ffffffff8d528d78 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46f/0x890 kernel/rcu/tree_exp.h:946 1 lock held by dhcpcd/5733: #0: ffff88806f392130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #0: ffff88806f392130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 1 lock held by dhcpcd/5736: #0: ffff8880210dc130 ( sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 1 lock held by dhcpcd/5745: #0: ffff88807b24e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #0: ffff88807b24e130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 1 lock held by dhcpcd/5750: #0: ffff88806e48c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1725 [inline] #0: ffff88806e48c130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5187 Comm: kworker/u4:3 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:kasan_check_range+0x203/0x2e0 mm/kasan/generic.c:189 Code: 89 cf 49 8d 6e 07 4d 85 f6 49 0f 49 ee 48 83 e5 f8 49 29 ee 74 0f 90 41 80 3f 00 75 78 49 ff c7 49 ff ce 75 f2 5b 41 5e 41 5f <5d> c3 45 84 db 75 67 41 f7 c3 00 ff 00 00 0f 85 a2 00 00 00 41 f7 RSP: 0018:ffffc9000469fab8 EFLAGS: 00000256 RAX: 1ffff11002f0f101 RBX: dffffc0000000000 RCX: ffffffff816e0f83 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff888017878ec0 RBP: 000000000001ffff R08: dffffc0000000000 R09: ffffed1002f0f1d9 R10: ffffed1002f0f1d9 R11: 1ffff11002f0f1d8 R12: 0000000000000000 R13: dffffc0000000000 R14: ffffffff8a96961f R15: ffff888017878ec0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f390fe64110 CR3: 000000001f34f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:72 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] queued_spin_is_locked include/asm-generic/qspinlock.h:57 [inline] debug_spin_unlock kernel/locking/spinlock_debug.c:100 [inline] do_raw_spin_unlock+0x53/0x8a0 kernel/locking/spinlock_debug.c:140 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:166 [inline] _raw_spin_unlock_bh+0x1f/0x30 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x35f/0x3f0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x31e/0x5b0 net/batman-adv/network-coding.c:722 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308