INFO: task kworker/u5:8:3661 blocked for more than 143 seconds.
Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:8 state:D stack:28136 pid: 3661 ppid: 2 flags:0x00004000
Workqueue: hci6 hci_power_on
Call Trace:
context_switch kernel/sched/core.c:5184 [inline]
__schedule+0xa09/0x4f10 kernel/sched/core.c:6496
schedule+0xd2/0x1f0 kernel/sched/core.c:6568
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6627
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa70/0x1350 kernel/locking/mutex.c:747
hci_dev_do_open+0x25/0x70 net/bluetooth/hci_core.c:480
hci_power_on+0x12e/0x630 net/bluetooth/hci_core.c:970
process_one_work+0x991/0x1610 kernel/workqueue.c:2289
worker_thread+0x665/0x1080 kernel/workqueue.c:2436
kthread+0x2e9/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
INFO: task syz-executor.5:11658 blocked for more than 143 seconds.
Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:27248 pid:11658 ppid: 3639 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5184 [inline]
__schedule+0xa09/0x4f10 kernel/sched/core.c:6496
schedule+0xd2/0x1f0 kernel/sched/core.c:6568
schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911
do_wait_for_common kernel/sched/completion.c:85 [inline]
__wait_for_common+0x378/0x530 kernel/sched/completion.c:106
__flush_work+0x56c/0xb10 kernel/workqueue.c:3075
__cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3162
hci_dev_close_sync+0x88/0x1140 net/bluetooth/hci_sync.c:4115
hci_dev_do_close+0x2d/0x70 net/bluetooth/hci_core.c:553
hci_unregister_dev+0x1bf/0x540 net/bluetooth/hci_core.c:2686
hci_uart_tty_close+0x23c/0x290 drivers/bluetooth/hci_ldisc.c:548
tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:456
tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:608
tty_ldisc_hangup+0x30b/0x680 drivers/tty/tty_ldisc.c:724
__tty_hangup.part.0+0x40a/0x830 drivers/tty/tty_io.c:637
__tty_hangup drivers/tty/tty_io.c:592 [inline]
tty_vhangup drivers/tty/tty_io.c:707 [inline]
tty_ioctl+0xccd/0x15e0 drivers/tty/tty_io.c:2718
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7fcf78489109
RSP: 002b:00007fcf79560168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fcf7859bf60 RCX: 00007fcf78489109
RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000004
RBP: 00007fcf784e305d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdc0e93c7f R14: 00007fcf79560300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8bd864f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8bd861f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
#0: ffffffff8bd87040 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491
2 locks held by getty/3288:
#0: ffff888026533098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc90002d162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2177
3 locks held by kworker/u5:8/3661:
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline]
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline]
#0: ffff88801d882938 ((wq_completion)hci6){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260
#1: ffffc9000396fda8 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264
#2: ffff88807b6e9048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open+0x25/0x70 net/bluetooth/hci_core.c:480
3 locks held by kworker/u4:10/4730:
3 locks held by syz-executor.5/11658:
#0: ffff88801ff2f1c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_lock+0xbd/0x120 drivers/tty/tty_mutex.c:20
#1: ffff88801ff2f098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline]
#1: ffff88801ff2f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x61/0xb0 drivers/tty/tty_ldisc.c:314
#2: ffff88807b6e9048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x25/0x70 net/bluetooth/hci_core.c:551
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
watchdog+0xc18/0xf50 kernel/hung_task.c:369
kthread+0x2e9/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:stack_access_ok+0xe1/0x1d0 arch/x86/kernel/unwind_orc.c:347
Code: c1 ea 03 80 3c 02 00 0f 85 e1 00 00 00 48 8b 73 28 48 89 da 48 89 ef e8 7d fb f5 ff 85 c0 74 0f 31 c0 48 83 c4 08 5b 5d 41 5c <41> 5d 41 5e c3 48 8d 7b 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa
RSP: 0018:ffffc90000146b30 EFLAGS: 00000286
RAX: ffffc90000148001 RBX: 0000000000000001 RCX: 0000000000000001
RDX: ffffc90000147e01 RSI: ffffc90000147e30 RDI: ffffc90000146bc8
RBP: ffffc90000146c00 R08: ffffffff8eb32f1c R09: ffffc90000146bec
R10: fffff52000028d82 R11: ffffc90000147e58 R12: ffffc90000146bed
R13: ffffc90000140000 R14: ffffc90000147e30 R15: ffffffff8eb32f20
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0228a19b8 CR3: 000000000ba8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
deref_stack_reg arch/x86/kernel/unwind_orc.c:352 [inline]
unwind_next_frame+0x12b4/0x1cc0 arch/x86/kernel/unwind_orc.c:600
arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:366 [inline]
____kasan_slab_free+0x166/0x1c0 mm/kasan/common.c:328
kasan_slab_free include/linux/kasan.h:200 [inline]
slab_free_hook mm/slub.c:1754 [inline]
slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1780
slab_free mm/slub.c:3534 [inline]
kmem_cache_free+0xeb/0x5b0 mm/slub.c:3551
kfree_skbmem+0xef/0x1b0 net/core/skbuff.c:705
kfree_skb_reason+0x85/0x110 include/linux/refcount.h:279
kfree_skb include/linux/skbuff.h:1198 [inline]
ip6_mc_input+0x9dd/0xed0 net/ipv6/ip6_input.c:587
dst_input include/net/dst.h:461 [inline]
ip6_rcv_finish+0x1ca/0x300 net/ipv6/ip6_input.c:76
ip_sabotage_in net/bridge/br_netfilter_hooks.c:872 [inline]
ip_sabotage_in+0x1fa/0x260 net/bridge/br_netfilter_hooks.c:863
nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
nf_hook_slow+0xc5/0x1f0 net/netfilter/core.c:620
nf_hook.constprop.0+0x3ac/0x650 include/linux/netfilter.h:262
NF_HOOK include/linux/netfilter.h:305 [inline]
ipv6_rcv+0x9e/0x3b0 net/ipv6/ip6_input.c:306
__netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5480
__netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5594
netif_receive_skb_internal net/core/dev.c:5680 [inline]
netif_receive_skb+0x12f/0x8d0 net/core/dev.c:5739
NF_HOOK include/linux/netfilter.h:307 [inline]
NF_HOOK include/linux/netfilter.h:301 [inline]
br_pass_frame_up+0x303/0x410 net/bridge/br_input.c:68
br_handle_frame_finish+0x92b/0x1af0 net/bridge/br_input.c:199
br_nf_hook_thresh+0x2a5/0x360 net/bridge/br_netfilter_hooks.c:1024
br_nf_pre_routing_finish_ipv6+0x695/0xe20 net/bridge/br_netfilter_ipv6.c:206
NF_HOOK include/linux/netfilter.h:307 [inline]
br_nf_pre_routing_ipv6+0x417/0x7c0 net/bridge/br_netfilter_ipv6.c:236
br_nf_pre_routing+0x14ef/0x1fd0 net/bridge/br_netfilter_hooks.c:505
nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline]
nf_hook_bridge_pre net/bridge/br_input.c:255 [inline]
br_handle_frame+0x9c9/0x12d0 net/bridge/br_input.c:399
__netif_receive_skb_core+0x9fe/0x38f0 net/core/dev.c:5374
__netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5478
__netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5594
process_backlog+0x3a0/0x7c0 net/core/dev.c:5922
__napi_poll+0xb3/0x6d0 net/core/dev.c:6506
napi_poll net/core/dev.c:6573 [inline]
net_rx_action+0x9c1/0xd90 net/core/dev.c:6684
__do_softirq+0x29b/0x9c2 kernel/softirq.c:571
run_ksoftirqd kernel/softirq.c:934 [inline]
run_ksoftirqd+0x2d/0x60 kernel/softirq.c:926
smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164
kthread+0x2e9/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
----------------
Code disassembly (best guess):
0: c1 ea 03 shr $0x3,%edx
3: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
7: 0f 85 e1 00 00 00 jne 0xee
d: 48 8b 73 28 mov 0x28(%rbx),%rsi
11: 48 89 da mov %rbx,%rdx
14: 48 89 ef mov %rbp,%rdi
17: e8 7d fb f5 ff callq 0xfff5fb99
1c: 85 c0 test %eax,%eax
1e: 74 0f je 0x2f
20: 31 c0 xor %eax,%eax
22: 48 83 c4 08 add $0x8,%rsp
26: 5b pop %rbx
27: 5d pop %rbp
28: 41 5c pop %r12
* 2a: 41 5d pop %r13 <-- trapping instruction
2c: 41 5e pop %r14
2e: c3 retq
2f: 48 8d 7b 08 lea 0x8(%rbx),%rdi
33: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
3a: fc ff df
3d: 48 89 fa mov %rdi,%rdx