BUG: sleeping function called from invalid context at net/bluetooth/hci_sync.c:167
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5100, name: kworker/u5:2
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
4 locks held by kworker/u5:2/5100:
#0: ffff88801f986538 ((wq_completion)hci3#2){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc90003c7fd80 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff8880777a0078 (&hdev->lock){+.+.}-{3:3}, at: hci_le_create_big_complete_evt+0xde/0xb20 net/bluetooth/hci_event.c:7036
#3: ffffffff8cbaada0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
#3: ffffffff8cbaada0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
#3: ffffffff8cbaada0 (rcu_read_lock){....}-{1:2}, at: hci_le_create_big_complete_evt+0x100/0xb20 net/bluetooth/hci_event.c:7037
CPU: 1 PID: 5100 Comm: kworker/u5:2 Not tainted 6.6.0-rc2-next-20230921-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: hci3 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+0x3c3/0x5e0 kernel/sched/core.c:10144
__hci_cmd_sync_sk+0x374/0xf90 net/bluetooth/hci_sync.c:167
__hci_cmd_sync_status_sk+0x48/0x190 net/bluetooth/hci_sync.c:248
__hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline]
hci_le_terminate_big_sync+0xb2/0xe0 net/bluetooth/hci_sync.c:1668
hci_le_create_big_complete_evt+0x70c/0xb20 net/bluetooth/hci_event.c:7073
hci_le_meta_evt+0x2e2/0x5d0 net/bluetooth/hci_event.c:7332
hci_event_func net/bluetooth/hci_event.c:7662 [inline]
hci_event_packet+0x664/0x1160 net/bluetooth/hci_event.c:7717
hci_rx_work+0x2c4/0x1610 net/bluetooth/hci_core.c:4102
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
------------[ cut here ]------------
Voluntary context switch within RCU read-side critical section!
WARNING: CPU: 1 PID: 5100 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: 5100 Comm: kworker/u5:2 Tainted: G W 6.6.0-rc2-next-20230921-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: hci3 hci_rx_work
RIP: 0010:rcu_note_context_switch+0xbfc/0x1ac0 kernel/rcu/tree_plugin.h:320
Code: 9a 3f 6c 00 4c 8b 54 24 30 48 8b 44 24 28 8b 4c 24 10 e9 24 04 00 00 48 c7 c7 40 71 8e 8a c6 05 a7 54 46 0d 01 e8 b4 9f db 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:ffffc90003c7f490 EFLAGS: 00010082
RAX: 0000000000000000 RBX: ffff8880b993d640 RCX: ffffc90004312000
RDX: 0000000000040000 RSI: ffffffff814e0c56 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888022290000
R13: ffff888022290000 R14: ffff888022290000 R15: ffff8880b993c700
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f879fc85dc0 CR3: 0000000063961000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__schedule+0x293/0x5a00 kernel/sched/core.c:6577
__schedule_loop kernel/sched/core.c:6756 [inline]
schedule+0xe9/0x280 kernel/sched/core.c:6771
schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167
__hci_cmd_sync_sk+0x5d3/0xf90 net/bluetooth/hci_sync.c:167
__hci_cmd_sync_status_sk+0x48/0x190 net/bluetooth/hci_sync.c:248
__hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline]
hci_le_terminate_big_sync+0xb2/0xe0 net/bluetooth/hci_sync.c:1668
hci_le_create_big_complete_evt+0x70c/0xb20 net/bluetooth/hci_event.c:7073
hci_le_meta_evt+0x2e2/0x5d0 net/bluetooth/hci_event.c:7332
hci_event_func net/bluetooth/hci_event.c:7662 [inline]
hci_event_packet+0x664/0x1160 net/bluetooth/hci_event.c:7717
hci_rx_work+0x2c4/0x1610 net/bluetooth/hci_core.c:4102
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