BUG: sleeping function called from invalid context at net/bluetooth/hci_sync.c:169 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5064, name: kworker/u5:3 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 0 PID: 5064 Comm: kworker/u5:3 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: hci2 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 __might_resched+0x5cf/0x780 kernel/sched/core.c:10187 __hci_cmd_sync_sk+0x7fc/0x1080 net/bluetooth/hci_sync.c:167 __hci_cmd_sync_status_sk net/bluetooth/hci_sync.c:248 [inline] __hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline] hci_le_terminate_big_sync+0xd2/0x210 net/bluetooth/hci_sync.c:1673 hci_le_create_big_complete_evt+0x862/0xa10 net/bluetooth/hci_event.c:7073 hci_event_func net/bluetooth/hci_event.c:7635 [inline] hci_event_packet+0x90a/0x1360 net/bluetooth/hci_event.c:7690 hci_rx_work+0x453/0xaa0 net/bluetooth/hci_core.c:4094 process_one_work+0x781/0x1130 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0xabf/0x1060 kernel/workqueue.c:2784 kthread+0x2b8/0x350 kernel/kthread.c:388 ret_from_fork+0x48/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: 0 PID: 5064 at kernel/rcu/tree_plugin.h:320 rcu_note_context_switch+0xce4/0xfb0 kernel/rcu/tree_plugin.h:320 Modules linked in: CPU: 0 PID: 5064 Comm: kworker/u5:3 Tainted: G W 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: hci2 hci_rx_work RIP: 0010:rcu_note_context_switch+0xce4/0xfb0 kernel/rcu/tree_plugin.h:320 Code: c7 02 00 00 41 80 3e 00 75 85 4c 89 ef e8 44 18 fe ff e9 78 ff ff ff c6 05 99 71 0e 0d 01 48 c7 c7 c0 f3 0b 8b e8 1c 2a dd ff <0f> 0b e9 4c f4 ff ff 0f 0b 45 84 ed 0f 84 13 f4 ff ff e9 3c f4 ff RSP: 0018:ffffc90003d2f240 EFLAGS: 00010046 RAX: 02499e3b64c8e900 RBX: ffff88807aa7bfbc RCX: 0000000000040000 RDX: ffffc90014144000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc90003d2f390 R08: ffffffff81542432 R09: 1ffff920007a5db4 R10: dffffc0000000000 R11: fffff520007a5db5 R12: ffff88807aa7bb80 R13: 0000000000000000 R14: 1ffff920007a5e60 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff131f9d988 CR3: 0000000066200000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __schedule+0x345/0x48f0 kernel/sched/core.c:6595 schedule+0xc3/0x180 kernel/sched/core.c:6771 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167 __hci_cmd_sync_sk+0x91b/0x1080 net/bluetooth/hci_sync.c:167 __hci_cmd_sync_status_sk net/bluetooth/hci_sync.c:248 [inline] __hci_cmd_sync_status net/bluetooth/hci_sync.c:274 [inline] hci_le_terminate_big_sync+0xd2/0x210 net/bluetooth/hci_sync.c:1673 hci_le_create_big_complete_evt+0x862/0xa10 net/bluetooth/hci_event.c:7073 hci_event_func net/bluetooth/hci_event.c:7635 [inline] hci_event_packet+0x90a/0x1360 net/bluetooth/hci_event.c:7690 hci_rx_work+0x453/0xaa0 net/bluetooth/hci_core.c:4094 process_one_work+0x781/0x1130 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0xabf/0x1060 kernel/workqueue.c:2784 kthread+0x2b8/0x350 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304