BUG: sleeping function called from invalid context at net/bluetooth/hci_sync.c:167
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5077, name: kworker/u5:5
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
4 locks held by kworker/u5:5/5077:
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:678 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:705 [inline]
#0: ffff888016739138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work+0x96a/0x16f0 kernel/workqueue.c:2570
#1: ffffc9000460fd80 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x99e/0x16f0 kernel/workqueue.c:2574
#2: ffff88807d1d8078 (&hdev->lock){+.+.}-{3:3}, at: hci_le_create_big_complete_evt+0xdd/0xab0 net/bluetooth/hci_event.c:6989
#3: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: hci_le_ev_skb_pull net/bluetooth/hci_event.c:79 [inline]
#3: ffffffff8c9a65c0 (rcu_read_lock){....}-{1:2}, at: hci_le_create_big_complete_evt+0xc4/0xab0 net/bluetooth/hci_event.c:6985
CPU: 1 PID: 5077 Comm: kworker/u5:5 Not tainted 6.5.0-rc1-next-20230712-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Workqueue: hci0 hci_rx_work
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
__might_resched+0x358/0x580 kernel/sched/core.c:10188
__hci_cmd_sync_sk+0x364/0xe40 net/bluetooth/hci_sync.c:167
__hci_cmd_sync_status_sk+0x48/0x160 net/bluetooth/hci_sync.c:248
__hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline]
hci_le_terminate_big_sync+0xab/0xe0 net/bluetooth/hci_sync.c:1673
hci_le_create_big_complete_evt+0x6fd/0xab0 net/bluetooth/hci_event.c:7024
hci_le_meta_evt+0x2bc/0x510 net/bluetooth/hci_event.c:7237
hci_event_func net/bluetooth/hci_event.c:7567 [inline]
hci_event_packet+0x642/0xfd0 net/bluetooth/hci_event.c:7622
hci_rx_work+0x2c4/0x13f0 net/bluetooth/hci_core.c:4090
process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
worker_thread+0x687/0x1110 kernel/workqueue.c:2751
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
Voluntary context switch within RCU read-side critical section!
WARNING: CPU: 1 PID: 5077 at kernel/rcu/tree_plugin.h:320 rcu_note_context_switch+0xbfc/0x1ac0 kernel/rcu/tree_plugin.h:320
Modules linked in:
CPU: 1 PID: 5077 Comm: kworker/u5:5 Tainted: G W 6.5.0-rc1-next-20230712-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Workqueue: hci0 hci_rx_work
RIP: 0010:rcu_note_context_switch+0xbfc/0x1ac0 kernel/rcu/tree_plugin.h:320
Code: fa ec 68 00 4c 8b 54 24 30 48 8b 44 24 28 8b 4c 24 10 e9 24 04 00 00 48 c7 c7 80 3e 6e 8a c6 05 13 94 25 0d 01 e8 84 68 dc ff <0f> 0b e9 0c f5 ff ff 81 e5 ff ff ff 7f 0f 84 ab f6 ff ff 65 48 8b
RSP: 0018:ffffc9000460f498 EFLAGS: 00010086
RAX: 0000000000000000 RBX: ffff8880b993d340 RCX: ffffc90015131000
RDX: 0000000000040000 RSI: ffffffff814cde97 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: fffffffffffc47c0 R12: ffff8880282f9dc0
R13: ffff8880282f9dc0 R14: ffff8880282f9dc0 R15: ffff8880b993c440
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 000000002d7e7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__schedule+0x27d/0x59d0 kernel/sched/core.c:6609
schedule+0xe7/0x1b0 kernel/sched/core.c:6785
schedule_timeout+0x148/0x2b0 kernel/time/timer.c:2167
__hci_cmd_sync_sk+0x552/0xe40 net/bluetooth/hci_sync.c:167
__hci_cmd_sync_status_sk+0x48/0x160 net/bluetooth/hci_sync.c:248
__hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline]
hci_le_terminate_big_sync+0xab/0xe0 net/bluetooth/hci_sync.c:1673
hci_le_create_big_complete_evt+0x6fd/0xab0 net/bluetooth/hci_event.c:7024
hci_le_meta_evt+0x2bc/0x510 net/bluetooth/hci_event.c:7237
hci_event_func net/bluetooth/hci_event.c:7567 [inline]
hci_event_packet+0x642/0xfd0 net/bluetooth/hci_event.c:7622
hci_rx_work+0x2c4/0x13f0 net/bluetooth/hci_core.c:4090
process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
worker_thread+0x687/0x1110 kernel/workqueue.c:2751
kthread+0x33a/0x430 kernel/kthread.c:389
ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:296
RIP: 0000:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000