INFO: task kworker/1:0:24 blocked for more than 143 seconds. Not tainted 6.13.0-rc4-syzkaller-00088-g36a889968e69 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:0 state:D stack:21088 pid:24 tgid:24 ppid:2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x102c/0x34b0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 rwsem_down_write_slowpath+0x539/0x12a0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write+0x1d8/0x200 kernel/locking/rwsem.c:1578 kernfs_activate fs/kernfs/dir.c:1403 [inline] kernfs_add_one+0x39d/0x520 fs/kernfs/dir.c:819 kernfs_create_link+0x1a9/0x240 fs/kernfs/symlink.c:48 sysfs_do_create_link_sd+0x90/0x140 fs/sysfs/symlink.c:44 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x61/0xc0 fs/sysfs/symlink.c:92 usb_new_device+0xf4d/0x1a10 drivers/usb/core/hub.c:2663 hub_port_connect drivers/usb/core/hub.c:5521 [inline] hub_port_connect_change drivers/usb/core/hub.c:5661 [inline] port_event drivers/usb/core/hub.c:5821 [inline] hub_event+0x2e58/0x4f40 drivers/usb/core/hub.c:5903 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 Showing all locks held in the system: 4 locks held by kworker/0:0/8: #0: ffff888105efad48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000008fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff88810af8e190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff88810af8e190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_find_and_get_ns+0x71/0xc0 fs/kernfs/dir.c:918 4 locks held by kworker/1:0/24: #0: ffff888105efad48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000019fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff88810b316190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff88810b316190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_activate fs/kernfs/dir.c:1403 [inline] #3: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_add_one+0x39d/0x520 fs/kernfs/dir.c:819 1 lock held by khungtaskd/30: #0: ffffffff88ebc880 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff88ebc880 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff88ebc880 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6744 5 locks held by kworker/1:2/2793: #0: ffff888105efad48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000481fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff888109386190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff888109386190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff888106af8a78 (&(&priv->bus_notifier)->rwsem){++++}-{4:4}, at: blocking_notifier_call_chain kernel/notifier.c:379 [inline] #3: ffff888106af8a78 (&(&priv->bus_notifier)->rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x53/0xa0 kernel/notifier.c:368 #4: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_add_one+0xb1/0x520 fs/kernfs/dir.c:778 2 locks held by getty/2903: #0: ffff888114c990a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900000432f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/2946: #0: ffffffff88ec81b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x1a4/0x3b0 kernel/rcu/tree_exp.h:329 1 lock held by syz-executor/2950: #0: ffffffff88ec81b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x282/0x3b0 kernel/rcu/tree_exp.h:297 1 lock held by syz-executor/2954: 1 lock held by udevd/5218: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by udevd/5219: 6 locks held by kworker/0:3/5225: 1 lock held by udevd/5233: 5 locks held by kworker/1:4/5291: #0: ffff888105efad48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000239fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff88810b326190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #2: ffff88810b326190 (&dev->mutex){....}-{4:4}, at: hub_event+0x1be/0x4f40 drivers/usb/core/hub.c:5849 #3: ffff88810d38f190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff88810d38f190 (&dev->mutex){....}-{4:4}, at: usb_disconnect+0x10a/0x920 drivers/usb/core/hub.c:2295 #4: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x87/0x130 fs/kernfs/dir.c:1689 1 lock held by udevd/5332: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by udevd/9559: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by syz.3.1454/10012: 1 lock held by syz-executor/10014: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 3 locks held by syz-executor/10015: 1 lock held by syz-executor/10016: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by syz-executor/10017: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by syz-executor/10018: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 1 lock held by modprobe/10020: #0: ffff888100abc148 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_dop_revalidate+0xf0/0x5a0 fs/kernfs/dir.c:1159 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc4-syzkaller-00088-g36a889968e69 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:234 [inline] watchdog+0xf14/0x1240 kernel/hung_task.c:397 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: 2950 Comm: syz-executor Not tainted 6.13.0-rc4-syzkaller-00088-g36a889968e69 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__nr_to_section include/linux/mmzone.h:1880 [inline] RIP: 0010:__pfn_to_section include/linux/mmzone.h:1994 [inline] RIP: 0010:get_pageblock_bitmap mm/page_alloc.c:335 [inline] RIP: 0010:get_pfnblock_flags_mask+0x6/0x140 mm/page_alloc.c:366 Code: 24 04 e9 47 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 66 0f 1f 00 41 55 <49> 89 f5 41 54 49 c1 ed 16 49 89 d4 55 48 89 f5 53 48 c1 ed 0f 48 RSP: 0018:ffffc900005477e0 EFLAGS: 00000086 RAX: 0000000000000000 RBX: ffffea000489e600 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 0000000000122798 RDI: ffffea000489e600 RBP: 0000000000122798 R08: 0000000000000000 R09: fffff94000913cc6 R10: ffffea000489e637 R11: ffff8881f5942f60 R12: ffff88823fffa680 R13: 0000000000000002 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8881f5900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa10f8c019c CR3: 0000000116552000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __del_page_from_free_list+0x38/0x2f0 mm/page_alloc.c:694 __free_one_page+0x4c6/0xbf0 mm/page_alloc.c:825 free_pcppages_bulk+0x2e3/0x620 mm/page_alloc.c:1220 free_unref_page_commit+0x575/0xd50 mm/page_alloc.c:2634 free_unref_page+0x748/0xe40 mm/page_alloc.c:2682 vfree+0x174/0x950 mm/vmalloc.c:3383 kcov_put kernel/kcov.c:439 [inline] kcov_put+0x2a/0x40 kernel/kcov.c:435 kcov_close+0xd/0x20 kernel/kcov.c:535 __fput+0x3f8/0xb60 fs/file_table.c:450 task_work_run+0x14e/0x250 kernel/task_work.c:239 exit_task_work include/linux/task_work.h:43 [inline] do_exit+0xad8/0x2ce0 kernel/exit.c:938 do_group_exit+0xd3/0x2a0 kernel/exit.c:1087 get_signal+0x24ed/0x26c0 kernel/signal.c:3017 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x147/0x260 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6ce1da5621 Code: Unable to access opcode bytes at 0x7f6ce1da55f7. RSP: 002b:00007fff110ec450 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: fffffffffffffffe RBX: 000000000000031d RCX: 00007f6ce1da5621 RDX: 0000000000090800 RSI: 00007f6ce1e21e28 RDI: 00000000ffffff9c RBP: 00007fff110ec4ec R08: 0000000000021550 R09: 00007f6ce2ad2000 R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000 R13: 00000000000ad292 R14: 00007fff110ec540 R15: 0000000000000120