INFO: task kworker/1:14:4295 blocked for more than 147 seconds. Not tainted 6.1.71-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:14 state:D stack:24992 pid:4295 ppid:2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 usb_kill_urb+0x1c5/0x300 drivers/usb/core/urb.c:728 usb_start_wait_urb+0x1ac/0x510 drivers/usb/core/message.c:64 usb_internal_control_msg drivers/usb/core/message.c:102 [inline] usb_control_msg+0x2ad/0x4c0 drivers/usb/core/message.c:153 get_bMaxPacketSize0 drivers/usb/core/hub.c:4716 [inline] hub_port_init+0xba4/0x27e0 drivers/usb/core/hub.c:4913 hub_port_connect drivers/usb/core/hub.c:5363 [inline] hub_port_connect_change drivers/usb/core/hub.c:5574 [inline] port_event drivers/usb/core/hub.c:5730 [inline] hub_event+0x2b31/0x5730 drivers/usb/core/hub.c:5812 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d12a4f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d12acf0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:516 1 lock held by khungtaskd/28: #0: ffffffff8d12a320 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline] #0: ffffffff8d12a320 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d12a320 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494 1 lock held by dhcpcd/3216: #0: ffffffff8e295228 (rtnl_mutex){+.+.}-{3:3}, at: devinet_ioctl+0x2a5/0x1b20 net/ipv4/devinet.c:1070 2 locks held by getty/3302: #0: ffff88814b43c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2188 4 locks held by kworker/1:3/3629: 4 locks held by kworker/1:7/3633: #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000470fd20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffffffff8e295228 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:263 #3: ffffffff8d12f8f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #3: ffffffff8d12f8f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3b0/0x8a0 kernel/rcu/tree_exp.h:950 2 locks held by kworker/u4:13/3789: 2 locks held by kworker/1:13/3844: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90005b57d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 5 locks held by kworker/1:14/4295: #0: ffff888017ec5138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90013fc7d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888145784190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:836 [inline] #2: ffff888145784190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5730 drivers/usb/core/hub.c:5758 #3: ffff8881457874f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3122 [inline] #3: ffff8881457874f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5330 [inline] #3: ffff8881457874f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5574 [inline] #3: ffff8881457874f8 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5730 [inline] #3: ffff8881457874f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2471/0x5730 drivers/usb/core/hub.c:5812 #4: ffff888145723068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5331 [inline] #4: ffff888145723068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5574 [inline] #4: ffff888145723068 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5730 [inline] #4: ffff888145723068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x249e/0x5730 drivers/usb/core/hub.c:5812 7 locks held by syz-executor.5/14430: #0: ffff88807e98a460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x269/0xba0 fs/read_write.c:580 #1: ffff888084ad7c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1e7/0x4f0 fs/kernfs/file.c:321 #2: ffff888141f49a00 (kn->active#52){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20b/0x4f0 fs/kernfs/file.c:322 #3: ffffffff8dc08168 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x1ad/0x800 drivers/net/netdevsim/bus.c:160 #4: ffff888075ce30e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:836 [inline] #4: ffff888075ce30e8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:990 #5: ffff888075ce72f8 (&devlink->lock_key#8){+.+.}-{3:3}, at: nsim_drv_probe+0xc9/0xb20 drivers/net/netdevsim/dev.c:1539 #6: ffffffff8e295228 (rtnl_mutex){+.+.}-{3:3}, at: register_netdevice_notifier_net+0x16/0xa0 net/core/dev.c:1869 1 lock held by syz-executor.2/14457: #0: ffffffff8e295228 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e295228 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7c1/0xff0 net/core/rtnetlink.c:6119 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.71-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 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+0xf88/0xfd0 kernel/hung_task.c:377 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 14430 Comm: syz-executor.5 Not tainted 6.1.71-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:__bfs kernel/locking/lockdep.c:1797 [inline] RIP: 0010:__bfs_backwards kernel/locking/lockdep.c:1842 [inline] RIP: 0010:check_irq_usage kernel/locking/lockdep.c:2782 [inline] RIP: 0010:check_prev_add kernel/locking/lockdep.c:3094 [inline] RIP: 0010:check_prevs_add kernel/locking/lockdep.c:3209 [inline] RIP: 0010:validate_chain+0x1d02/0x5950 kernel/locking/lockdep.c:3825 Code: fc ff df 80 3c 08 00 74 08 4c 89 f7 e8 57 d0 76 00 48 09 5c 24 40 4d 8b 3e 4d 39 f7 0f 84 f4 fb ff ff 41 b5 01 eb 0c 4d 8b 3f <4d> 39 f7 0f 84 e3 fb ff ff 49 8d 5f 30 48 89 d8 48 c1 e8 03 48 b9 RSP: 0018:ffffc900044eebc0 EFLAGS: 00000046 RAX: 1ffffffff22ebf07 RBX: ffffffff9175f868 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9018b570 RBP: ffffc900044eee70 R08: dffffc0000000000 R09: fffffbfff2092045 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff915e6328 R13: 0000000000000000 R14: ffffffff9018b550 R15: ffffffff91777b68 FS: 0000555556aab480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055edc28a5950 CR3: 0000000079387000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 local_lock_acquire include/linux/local_lock_internal.h:29 [inline] put_cpu_partial+0x91/0x250 mm/slub.c:2634 get_partial_node+0x19e/0x450 mm/slub.c:2234 get_partial mm/slub.c:2325 [inline] ___slab_alloc+0x9b2/0x1270 mm/slub.c:3175 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1a5/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:679 [inline] lsm_inode_alloc security/security.c:596 [inline] security_inode_alloc+0x24/0x110 security/security.c:1040 inode_init_always+0x8df/0xc00 fs/inode.c:230 alloc_inode fs/inode.c:266 [inline] new_inode_pseudo+0x94/0x1d0 fs/inode.c:1018 new_inode+0x25/0x1d0 fs/inode.c:1046 debugfs_get_inode fs/debugfs/inode.c:72 [inline] __debugfs_create_file+0x147/0x500 fs/debugfs/inode.c:430 nsim_bpf_init+0x13e/0x260 drivers/net/netdevsim/bpf.c:635 nsim_init_netdevsim drivers/net/netdevsim/netdev.c:311 [inline] nsim_create+0x314/0x3f0 drivers/net/netdevsim/netdev.c:365 __nsim_dev_port_add+0x6ba/0xb10 drivers/net/netdevsim/dev.c:1393 nsim_dev_port_add_all+0x33/0xe0 drivers/net/netdevsim/dev.c:1451 nsim_drv_probe+0x80e/0xb20 drivers/net/netdevsim/dev.c:1605 really_probe+0x2ab/0xcb0 drivers/base/dd.c:639 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:785 driver_probe_device+0x50/0x420 drivers/base/dd.c:815 __device_attach_driver+0x2cf/0x510 drivers/base/dd.c:943 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:427 __device_attach+0x359/0x570 drivers/base/dd.c:1015 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:487 device_add+0xb48/0xfd0 drivers/base/core.c:3664 nsim_bus_dev_new drivers/net/netdevsim/bus.c:290 [inline] new_device_store+0x3e5/0x800 drivers/net/netdevsim/bus.c:167 kernfs_fop_write_iter+0x3a2/0x4f0 fs/kernfs/file.c:330 call_write_iter include/linux/fs.h:2248 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ae/0xba0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0db327ba6f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007ffff1323c10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f0db327ba6f RDX: 0000000000000003 RSI: 00007ffff1323c60 RDI: 0000000000000005 RBP: 00007f0db32c9045 R08: 0000000000000000 R09: 00007ffff1323a67 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003 R13: 00007ffff1323c60 R14: 00007f0db3ed4620 R15: 0000000000000003