INFO: task kworker/0:4:21777 blocked for more than 143 seconds.
Not tainted 6.6.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:4 state:D stack:21856 pid:21777 ppid:2 flags:0x00004000
Workqueue: events console_callback
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0xc79/0x30a0 kernel/sched/core.c:6695
schedule+0xe7/0x1b0 kernel/sched/core.c:6771
schedule_timeout+0x278/0x2c0 kernel/time/timer.c:2143
___down_common kernel/locking/semaphore.c:225 [inline]
__down_common+0x327/0x6c0 kernel/locking/semaphore.c:246
down+0x74/0xa0 kernel/locking/semaphore.c:63
console_lock+0x96/0x150 kernel/printk/printk.c:2652
console_callback+0x63/0x4c0 drivers/tty/vt/vt.c:2933
process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
process_scheduled_works kernel/workqueue.c:2703 [inline]
worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
kthread+0x33c/0x440 kernel/kthread.c:388
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0:
ffffffff87eac820
(
rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613
2 locks held by getty/2447:
#0: ffff8881022450a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900000432f0 (&ldata->atomic_read_lock){+.+.}-{3:3}
, at: n_tty_read+0xfc5/0x1480 drivers/tty/n_tty.c:2206
6 locks held by kworker/0:3/5309:
#0: ffff88810a278138
((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc90001fdfd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff888106769190 (&dev->mutex
){....}-{3:3}
, at: device_lock include/linux/device.h:992 [inline]
, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5768
#3:
ffff88810676c500 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3138 [inline]
ffff88810676c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5337 [inline]
ffff88810676c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
ffff88810676c500 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline]
ffff88810676c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x28b4/0x4f30 drivers/usb/core/hub.c:5822
#4: ffff888104bffd68
(hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5338 [inline]
(hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
(hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline]
(hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x28da/0x4f30 drivers/usb/core/hub.c:5822
#5: ffff8881f663b558
(&rq->__lock
){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline]
){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1372 [inline]
){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1681 [inline]
){-.-.}-{2:2}, at: __schedule+0x290/0x30a0 kernel/sched/core.c:6612
5 locks held by kworker/0:2/12985:
2 locks held by kworker/0:4/21777:
#0: ffff888100070d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc9000dce7d80 (console_work){+.+.}-{0:0}
, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
4 locks held by kworker/0:6/25168:
6 locks held by kworker/0:1/27816:
#0:
ffff88810a278138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1:
ffffc9000740fd80
(
(work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff888106b21190
(&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline]
(&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5768
#3: ffff888118dfb190 (&dev->mutex){....}-{3:3}
, at: device_lock include/linux/device.h:992 [inline]
, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1005
#4: ffff8881433c5160
(&dev->mutex
){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline]
){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1005
#5: ffff88810577d668
(
hcd->bandwidth_mutex){+.+.}-{3:3}, at: usb_set_interface+0x29b/0xea0 drivers/usb/core/message.c:1561
6 locks held by kworker/0:10/28576:
#0: ffff88810a278138
((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1:
ffffc9000325fd80 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff888106749190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:992 [inline]
#2: ffff888106749190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5768
#3:
ffff88810674c500 (&port_dev->status_lock
){+.+.}-{3:3}
, at: usb_lock_port drivers/usb/core/hub.c:3138 [inline]
, at: hub_port_connect drivers/usb/core/hub.c:5337 [inline]
, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
, at: port_event drivers/usb/core/hub.c:5740 [inline]
, at: hub_event+0x28b4/0x4f30 drivers/usb/core/hub.c:5822
#4: ffff88810575b568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5338 [inline]
#4: ffff88810575b568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
#4: ffff88810575b568 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline]
#4: ffff88810575b568 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x28da/0x4f30 drivers/usb/core/hub.c:5822
#5: ffffffff888e09f0 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x1a4/0x1dc0 drivers/usb/core/hub.c:2953
4 locks held by udevd/32204:
#0: ffff888117df7b08 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xda/0x1280 fs/seq_file.c:182
#1: ffff8881199f1488 (&of->mutex){+.+.}-{3:3}
, at: kernfs_seq_start+0x4b/0x460 fs/kernfs/file.c:154
#2: ffff888144ba0660 (
kn->active
#18){++++}-{0:0}, at: kernfs_seq_start+0x6f/0x460 fs/kernfs/file.c:155
#3: ffff888118dfb190
(&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:997 [inline]
(&dev->mutex){....}-{3:3}, at: manufacturer_show+0x26/0xa0 drivers/usb/core/sysfs.c:142
6 locks held by kworker/1:7/513:
6 locks held by kworker/0:12/3392:
#0: ffff88810a278138
((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc9000dd57d80 (
(work_completion)(&hub->events)
){+.+.}-{0:0}
, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff888106b69190 (&dev->mutex
){....}-{3:3}
, at: device_lock include/linux/device.h:992 [inline]
, at: hub_event+0x1be/0x4f30 drivers/usb/core/hub.c:5768
#3:
ffff888106b6c500 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3138 [inline]
ffff888106b6c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5337 [inline]
ffff888106b6c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
ffff888106b6c500 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline]
ffff888106b6c500 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x28b4/0x4f30 drivers/usb/core/hub.c:5822
#4: ffff888104fabd68
(hcd->address0_mutex
){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5338 [inline]
){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5580 [inline]
){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5740 [inline]
){+.+.}-{3:3}, at: hub_event+0x28da/0x4f30 drivers/usb/core/hub.c:5822
#5: ffffffff888e09f0
(ehci_cf_port_reset_rwsem
){.+.+}-{3:3}, at: raw_spin_rq_lock_nested kernel/sched/core.c:558 [inline]
){.+.+}-{3:3}, at: raw_spin_rq_lock kernel/sched/sched.h:1372 [inline]
){.+.+}-{3:3}, at: rq_lock kernel/sched/sched.h:1681 [inline]
){.+.+}-{3:3}, at: __schedule+0x290/0x30a0 kernel/sched/core.c:6612
4 locks held by udevd/3751:
#0: ffff88812b6edc30 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xda/0x1280 fs/seq_file.c:182
#1:
ffff8881184b1c88 (&of->mutex){+.+.}-{3:3}
, at: kernfs_seq_start+0x4b/0x460 fs/kernfs/file.c:154
#2: ffff888103fe4ae8 (kn->active#18){++++}-{0:0}, at: kernfs_seq_start+0x6f/0x460 fs/kernfs/file.c:155
#3:
ffff888141954190 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:997 [inline]
ffff888141954190 (&dev->mutex){....}-{3:3}, at: manufacturer_show+0x26/0xa0 drivers/usb/core/sysfs.c:142
3 locks held by kworker/1:17/4056:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x26c/0x2d0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xf87/0x1210 kernel/hung_task.c:379
kthread+0x33c/0x440 kernel/kthread.c:388
ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5755 Comm: syz-executor.3 Not tainted 6.6.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:check_preemption_disabled+0x3/0xe0 lib/smp_processor_id.c:13
Code: 02 85 c0 74 18 65 8b 05 0b 98 bb 79 85 c0 75 0d 65 8b 05 fc 95 bb 79 85 c0 74 02 0f 0b e9 85 fc ff ff 0f 1f 44 00 00 41 54 55 <53> 48 83 ec 08 65 8b 1d 2d bb bc 79 65 8b 05 22 bb bc 79 a9 ff ff
RSP: 0018:ffffc90000007858 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffff88810db46220 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8687cb40 RDI: ffffffff86a64a60
RBP: ffffffff87eac820 R08: 0000000000000000 R09: ffffed102034ee24
R10: ffff888101a77127 R11: 010000001eeb90a3 R12: ffff88810db45700
R13: 0000000000000001 R14: 00000000ffffffff R15: 0000000000000004
FS: 00007fab417386c0(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fab41737070 CR3: 0000000115fb2000 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+0xdc/0x140 kernel/locking/lockdep.c:5825
test_idle_cores kernel/sched/fair.c:6992 [inline]
select_idle_sibling kernel/sched/fair.c:7353 [inline]
select_task_rq_fair+0x2882/0x3cf0 kernel/sched/fair.c:7932
select_task_rq kernel/sched/core.c:3631 [inline]
try_to_wake_up+0x612/0x1230 kernel/sched/core.c:4331
swake_up_locked kernel/sched/swait.c:29 [inline]
swake_up_locked kernel/sched/swait.c:21 [inline]
complete_with_flags kernel/sched/completion.c:24 [inline]
complete+0xb0/0x200 kernel/sched/completion.c:47
transfer drivers/usb/gadget/udc/dummy_hcd.c:1515 [inline]
dummy_timer+0x1271/0x35f0 drivers/usb/gadget/udc/dummy_hcd.c:1971
call_timer_fn+0x19e/0x580 kernel/time/timer.c:1700
expire_timers kernel/time/timer.c:1751 [inline]
__run_timers+0x764/0xb10 kernel/time/timer.c:2022
run_timer_softirq+0x58/0xd0 kernel/time/timer.c:2035
__do_softirq+0x20b/0x94e kernel/softirq.c:553
invoke_softirq kernel/softirq.c:427 [inline]
__irq_exit_rcu kernel/softirq.c:632 [inline]
irq_exit_rcu+0xa7/0x110 kernel/softirq.c:644
sysvec_apic_timer_interrupt+0x8e/0xb0 arch/x86/kernel/apic/apic.c:1074
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:1979 [inline]
RIP: 0010:vprintk_emit+0x3aa/0x5f0 kernel/printk/printk.c:2306
Code: 00 4d 85 e4 0f 85 e4 01 00 00 e8 11 20 1c 00 9c 5d 81 e5 00 02 00 00 31 ff 48 89 ee e8 8f 1b 1c 00 48 85 ed 0f 85 f0 01 00 00 f1 1f 1c 00 45 31 c9 41 b8 01 00 00 00 31 c9 48 8d 05 00 00 00
RSP: 0018:ffffc9000edffcc8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000045 RCX: 0000000000000000
RDX: ffff88810db45700 RSI: ffffffff81315524 RDI: 0000000000000007
RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 617661206e612064 R12: 0000000000000200
R13: ffff888106a58000 R14: ffffffff86ff2220 R15: ffffc9000edffd48
vprintk+0x7b/0x90 kernel/printk/printk_safe.c:45
_printk+0xc8/0x100 kernel/printk/printk.c:2332
usb_gadget_register_driver_owner+0x1c2/0x2d0 drivers/usb/gadget/udc/core.c:1684
raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:548 [inline]
raw_ioctl+0x172f/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1255
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:871 [inline]
__se_sys_ioctl fs/ioctl.c:857 [inline]
__x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fab423d684b
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007fab41735fa0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fab423d684b
RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000004
RBP: 00007fab41737070 R08: 0000000000000010 R09: 00332e6364755f79
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fab41736040 R14: 0000000020001440 R15: 00007fab4261ab88