BUG: sleeping function called from invalid context at net/core/sock.c:3100 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 7421, name: syz-executor.2 1 lock held by syz-executor.2/7421: #0: ffffffff8a43da60 (hci_sk_list.lock){++++}-{2:2}, at: hci_sock_dev_event+0x344/0x530 net/bluetooth/hci_sock.c:763 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 7421 Comm: syz-executor.2 Not tainted 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack_lvl+0xbd/0xe2 lib/dump_stack.c:96 ___might_sleep.cold+0x1f8/0x23e kernel/sched/core.c:9153 lock_sock_nested+0x1e/0xf0 net/core/sock.c:3100 lock_sock include/net/sock.h:1610 [inline] hci_sock_dev_event+0x3a9/0x530 net/bluetooth/hci_sock.c:765 hci_unregister_dev+0x28a/0xe60 net/bluetooth/hci_core.c:4033 vhci_release+0x62/0xd0 drivers/bluetooth/hci_vhci.c:340 __fput+0x209/0x870 fs/file_table.c:280 task_work_run+0xc0/0x160 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x278/0x280 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x40/0x70 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x41760b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffdd0d126a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 000000000041760b RDX: 0000000000000000 RSI: 00000000005602a8 RDI: 0000000000000003 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000001b33a20070 R10: 00007ffdd0d12770 R11: 0000000000000293 R12: 00000000000003e8 R13: 000000000055bf0c R14: 000000000055bf00 R15: 000000000055bf00 ======================================================