INFO: task kworker/u5:0:15809 blocked for more than 143 seconds.
Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:0 state:D stack:27160 pid:15809 ppid: 2 flags:0x00004000
Workqueue: hci6 hci_power_on
Call Trace:
context_switch kernel/sched/core.c:5116 [inline]
__schedule+0x957/0xec0 kernel/sched/core.c:6431
schedule+0xeb/0x1b0 kernel/sched/core.c:6503
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6562
__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.4:15858 blocked for more than 143 seconds.
Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:26584 pid:15858 ppid: 3612 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5116 [inline]
__schedule+0x957/0xec0 kernel/sched/core.c:6431
schedule+0xeb/0x1b0 kernel/sched/core.c:6503
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_hangup+0x432/0x610 drivers/tty/tty_ldisc.c:724
__tty_hangup+0x494/0x6d0 drivers/tty/tty_io.c:637
tty_vhangup drivers/tty/tty_io.c:707 [inline]
tty_ioctl+0x606/0xc60 drivers/tty/tty_io.c:2718
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f29cbe89109
RSP: 002b:00007f29ccf6d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f29cbf9bf60 RCX: 00007f29cbe89109
RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000003
RBP: 00007f29cbee308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffb35d9adf R14: 00007f29ccf6d300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8cb1eea0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by klogd/2960:
#0: ffff8880b9b39b58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544
2 locks held by getty/3284:
#0: ffff88814a815098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc90002cd62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ad/0x1c90 drivers/tty/n_tty.c:2075
2 locks held by kworker/u4:4/12651:
#0: ffff8880b9a39b58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544
#1: ffffc900071d7d00 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
3 locks held by kworker/u5:0/15809:
#0: ffff888022ee9138 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#0: ffff888022ee9138 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90006eefd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffff888025c8d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline]
#2: ffff888025c8d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963
3 locks held by syz-executor.4/15858:
#0: ffff8880789d81c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: __tty_hangup+0xc3/0x6d0 drivers/tty/tty_io.c:597
#1: ffff8880789d8098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline]
#1: ffff8880789d8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x6a/0xb0 drivers/tty/tty_ldisc.c:314
#2: ffff888025c8d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline]
#2: ffff888025c8d048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1a9/0x460 net/bluetooth/hci_core.c:2685
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9 #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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 16 Comm: pr/ttyS0 Not tainted 5.18.0-syzkaller-12234-g50fd82b3a9a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:io_serial_in+0x71/0xb0 drivers/tty/serial/8250/8250_port.c:460
Code: 95 06 d7 fc 89 e9 41 d3 e6 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 96 ee 29 fd 44 03 33 44 89 f2 ec <0f> b6 c0 5b 41 5e 41 5f 5d c3 89 e9 80 e1 07 38 c1 7c ad 48 89 ef
RSP: 0018:ffffc900001578d0 EFLAGS: 00000002
RAX: 1ffffffff2319100 RBX: ffffffff918c89a0 RCX: 0000000000000000
RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000020
RBP: 0000000000000000 R08: ffffffff84b08661 R09: fffff5200002af10
R10: fffff5200002af11 R11: 1ffff9200002af10 R12: 0000000000000020
R13: ffffffff918c8960 R14: 00000000000003fd R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c006696b08 CR3: 0000000027ff1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
serial_in drivers/tty/serial/8250/8250.h:115 [inline]
wait_for_xmitr+0xec/0x280 drivers/tty/serial/8250/8250_port.c:2089
serial8250_console_putchar+0x19/0x50 drivers/tty/serial/8250/8250_port.c:3310
uart_console_write+0xb5/0x110 drivers/tty/serial/serial_core.c:1935
serial8250_console_write+0xb2d/0xf60 drivers/tty/serial/8250/8250_port.c:3382
call_console_driver kernel/printk/printk.c:2075 [inline]
__console_emit_next_record+0x82c/0xb30 kernel/printk/printk.c:2916
console_emit_next_record kernel/printk/printk.c:3721 [inline]
printk_kthread_func+0x9d8/0xd20 kernel/printk/printk.c:3837
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
----------------
Code disassembly (best guess), 2 bytes skipped:
0: d7 xlat %ds:(%rbx)
1: fc cld
2: 89 e9 mov %ebp,%ecx
4: 41 d3 e6 shl %cl,%r14d
7: 48 83 c3 40 add $0x40,%rbx
b: 48 89 d8 mov %rbx,%rax
e: 48 c1 e8 03 shr $0x3,%rax
12: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1)
17: 74 08 je 0x21
19: 48 89 df mov %rbx,%rdi
1c: e8 96 ee 29 fd callq 0xfd29eeb7
21: 44 03 33 add (%rbx),%r14d
24: 44 89 f2 mov %r14d,%edx
27: ec in (%dx),%al
* 28: 0f b6 c0 movzbl %al,%eax <-- trapping instruction
2b: 5b pop %rbx
2c: 41 5e pop %r14
2e: 41 5f pop %r15
30: 5d pop %rbp
31: c3 retq
32: 89 e9 mov %ebp,%ecx
34: 80 e1 07 and $0x7,%cl
37: 38 c1 cmp %al,%cl
39: 7c ad jl 0xffffffe8
3b: 48 89 ef mov %rbp,%rdi