INFO: task kworker/u4:4:56 blocked for more than 143 seconds. Not tainted 6.1.0-rc4-next-20221111-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:4 state:D stack:27400 pid:56 ppid:2 flags:0x00004000 Workqueue: events_unbound fsnotify_connector_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5211 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6523 schedule+0xda/0x1b0 kernel/sched/core.c:6599 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x1ca/0x5c0 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1283 fsnotify_connector_destroy_workfn+0x49/0xa0 fs/notify/mark.c:208 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/u4:5:5425 blocked for more than 144 seconds. Not tainted 6.1.0-rc4-next-20221111-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:5 state:D stack:26496 pid:5425 ppid:2 flags:0x00004000 Workqueue: events_unbound fsnotify_mark_destroy_workfn Call Trace: context_switch kernel/sched/core.c:5211 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6523 schedule+0xda/0x1b0 kernel/sched/core.c:6599 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x1ca/0x5c0 kernel/sched/completion.c:106 __synchronize_srcu+0x1f2/0x290 kernel/rcu/srcutree.c:1283 fsnotify_mark_destroy_workfn+0xfd/0x3c0 fs/notify/mark.c:898 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bf881f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bf87ef0 ( rcu_tasks_trace.tasks_gp_mutex ){+.+.}-{3:3} , at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 6 locks held by kworker/1:0/22: 1 lock held by khungtaskd/28: #0: ffffffff8bf88d40 ( rcu_read_lock ){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6494 2 locks held by kworker/u4:4/56: #0: ffff888011879138 ( (wq_completion)events_unbound ){+.+.}-{0:0} , at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] , at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] , at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] , at: set_work_data kernel/workqueue.c:636 [inline] , at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] , at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc90001577da8 (connector_reaper_work ){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 2 locks held by getty/4920: #0: ffff88802669c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177 6 locks held by kworker/1:2/5330: 3 locks held by udevd/5331: #0: ffff888027f63888 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:236 [inline] #0: ffff888027f63888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x189/0x7a0 fs/kernfs/file.c:276 #1: ffff88807ea50490 (kn->active#24){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:237 [inline] #1: ffff88807ea50490 (kn->active#24){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1ac/0x7a0 fs/kernfs/file.c:276 #2: ffff8880798e6190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:856 [inline] #2: ffff8880798e6190 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:874 3 locks held by udevd/5336: #0: ffff888016f72088 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:236 [inline] #0: ffff888016f72088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x189/0x7a0 fs/kernfs/file.c:276 #1: ffff888027373cb8 ( kn->active#24){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:237 [inline] kn->active#24){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1ac/0x7a0 fs/kernfs/file.c:276 #2: ffff88801d022190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:856 [inline] #2: ffff88801d022190 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:874 9 locks held by kworker/0:0/5344: 3 locks held by udevd/5364: #0: ffff8880224a5088 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:236 [inline] ffff8880224a5088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x189/0x7a0 fs/kernfs/file.c:276 #1: ffff88807e233490 (kn->active#24){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:237 [inline] #1: ffff88807e233490 (kn->active#24){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1ac/0x7a0 fs/kernfs/file.c:276 #2: ffff88802655e190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:856 [inline] #2: ffff88802655e190 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:874 6 locks held by kworker/1:3/5399: 2 locks held by kworker/u4:5/5425: #0: ffff888011879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ((wq_completion)events_unbound){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] ((wq_completion)events_unbound){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] ((wq_completion)events_unbound){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x86d/0x1710 kernel/workqueue.c:2260 #1: ffffc9000497fda8 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work+0x8a1/0x1710 kernel/workqueue.c:2264 6 locks held by kworker/1:6/5437: 3 locks held by udevd/5451: #0: ffff88802aea8c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:236 [inline] (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x189/0x7a0 fs/kernfs/file.c:276 #1: ffff88802a7fa578 (kn->active#24){.+.+}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:237 [inline] ffff88802a7fa578 (kn->active#24){.+.+}-{0:0}, at: kernfs_fop_read_iter+0x1ac/0x7a0 fs/kernfs/file.c:276 #2: ffff888075b04190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:856 [inline] #2: ffff888075b04190 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:874 3 locks held by udevd/5462: #0: ffff88806f3fc888 ( &of->mutex ){+.+.}-{3:3} , at: kernfs_file_read_iter fs/kernfs/file.c:236 [inline] , at: kernfs_fop_read_iter+0x189/0x7a0 fs/kernfs/file.c:276 #1: ffff888070d62ae8 ( kn->active #24 ){.+.+}-{0:0} , at: kernfs_file_read_iter fs/kernfs/file.c:237 [inline] , at: kernfs_fop_read_iter+0x1ac/0x7a0 fs/kernfs/file.c:276 #2: ffff888076751190 ( &dev->mutex ){....}-{3:3} , at: device_lock_interruptible include/linux/device.h:856 [inline] , at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:874 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc4-next-20221111-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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x32f/0x3c0 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+0xc71/0xfc0 kernel/hung_task.c:377 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5399 Comm: kworker/1:3 Not tainted 6.1.0-rc4-next-20221111-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: usb_hub_wq hub_event RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:59 [inline] RIP: 0010:unwind_next_frame+0x149f/0x1cc0 arch/x86/kernel/unwind_orc.c:641 Code: 00 0f 85 f2 06 00 00 49 8d 7d 10 49 8b 6d 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c5 06 00 00 <48> 39 dd 49 8b 45 10 0f 87 f3 fa ff ff 48 39 d8 0f 86 ea fa ff ff RSP: 0018:ffffc900001e07e0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffc9000491f6f0 RCX: 0000000000000001 RDX: 1ffff9200003c10c RSI: ffffc9000491f6c0 RDI: ffffc900001e0860 RBP: ffffc90004918000 R08: ffffffff8ea40610 R09: ffffc900001e0884 R10: fffff5200003c115 R11: ffffc9000491f6e8 R12: ffffc900001e0885 R13: ffffc900001e0850 R14: ffffc9000491f6c0 R15: ffffffff8ea40614 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff7d0c0fa8 CR3: 000000001f65a000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 kasan_set_track+0x21/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2a/0x40 mm/kasan/generic.c:511 ____kasan_slab_free mm/kasan/common.c:241 [inline] ____kasan_slab_free+0x160/0x1c0 mm/kasan/common.c:205 kasan_slab_free include/linux/kasan.h:178 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1750 slab_free mm/slub.c:3653 [inline] kmem_cache_free+0xea/0x5b0 mm/slub.c:3675 kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:820 __kfree_skb net/core/skbuff.c:877 [inline] consume_skb net/core/skbuff.c:1044 [inline] consume_skb+0xd4/0x160 net/core/skbuff.c:1038 mac80211_hwsim_tx_frame+0x1f6/0x2a0 drivers/net/wireless/mac80211_hwsim.c:2054 mac80211_hwsim_beacon_tx+0x55c/0xab0 drivers/net/wireless/mac80211_hwsim.c:2116 __iterate_interfaces+0x2c8/0x550 net/mac80211/util.c:799 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:835 mac80211_hwsim_beacon+0xfd/0x1f0 drivers/net/wireless/mac80211_hwsim.c:2142 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x690/0xfb0 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x1f7/0xad8 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:207 Code: 48 89 ef 5d e9 a1 3c 34 00 5d be 03 00 00 00 e9 66 c2 89 02 66 0f 1f 44 00 00 48 8b be a8 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 <65> 8b 05 51 cc 86 7e 89 c1 48 8b 34 24 81 e1 00 01 00 00 65 48 8b RSP: 0018:ffffc9000491e798 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888028df8000 RSI: ffffffff81623fe1 RDI: 0000000000000007 RBP: ffffc9000491e7d8 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000036 R13: ffff888016a18000 R14: 0000000000000200 R15: ffffc9000491e8f8 console_trylock_spinning kernel/printk/printk.c:1919 [inline] vprintk_emit+0x3f7/0x5f0 kernel/printk/printk.c:2267 dev_vprintk_emit+0x36e/0x3b2 drivers/base/core.c:4736 dev_printk_emit+0xba/0xf1 drivers/base/core.c:4747 __dev_printk+0xcf/0xf5 drivers/base/core.c:4759 _dev_warn+0xd7/0x109 drivers/base/core.c:4803 hid_parser_main.cold+0xa2/0xf1 drivers/hid/hid-core.c:633 hid_open_report+0x37f/0x650 drivers/hid/hid-core.c:1265 hid_parse include/linux/hid.h:1094 [inline] hidled_probe+0x9d/0x700 drivers/hid/hid-led.c:462 hid_device_probe+0x296/0x3c0 drivers/hid/hid-core.c:2600 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d0/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xbd5/0x1e90 drivers/base/core.c:3517 hid_add_device+0x373/0xa10 drivers/hid/hid-core.c:2752 usbhid_probe+0xbaa/0x1020 drivers/hid/usbhid/hid-core.c:1424 usb_probe_interface+0x30b/0x7f0 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d0/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xbd5/0x1e90 drivers/base/core.c:3517 usb_set_configuration+0x1019/0x1900 drivers/usb/core/message.c:2170 usb_generic_driver_probe+0xba/0x100 drivers/usb/core/generic.c:238 usb_probe_device+0xd4/0x2c0 drivers/usb/core/driver.c:293 call_driver_probe drivers/base/dd.c:560 [inline] really_probe+0x249/0xb90 drivers/base/dd.c:639 __driver_probe_device+0x1df/0x4d0 drivers/base/dd.c:778 driver_probe_device+0x4c/0x1a0 drivers/base/dd.c:808 __device_attach_driver+0x1d0/0x2e0 drivers/base/dd.c:936 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:427 __device_attach+0x1e4/0x530 drivers/base/dd.c:1008 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:487 device_add+0xbd5/0x1e90 drivers/base/core.c:3517 usb_new_device.cold+0x685/0x10ad drivers/usb/core/hub.c:2573 hub_port_connect drivers/usb/core/hub.c:5405 [inline] hub_port_connect_change drivers/usb/core/hub.c:5549 [inline] port_event drivers/usb/core/hub.c:5709 [inline] hub_event+0x2d58/0x4810 drivers/usb/core/hub.c:5791 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308