INFO: task kworker/u5:1:3653 blocked for more than 143 seconds.
Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:1 state:D stack:25880 pid: 3653 ppid: 2 flags:0x00004000
Workqueue: hci7 hci_power_on
Call Trace:
context_switch kernel/sched/core.c:5146 [inline]
__schedule+0x957/0xe20 kernel/sched/core.c:6458
schedule+0xeb/0x1b0 kernel/sched/core.c:6530
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6589
__mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679
__mutex_lock kernel/locking/mutex.c:747 [inline]
mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
hci_dev_do_open net/bluetooth/hci_core.c:480 [inline]
hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
INFO: task syz-executor.3:12123 blocked for more than 143 seconds.
Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:27040 pid:12123 ppid: 3650 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5146 [inline]
__schedule+0x957/0xe20 kernel/sched/core.c:6458
schedule+0xeb/0x1b0 kernel/sched/core.c:6530
schedule_timeout+0xac/0x300 kernel/time/timer.c:1911
do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x46/0x60 kernel/sched/completion.c:138
__flush_work kernel/workqueue.c:3075 [inline]
__cancel_work_timer+0x585/0x740 kernel/workqueue.c:3162
hci_dev_close_sync+0x31/0xcc0 net/bluetooth/hci_sync.c:4091
hci_dev_do_close net/bluetooth/hci_core.c:553 [inline]
hci_unregister_dev+0x1b1/0x460 net/bluetooth/hci_core.c:2685
hci_uart_tty_close+0x1a7/0x280 drivers/bluetooth/hci_ldisc.c:548
tty_ldisc_kill drivers/tty/tty_ldisc.c:608 [inline]
tty_ldisc_release+0x23c/0x510 drivers/tty/tty_ldisc.c:776
tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1694
tty_release+0xc06/0xe60 drivers/tty/tty_io.c:1865
__fput+0x3b9/0x820 fs/file_table.c:317
task_work_run+0x146/0x1c0 kernel/task_work.c:177
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x134/0x160 kernel/entry/common.c:169
exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:201
__syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7ff2f763bd4b
RSP: 002b:00007ffce631c090 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007ff2f763bd4b
RDX: 00007ff2f77a0260 RSI: ffffffffffffffff RDI: 0000000000000003
RBP: 00007ff2f779d960 R08: 0000000000000000 R09: 00007ff2f77a0268
R10: 00007ffce631c190 R11: 0000000000000293 R12: 00000000000d7015
R13: 00007ffce631c190 R14: 00007ff2f779bf60 R15: 0000000000000032
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8cb1ece0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3295:
#0: ffff8880275c6098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2124
3 locks held by kworker/u5:1/3653:
#0: ffff88807a5d0938 ((wq_completion)hci7){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90003cafd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffff888033331048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline]
#2: ffff888033331048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963
4 locks held by kworker/0:6/3768:
#0: ffff8880b9a39b98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544
#1: ffff8880b9a27748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x567/0x820 kernel/sched/psi.c:889
#2: ffff8880b9a282d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x12a/0x270 kernel/time/timer.c:999
#3: ffff8880b9a282d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x12a/0x270 kernel/time/timer.c:999
3 locks held by syz-executor.3/12123:
#0: ffff888034f9a098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline]
#0: ffff888034f9a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:346 [inline]
#0: ffff888034f9a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline]
#0: ffff888034f9a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_release+0xb3/0x510 drivers/tty/tty_ldisc.c:775
#1: ffff888039a75098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: __tty_ldisc_lock_nested drivers/tty/tty_ldisc.c:296 [inline]
#1: ffff888039a75098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair_timeout drivers/tty/tty_ldisc.c:348 [inline]
#1: ffff888039a75098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_lock_pair drivers/tty/tty_ldisc.c:367 [inline]
#1: ffff888039a75098 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_release+0xd7/0x510 drivers/tty/tty_ldisc.c:775
#2: ffff888033331048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline]
#2: ffff888033331048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1a9/0x460 net/bluetooth/hci_core.c:2685
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #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+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x168/0x280 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
watchdog+0xd18/0xd60 kernel/hung_task.c:378
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3768 Comm: kworker/0:6 Not tainted 5.19.0-rc3-syzkaller-00043-g3abc3ae553c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_power_efficient wg_ratelimiter_gc_entries
RIP: 0010:__lock_acquire+0xf2e/0x1f80 kernel/locking/lockdep.c:5048
Code: 29 f2 89 f3 c1 c3 10 31 d3 01 c6 29 d8 41 89 dd 41 c1 c5 13 41 31 c5 01 f3 44 29 ee 44 01 eb 41 c1 c5 04 41 31 f5 49 c1 e5 20 <48> c7 c0 48 c2 03 8e 48 c1 e8 03 8a 04 38 84 c0 0f 85 8a 0b 00 00
RSP: 0018:ffffc90004bcf988 EFLAGS: 00000006
RAX: 0000000051a12ab2 RBX: 00000000dcfac893 RCX: 00000000c722910d
RDX: 00000000da4dc6cf RSI: 00000000fa18be7f RDI: dffffc0000000000
RBP: ffff888020143b00 R08: dffffc0000000000 R09: fffffbfff1fa901e
R10: fffffbfff1fa901e R11: 1ffffffff1fa901d R12: 1ffff110040288aa
R13: 7652b93e00000000 R14: ffff888020144550 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560b55192038 CR3: 000000007df2c000 CR4: 00000000003506f0
Call Trace:
lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665
__raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
_raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
spin_lock include/linux/spinlock.h:349 [inline]
wg_ratelimiter_gc_entries+0x5c/0x4a0 drivers/net/wireguard/ratelimiter.c:63
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
----------------
Code disassembly (best guess):
0: 29 f2 sub %esi,%edx
2: 89 f3 mov %esi,%ebx
4: c1 c3 10 rol $0x10,%ebx
7: 31 d3 xor %edx,%ebx
9: 01 c6 add %eax,%esi
b: 29 d8 sub %ebx,%eax
d: 41 89 dd mov %ebx,%r13d
10: 41 c1 c5 13 rol $0x13,%r13d
14: 41 31 c5 xor %eax,%r13d
17: 01 f3 add %esi,%ebx
19: 44 29 ee sub %r13d,%esi
1c: 44 01 eb add %r13d,%ebx
1f: 41 c1 c5 04 rol $0x4,%r13d
23: 41 31 f5 xor %esi,%r13d
26: 49 c1 e5 20 shl $0x20,%r13
* 2a: 48 c7 c0 48 c2 03 8e mov $0xffffffff8e03c248,%rax <-- trapping instruction
31: 48 c1 e8 03 shr $0x3,%rax
35: 8a 04 38 mov (%rax,%rdi,1),%al
38: 84 c0 test %al,%al
3a: 0f 85 8a 0b 00 00 jne 0xbca