INFO: task kworker/1:0:24 blocked for more than 143 seconds. Not tainted 6.8.0-rc4-next-20240214-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:0 state:D stack:19536 pid:24 tgid:24 ppid:2 flags:0x00004000 Workqueue: usb_hub_wq hub_event Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x17df/0x4a40 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6819 usb_kill_urb+0x1c9/0x300 drivers/usb/core/urb.c:713 usb_start_wait_urb+0x1b0/0x520 drivers/usb/core/message.c:65 usb_internal_control_msg drivers/usb/core/message.c:103 [inline] usb_control_msg+0x2b1/0x4c0 drivers/usb/core/message.c:154 get_bMaxPacketSize0 drivers/usb/core/hub.c:4797 [inline] hub_port_init+0xc21/0x2620 drivers/usb/core/hub.c:4993 hub_port_connect drivers/usb/core/hub.c:5441 [inline] hub_port_connect_change drivers/usb/core/hub.c:5652 [inline] port_event drivers/usb/core/hub.c:5812 [inline] hub_event+0x295f/0x5150 drivers/usb/core/hub.c:5894 process_one_work kernel/workqueue.c:3146 [inline] process_scheduled_works+0x9d7/0x1730 kernel/workqueue.c:3226 worker_thread+0x86d/0xd70 kernel/workqueue.c:3307 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:242 Showing all locks held in the system: 5 locks held by kworker/1:0/24: #0: ffff8880157d2548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3121 [inline] #0: ffff8880157d2548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x8e1/0x1730 kernel/workqueue.c:3226 #1: ffffc900001e7d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3121 [inline] #1: ffffc900001e7d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x8e1/0x1730 kernel/workqueue.c:3226 #2: ffff888023c1d190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline] #2: ffff888023c1d190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1fe/0x5150 drivers/usb/core/hub.c:5840 #3: ffff888023c51510 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3198 [inline] #3: ffff888023c51510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5409 [inline] #3: ffff888023c51510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5652 [inline] #3: ffff888023c51510 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5812 [inline] #3: ffff888023c51510 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x25b6/0x5150 drivers/usb/core/hub.c:5894 #4: ffff888023155468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5410 [inline] #4: ffff888023155468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5652 [inline] #4: ffff888023155468 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5812 [inline] #4: ffff888023155468 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x25f4/0x5150 drivers/usb/core/hub.c:5894 1 lock held by khungtaskd/29: #0: ffffffff8e1315a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e1315a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e1315a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4822: #0: ffff88802e9320a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 7 locks held by syz-executor.4/26633: #0: ffff888081fd9c48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191 #1: ffff88801c300420 (sb_writers#10){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2862 [inline] #1: ffff88801c300420 (sb_writers#10){.+.+}-{0:0}, at: vfs_writev+0x2d9/0xbb0 fs/read_write.c:969 #2: ffff88803f9eac88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #3: ffffffff8e15b1c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock include/linux/cgroup.h:368 [inline] #3: ffffffff8e15b1c8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_kn_lock_live+0xe6/0x290 kernel/cgroup/cgroup.c:1662 #4: ffffffff8dfcc770 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2413 [inline] #4: ffffffff8dfcc770 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_procs_write_start+0x1a0/0x660 kernel/cgroup/cgroup.c:2917 #5: ffffffff8e15b3b0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_lock kernel/cgroup/cgroup.c:2415 [inline] #5: ffffffff8e15b3b0 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_procs_write_start+0x1b5/0x660 kernel/cgroup/cgroup.c:2917 #6: ffffffff8e136938 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline] #6: ffffffff8e136938 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x39a/0x820 kernel/rcu/tree_exp.h:939 1 lock held by syz-executor.4/26637: 3 locks held by syz-executor.4/26643: 2 locks held by syz-executor.4/26653: 3 locks held by syz-executor.0/26662: 2 locks held by syz-executor.2/26664: 1 lock held by syz-executor.1/26660: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc4-next-20240214-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfb0/0xff0 kernel/hung_task.c:380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 26666 Comm: syz-executor.3 Not tainted 6.8.0-rc4-next-20240214-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline] RIP: 0010:unwind_next_frame+0x1e6e/0x2a00 arch/x86/kernel/unwind_orc.c:672 Code: 06 fd ff ff e8 03 42 53 00 eb 0c e8 fc 41 53 00 eb 05 e8 f5 41 53 00 bf 01 00 00 00 e8 4b 2e 24 00 65 8b 1d 2c 21 c3 7e 31 ff <89> de e8 1b 46 53 00 85 db 0f 84 9d 02 00 00 e8 ce 41 53 00 b0 01 RSP: 0018:ffffc90004806c28 EFLAGS: 00000046 RAX: 0000000080000003 RBX: 0000000080000002 RCX: 0000000000000003 RDX: ffffc9000a9ca000 RSI: 0000000000013bc7 RDI: 0000000000000000 RBP: ffffc90004806d00 R08: ffffffff81409d65 R09: ffffffff814098df R10: 0000000000000003 R11: ffff88808d279e00 R12: ffffc900048078a0 R13: dffffc0000000000 R14: ffffc90004800000 R15: ffffc900048078a8 FS: 00007f46332016c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020008030 CR3: 000000002a2be000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack+0x3f/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:548 irq_work_queue_on+0x118/0x260 kernel/irq_work.c:150 pull_rt_task kernel/sched/rt.c:2324 [inline] balance_rt+0x2e6/0x470 kernel/sched/rt.c:1652 put_prev_task_balance+0x92/0x150 kernel/sched/core.c:5995 __pick_next_task+0xdb/0x2c0 kernel/sched/core.c:6042 pick_next_task kernel/sched/core.c:6111 [inline] __schedule+0x729/0x4a40 kernel/sched/core.c:6691 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6819 schedule_timeout+0xb0/0x310 kernel/time/timer.c:2159 unix_wait_for_peer+0x250/0x340 net/unix/af_unix.c:1470 unix_dgram_sendmsg+0x127a/0x1f80 net/unix/af_unix.c:2136 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmmsg+0x3b2/0x740 net/socket.c:2724 __do_sys_sendmmsg net/socket.c:2753 [inline] __se_sys_sendmmsg net/socket.c:2750 [inline] __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2750 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f463247dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f46332010c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f46325abf80 RCX: 00007f463247dda9 RDX: 0000000000000318 RSI: 00000000200bd000 RDI: 0000000000000004 RBP: 00007f46324ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f46325abf80 R15: 00007fff453d5928