BUG: sleeping function called from invalid context at net/core/sock.c:3056 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 2776, name: syz-executor 1 lock held by syz-executor/2776: #0: ffffffff87780900 (hci_sk_list.lock){++++}-{2:2}, at: hci_sock_dev_event+0x34a/0x5c0 net/bluetooth/hci_sock.c:763 CPU: 0 PID: 2776 Comm: syz-executor Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xa5/0xe6 lib/dump_stack.c:120 ___might_sleep.cold+0x141/0x16f kernel/sched/core.c:8338 lock_sock_nested+0x1e/0xf0 net/core/sock.c:3056 lock_sock include/net/sock.h:1610 [inline] hci_sock_dev_event+0x3c0/0x5c0 net/bluetooth/hci_sock.c:765 hci_unregister_dev+0x29b/0xfb0 net/bluetooth/hci_core.c:4013 vhci_release+0x62/0xd0 drivers/bluetooth/hci_vhci.c:340 __fput+0x1ff/0x870 fs/file_table.c:280 task_work_run+0xc9/0x170 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xa1b/0x2480 kernel/exit.c:826 do_group_exit+0xe7/0x2a0 kernel/exit.c:923 get_signal+0x3ad/0x1be0 kernel/signal.c:2818 arch_do_signal_or_restart+0x2b1/0x18b0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x164/0x230 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x1a/0x60 kernel/entry/common.c:301 do_syscall_64+0x4f/0x80 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f679f50e8fc Code: Unable to access opcode bytes at RIP 0x7f679f50e8d2. RSP: 002b:00007ffd4ec235b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffe00 RBX: 0000000000000003 RCX: 00007f679f50e8fc RDX: 0000000000000028 RSI: 00007ffd4ec23660 RDI: 00000000000000f9 RBP: 00007ffd4ec2360c R08: 0000000000000000 R09: 00007ffd4ec23327 R10: 00007ffd4ec22f70 R11: 0000000000000246 R12: 00007f679f67bf68 R13: 00000000000129ad R14: 00000000000129ad R15: 00007ffd4ec23660 BUG: scheduling while atomic: syz-executor/2776/0x00000002 1 lock held by syz-executor/2776: #0: ffffffff87780900 (hci_sk_list.lock){++++}-{2:2}, at: hci_sock_dev_event+0x34a/0x5c0 net/bluetooth/hci_sock.c:763 Modules linked in: