INFO: task syz-executor.0:10375 blocked for more than 143 seconds. Not tainted 6.1.86-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25000 pid:10375 ppid:9702 flags:0x00004006 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 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0x6b9/0xd80 kernel/locking/mutex.c:747 device_lock include/linux/device.h:837 [inline] usbdev_release+0x76/0x7c0 drivers/usb/core/devio.c:1097 __fput+0x3b7/0x890 fs/file_table.c:320 task_work_run+0x246/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fb09b27cd9a RSP: 002b:00007ffe22ac5500 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fb09b27cd9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fb09b3ad980 R08: 0000001b31720000 R09: 0000000000000473 R10: 00000000847b64a3 R11: 0000000000000293 R12: 00000000000a585a R13: 00000000000a57bd R14: 00007ffe22ac56c0 R15: 00007fb09b234cb0 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d12ae10 (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: ffffffff8d12b610 (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: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6494 2 locks held by getty/3310: #0: ffff88814b809098 (&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 5 locks held by kworker/0:4/3610: #0: ffff888140171538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90005397d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888144780190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888144780190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5730 drivers/usb/core/hub.c:5789 #3: ffff8881447844f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3153 [inline] #3: ffff8881447844f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5361 [inline] #3: ffff8881447844f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5605 [inline] #3: ffff8881447844f8 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5761 [inline] #3: ffff8881447844f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2471/0x5730 drivers/usb/core/hub.c:5843 #4: ffff888144f58268 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5362 [inline] #4: ffff888144f58268 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5605 [inline] #4: ffff888144f58268 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5761 [inline] #4: ffff888144f58268 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x249e/0x5730 drivers/usb/core/hub.c:5843 1 lock held by syz-executor.3/4948: 1 lock held by syz-executor.1/5358: 3 locks held by kworker/u4:8/6972: 4 locks held by kworker/u4:11/6987: 1 lock held by syz-executor.0/10375: #0: ffff888144780190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #0: ffff888144780190 (&dev->mutex){....}-{3:3}, at: usbdev_release+0x76/0x7c0 drivers/usb/core/devio.c:1097 2 locks held by syz-executor.4/10387: 3 locks held by syz-executor.4/10504: 5 locks held by kworker/0:15/11411: #0: ffff888140171538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000831fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888022d97190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #2: ffff888022d97190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5730 drivers/usb/core/hub.c:5789 #3: ffff88807ac53190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #3: ffff88807ac53190 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:990 #4: ffff88807ac51118 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff88807ac51118 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:990 2 locks held by kworker/0:17/11413: #0: ffff888012472138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc9000872fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 1 lock held by syz-executor.0/11682: #0: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7c1/0xff0 net/core/rtnetlink.c:6118 3 locks held by syz-executor.3/11821: #0: ffffffff8e28dbd0 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x37b/0x5d0 net/core/net_namespace.c:474 #1: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_delete_nets+0xc9/0x330 net/ipv4/ip_tunnel.c:1148 #2: ffffffff8d130238 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #2: ffffffff8d130238 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962 2 locks held by syz-executor.2/11861: #0: ffffffff8e2f8ef0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x15/0x40 net/netlink/genetlink.c:860 #1: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: ethnl_set_linkmodes+0x436/0x18c0 net/ethtool/linkmodes.c:339 4 locks held by syz-executor.1/11868: #0: ffffffff8dc3e610 (minor_rwsem#2){++++}-{3:3}, at: usb_open+0x2c/0x2f0 drivers/usb/core/file.c:39 #1: ffff88805b885878 (&hiddev->existancelock){+.+.}-{3:3}, at: hiddev_open+0xa0/0x5b0 drivers/hid/usbhid/hiddev.c:301 #2: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #2: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #2: ffffffff8d12ac40 (rcu_read_lock){....}-{1:2}, at: prepend_path+0x2f/0xbe0 fs/d_path.c:163 #3: ffffffff8ce14688 (rename_lock.seqcount){+.+.}-{0:0}, at: read_seqbegin include/linux/seqlock.h:836 [inline] #3: ffffffff8ce14688 (rename_lock.seqcount){+.+.}-{0:0}, at: read_seqbegin_or_lock include/linux/seqlock.h:1140 [inline] #3: ffffffff8ce14688 (rename_lock.seqcount){+.+.}-{0:0}, at: prepend_path+0x2d6/0xbe0 fs/d_path.c:170 1 lock held by syz-executor.4/11877: #0: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e299e28 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x7c1/0xff0 net/core/rtnetlink.c:6118 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.86-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 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:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6987 Comm: kworker/u4:11 Not tainted 6.1.86-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: netns cleanup_net RIP: 0010:check_preemption_disabled+0x63/0x110 lib/smp_processor_id.c:19 Code: 44 24 08 0f 85 c7 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 <74> c9 49 89 f6 49 89 ff 65 4c 8b 25 8d de 77 75 41 f6 44 24 2f 04 RSP: 0000:ffffc9000325f860 EFLAGS: 00000046 RAX: 0000000080000000 RBX: 0000000000000000 RCX: ffff88802ece5940 RDX: 0000000000000000 RSI: ffffffff8aec1340 RDI: ffffffff8b3d42e0 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ce6ede R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff88802ece5940 R14: 00000000ffffffff R15: ffffffff8d12aca0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe031178d58 CR3: 0000000059a29000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] lock_is_held_type+0xfd/0x180 kernel/locking/lockdep.c:5706 lock_is_held include/linux/lockdep.h:283 [inline] __might_resched+0xa1/0x780 kernel/sched/core.c:9904 inet_twsk_purge+0x11e/0xa40 net/ipv4/inet_timewait_sock.c:294 tcp_twsk_purge+0xd6/0x140 net/ipv4/tcp_minisocks.c:360 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:601 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:308