bisecting fixing commit since 009c9aa5be652675a06d5211e1640e02bbb1c33d building syzkaller on 58636922b10dbf25b5f1a05a838229aa900fed16 testing commit 009c9aa5be652675a06d5211e1640e02bbb1c33d with gcc (GCC) 10.2.1 20210217 kernel signature: 8983b2f55f1866eb6489ae4d16a16f69468e86d66fa38322790bcd6cb7f63d90 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested testing current HEAD e9338abf0e186336022293d2e454c106761f262b testing commit e9338abf0e186336022293d2e454c106761f262b with gcc (GCC) 10.2.1 20210217 kernel signature: 60d18363b4fc0973dcd46e0a16fe669de1ec974592630e38e8860eb64f95289d all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested revisions tested: 2, total time: 23m16.575189652s (build: 14m23.040105674s, test: 8m17.944180788s) the crash still happens on HEAD commit msg: Merge tag 'Wimplicit-fallthrough-clang-5.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux crash: BUG: sleeping function called from invalid context in lock_sock_nested BUG: sleeping function called from invalid context at net/core/sock.c:3161 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 12078, name: syz-executor.3 1 lock held by syz-executor.3/12078: #0: ffffffff8c40c640 (hci_sk_list.lock){++++}-{2:2}, at: hci_sock_dev_event+0x374/0x5c0 net/bluetooth/hci_sock.c:763 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 12078 Comm: syz-executor.3 Not tainted 5.14.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 ___might_sleep.cold+0x1f1/0x237 kernel/sched/core.c:9154 lock_sock_nested+0x1e/0xf0 net/core/sock.c:3161 lock_sock include/net/sock.h:1613 [inline] hci_sock_dev_event+0x3ea/0x5c0 net/bluetooth/hci_sock.c:765 hci_unregister_dev+0x29b/0xfb0 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 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0x9fe/0x24e0 kernel/exit.c:825 do_group_exit+0xe7/0x290 kernel/exit.c:922 __do_sys_exit_group kernel/exit.c:933 [inline] __se_sys_exit_group kernel/exit.c:931 [inline] __x64_sys_exit_group+0x35/0x40 kernel/exit.c:931 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: Unable to access opcode bytes at RIP 0x4665af. RSP: 002b:00007ffd52cfc768 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000043 RBP: 0000000000000000 R08: 0000000000000014 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004bfe04 R13: 0000000000000000 R14: 0000000000000002 R15: 00007ffd52cfc960 ======================================================