INFO: task kworker/0:4:4036 blocked for more than 143 seconds. Not tainted 5.16.0-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:4 state:D stack:22504 pid: 4036 ppid: 2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0x931/0x2360 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 unregister_netdev+0xe/0x20 net/core/dev.c:10467 usbnet_disconnect+0x139/0x270 drivers/net/usb/usbnet.c:1623 usb_unbind_interface+0x1d8/0x8e0 drivers/usb/core/driver.c:458 __device_release_driver+0x5d7/0x700 drivers/base/dd.c:1206 device_release_driver_internal drivers/base/dd.c:1237 [inline] device_release_driver+0x26/0x40 drivers/base/dd.c:1260 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:529 device_del+0x502/0xd50 drivers/base/core.c:3596 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1419 usb_disconnect.cold+0x27a/0x78e drivers/usb/core/hub.c:2228 hub_port_connect drivers/usb/core/hub.c:5202 [inline] hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] port_event drivers/usb/core/hub.c:5660 [inline] hub_event+0x1e39/0x44d0 drivers/usb/core/hub.c:5742 process_one_work+0x9ac/0x1650 kernel/workqueue.c:2307 worker_thread+0x657/0x1110 kernel/workqueue.c:2454 kthread+0x40b/0x500 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Showing all locks held in the system: 5 locks held by kworker/0:1/7: #0: ffff888103b83938 ((wq_completion)usb_hub_wq ){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] ){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] ){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] ){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] ){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc9000007fdb0 ( (work_completion)(&hub->events) ){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffff88810cf23220 ( &dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] &dev->mutex){....}-{3:3}, at: hub_event+0x1c5/0x44d0 drivers/usb/core/hub.c:5688 #3: ffff88810cf265c0 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3091 [inline] #3: ffff88810cf265c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5254 [inline] #3: ffff88810cf265c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] #3: ffff88810cf265c0 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5660 [inline] #3: ffff88810cf265c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x1fba/0x44d0 drivers/usb/core/hub.c:5742 #4: ffff88810ca9be68 (hcd->address0_mutex ){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5255 [inline] ){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] ){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5660 [inline] ){+.+.}-{3:3}, at: hub_event+0x1fe3/0x44d0 drivers/usb/core/hub.c:5742 6 locks held by kworker/1:0/18: #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc9000013fdb0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffff88810d043220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] (&dev->mutex){....}-{3:3}, at: hub_event+0x1c5/0x44d0 drivers/usb/core/hub.c:5688 #3: ffff888118211220 (&dev->mutex){....}-{3:3} , at: device_lock include/linux/device.h:760 [inline] , at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:945 #4: ffff8881182121a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff8881182121a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:945 #5: ffffffff88877368 (rtnl_mutex){+.+.}-{3:3}, at: register_netdev+0x11/0x50 net/core/dev.c:9783 1 lock held by khungtaskd/25: #0: ffffffff878923c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460 5 locks held by kworker/0:3/1131: 2 locks held by dhcpcd/1207: 2 locks held by getty/1229: #0: ffff88810e57b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900000432e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077 6 locks held by kworker/0:4/4036: #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc90001417db0 ((work_completion)(&hub->events) ){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffff88810d0db220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #2: ffff88810d0db220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c5/0x44d0 drivers/usb/core/hub.c:5688 #3: ffff88810c39c220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] (&dev->mutex){....}-{3:3}, at: usb_disconnect.cold+0x43/0x78e drivers/usb/core/hub.c:2219 #4: ffff88811cdb31a8 (&dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:760 [inline] , at: __device_driver_lock drivers/base/dd.c:1033 [inline] , at: device_release_driver_internal drivers/base/dd.c:1234 [inline] , at: device_release_driver+0x1c/0x40 drivers/base/dd.c:1260 #5: ffffffff88877368 (rtnl_mutex){+.+.}-{3:3}, at: unregister_netdev+0xe/0x20 net/core/dev.c:10467 6 locks held by kworker/0:5/4121: #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc90002407db0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffff88810d09b220 (&dev->mutex ){....}-{3:3} , at: device_lock include/linux/device.h:760 [inline] , at: hub_event+0x1c5/0x44d0 drivers/usb/core/hub.c:5688 #3: ffff888116994220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #3: ffff888116994220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:945 #4: ffff888112fbc1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff888112fbc1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7a/0x4a0 drivers/base/dd.c:945 #5: ffffffff88877368 ( rtnl_mutex){+.+.}-{3:3}, at: register_netdev+0x11/0x50 net/core/dev.c:9783 5 locks held by kworker/1:6/13579: #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] #0: ffff888103b83938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc90009e97db0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffff88810d0bb220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #2: ffff88810d0bb220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c5/0x44d0 drivers/usb/core/hub.c:5688 #3: ffff88810d0be5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3091 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5254 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5660 [inline] (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x1fba/0x44d0 drivers/usb/core/hub.c:5742 #4: ffff88810c9fae68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5255 [inline] #4: ffff88810c9fae68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5502 [inline] #4: ffff88810c9fae68 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5660 [inline] #4: ffff88810c9fae68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x1fe3/0x44d0 drivers/usb/core/hub.c:5742 3 locks held by kworker/0:2/870: #0: ffff88810dded938 ((wq_completion)ipv6_addrconf ){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] ){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] ){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:631 [inline] ){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:658 [inline] ){+.+.}-{0:0}, at: process_one_work+0x890/0x1650 kernel/workqueue.c:2278 #1: ffffc9000bd0fdb0 ((addr_chk_work).work){+.+.}-{0:0} , at: process_one_work+0x8c4/0x1650 kernel/workqueue.c:2282 #2: ffffffff88877368 ( rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0xa/0x20 net/ipv6/addrconf.c:4595 3 locks held by udevd/1893: #0: ffff88810c869c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:203 [inline] #0: ffff88810c869c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x185/0x5f0 fs/kernfs/file.c:242 #1: ffff8881055b6da0 (kn->active#48){++++}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:204 [inline] #1: ffff8881055b6da0 (kn->active#48){++++}-{0:0}, at: kernfs_fop_read_iter+0x1a8/0x5f0 fs/kernfs/file.c:242 #2: ffff888116994220 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:765 [inline] (&dev->mutex){....}-{3:3}, at: read_descriptors+0x3c/0x2c0 drivers/usb/core/sysfs.c:873 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 25 Comm: khungtaskd Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x40b/0x500 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 1207 Comm: dhcpcd Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:skip_atoi+0xa1/0xe0 lib/vsprintf.c:162 Code: 8d 74 05 d0 48 89 d8 48 c1 e8 03 42 0f b6 04 20 38 d0 7f 04 84 c0 75 2f 0f be 2b bf 09 00 00 00 83 ed 30 89 ee e8 0f 05 2e ff <83> fd 09 76 96 e8 e5 02 2e ff 44 89 f0 5b 5d 41 5c 41 5d 41 5e c3 RSP: 0018:ffffc90000f2ed18 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffffff86284ca9 RCX: 000000000000003c RDX: 0000000000000000 RSI: ffff88810a241c00 RDI: 0000000000000003 RBP: 000000000000003c R08: 0000000000000009 R09: ffffffff8215ab8a R10: ffffffff82158ab1 R11: 0000000000000036 R12: dffffc0000000000 R13: ffffc90000f2ed80 R14: 0000000000000006 R15: 0000000000000036 FS: 00007fd2a3374740(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f774b0b3000 CR3: 0000000110124000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: format_decode+0x882/0xad0 lib/vsprintf.c:2573 vsnprintf+0x155/0x14f0 lib/vsprintf.c:2757 sprintf+0xc0/0x100 lib/vsprintf.c:3007 print_time kernel/printk/printk.c:1260 [inline] info_print_prefix+0x248/0x340 kernel/printk/printk.c:1286 record_print_text+0x14d/0x3e0 kernel/printk/printk.c:1335 console_unlock+0x2d8/0xb70 kernel/printk/printk.c:2691 vprintk_emit+0x198/0x4f0 kernel/printk/printk.c:2244 dev_vprintk_emit+0x36e/0x3b2 drivers/base/core.c:4608 dev_printk_emit+0xba/0xf1 drivers/base/core.c:4619 __netdev_printk+0x1c6/0x27a net/core/dev.c:10776 netdev_err+0xd7/0x109 net/core/dev.c:10828 asix_set_sw_mii drivers/net/usb/asix_common.c:303 [inline] asix_set_sw_mii drivers/net/usb/asix_common.c:297 [inline] asix_check_host_enable.cold+0x22/0x66 drivers/net/usb/asix_common.c:74 asix_mdio_read+0x90/0x220 drivers/net/usb/asix_common.c:499 asix_phy_reset+0x104/0x170 drivers/net/usb/asix_devices.c:215 ax88178_reset+0x3f5/0x1310 drivers/net/usb/asix_devices.c:977 usbnet_open+0xc8/0x5d0 drivers/net/usb/usbnet.c:894 __dev_open+0x2c4/0x4d0 net/core/dev.c:1407 __dev_change_flags+0x583/0x750 net/core/dev.c:8139 dev_change_flags+0x93/0x170 net/core/dev.c:8210 devinet_ioctl+0x15d1/0x1ca0 net/ipv4/devinet.c:1144 inet_ioctl+0x1e6/0x320 net/ipv4/af_inet.c:969 sock_do_ioctl+0xcc/0x230 net/socket.c:1122 sock_ioctl+0x2f1/0x640 net/socket.c:1239 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fd2a34620e7 Code: 3c 1c e8 1c ff ff ff 85 c0 79 87 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 61 9d 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffe86eacc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd2a33746c8 RCX: 00007fd2a34620e7 RDX: 00007ffe86ebce58 RSI: 0000000000008914 RDI: 0000000000000005 RBP: 00007ffe86ecd008 R08: 00007ffe86ebce18 R09: 00007ffe86ebcdc8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe86ebce58 R14: 0000000000000028 R15: 0000000000008914 ---------------- Code disassembly (best guess): 0: 8d 74 05 d0 lea -0x30(%rbp,%rax,1),%esi 4: 48 89 d8 mov %rbx,%rax 7: 48 c1 e8 03 shr $0x3,%rax b: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax 10: 38 d0 cmp %dl,%al 12: 7f 04 jg 0x18 14: 84 c0 test %al,%al 16: 75 2f jne 0x47 18: 0f be 2b movsbl (%rbx),%ebp 1b: bf 09 00 00 00 mov $0x9,%edi 20: 83 ed 30 sub $0x30,%ebp 23: 89 ee mov %ebp,%esi 25: e8 0f 05 2e ff callq 0xff2e0539 * 2a: 83 fd 09 cmp $0x9,%ebp <-- trapping instruction 2d: 76 96 jbe 0xffffffc5 2f: e8 e5 02 2e ff callq 0xff2e0319 34: 44 89 f0 mov %r14d,%eax 37: 5b pop %rbx 38: 5d pop %rbp 39: 41 5c pop %r12 3b: 41 5d pop %r13 3d: 41 5e pop %r14 3f: c3 retq