bisecting fixing commit since cb95712138ec5e480db5160b41172bbc6f6494cc building syzkaller on cef5ae6814696260ff58c538a1b6044af90c5979 testing commit cb95712138ec5e480db5160b41172bbc6f6494cc with gcc (GCC) 8.1.0 kernel signature: 292fa100968031ef86b631f6b7bcc248fdf05f248f6765662fbb3dd9b8132f00 run #0: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #1: crashed: WARNING: locking bug in l2cap_sock_teardown_cb run #2: crashed: WARNING: locking bug in l2cap_sock_teardown_cb run #3: crashed: WARNING: locking bug in l2cap_sock_teardown_cb run #4: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #5: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #6: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #7: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #8: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #9: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb testing current HEAD 3644e2d2dda78e21edd8f5415b6d7ab03f5f54f3 testing commit 3644e2d2dda78e21edd8f5415b6d7ab03f5f54f3 with gcc (GCC) 8.1.0 kernel signature: 61cae1877c23ae2a21e6dc8cad80d03551bef471445e785e423033b00a02a6fc run #0: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #1: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #2: crashed: WARNING: locking bug in l2cap_sock_teardown_cb run #3: crashed: WARNING: refcount bug in l2cap_sock_kill run #4: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #5: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #6: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #7: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #8: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb run #9: crashed: INFO: trying to register non-static key in l2cap_sock_teardown_cb revisions tested: 2, total time: 16m59.470511542s (build: 9m21.092362513s, test: 6m54.197621524s) the crash still happens on HEAD commit msg: mm/filemap: fix infinite loop in generic_file_buffered_read() crash: INFO: trying to register non-static key in l2cap_sock_teardown_cb INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 2688 Comm: kworker/1:2 Not tainted 5.10.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events l2cap_chan_timeout Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xa3/0xc8 lib/dump_stack.c:120 assign_lock_key kernel/locking/lockdep.c:935 [inline] register_lock_class+0x575/0x580 kernel/locking/lockdep.c:1247 __lock_acquire+0x75/0x1770 kernel/locking/lockdep.c:4711 lock_acquire+0xf9/0x420 kernel/locking/lockdep.c:5437 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] lock_sock_nested+0x2c/0x90 net/core/sock.c:3049 l2cap_sock_teardown_cb+0x1f/0x130 net/bluetooth/l2cap_sock.c:1520 l2cap_chan_del+0x35/0x320 net/bluetooth/l2cap_core.c:618 l2cap_chan_close+0xfb/0x270 net/bluetooth/l2cap_core.c:823 l2cap_chan_timeout+0x70/0xe0 net/bluetooth/l2cap_core.c:436 process_one_work+0x293/0x600 kernel/workqueue.c:2275 worker_thread+0x38/0x380 kernel/workqueue.c:2421 kthread+0x145/0x170 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296