bisecting fixing commit since 5076190daded2197f62fe92cf69674488be44175 building syzkaller on 0a96a13cb96316b8374bb7d8dd0793bcaff166a0 testing commit 5076190daded2197f62fe92cf69674488be44175 with gcc (GCC) 8.1.0 kernel signature: 6012e4f52de7b20de29e46f318bd7e4ec16fdf6f378d61a176f53b23772b647c all runs: crashed: INFO: trying to register non-static key in prepare_to_wait_event testing current HEAD 152036d1379ffd6985262743dcf6b0f9c75f83a4 testing commit 152036d1379ffd6985262743dcf6b0f9c75f83a4 with gcc (GCC) 8.1.0 kernel signature: e62e1eb06ebadcb248e0d2167790957c1b6b8575fc05746129e4e62ef374481c all runs: crashed: INFO: trying to register non-static key in prepare_to_wait_event revisions tested: 2, total time: 20m57.215103814s (build: 12m49.341509813s, test: 6m35.931340448s) the crash still happens on HEAD commit msg: Merge tag 'nfsd-5.7-rc-2' of git://git.linux-nfs.org/projects/cel/cel-2.6 crash: INFO: trying to register non-static key in prepare_to_wait_event INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 8442 Comm: syz-executor.3 Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x128/0x182 lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:913 [inline] register_lock_class+0x1852/0x1860 kernel/locking/lockdep.c:1225 __lock_acquire+0x100/0x3690 kernel/locking/lockdep.c:4234 lock_acquire+0x1e3/0x970 kernel/locking/lockdep.c:4934 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x95/0xc0 kernel/locking/spinlock.c:159 prepare_to_wait_event+0x65/0x650 kernel/sched/wait.c:280 uhid_char_read+0x24c/0x5d1 drivers/hid/uhid.c:669 do_loop_readv_writev fs/read_write.c:715 [inline] do_iter_read+0x36b/0x580 fs/read_write.c:936 vfs_readv+0xc7/0x130 fs/read_write.c:1054 do_readv+0x214/0x280 fs/read_write.c:1091 do_syscall_64+0xc6/0x620 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45c849 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4c796c7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007f4c796c86d4 RCX: 000000000045c849 RDX: 0000000000000002 RSI: 0000000020001680 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000886 R14: 00000000004cb18c R15: 000000000076bf0c list_del corruption. prev->next should be ffffc90004bb7bb0, but was 0000000000000000 ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:53! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8442 Comm: syz-executor.3 Not tainted 5.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_del_entry_valid.cold.1+0x48/0x4d lib/list_debug.c:51 Code: 73 ce 87 e8 cb bd 07 fe 0f 0b 48 89 de 48 c7 c7 e0 74 ce 87 e8 ba bd 07 fe 0f 0b 48 89 de 48 c7 c7 80 74 ce 87 e8 a9 bd 07 fe <0f> 0b cc cc cc 41 57 41 56 41 55 41 54 55 48 bd 00 00 00 00 00 fc RSP: 0018:ffffc90004bb7a48 EFLAGS: 00010086 RAX: 0000000000000054 RBX: ffffc90004bb7bb0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000007 RDI: ffffffff8b8cf0e0 RBP: ffff888075d11210 R08: ffffed1015d245f1 R09: ffffed1015d245f1 R10: ffff8880ae922f83 R11: ffffed1015d245f0 R12: ffff888075d11210 R13: ffff888075d111d0 R14: ffffc90004bb7bb0 R15: 0000000000000001 FS: 00007f4c796c8700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005634d3449030 CR3: 000000009f383000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry include/linux/list.h:132 [inline] list_del_init include/linux/list.h:204 [inline] prepare_to_wait_event+0x1d4/0x650 kernel/sched/wait.c:294 uhid_char_read+0x24c/0x5d1 drivers/hid/uhid.c:669 do_loop_readv_writev fs/read_write.c:715 [inline] do_iter_read+0x36b/0x580 fs/read_write.c:936 vfs_readv+0xc7/0x130 fs/read_write.c:1054 do_readv+0x214/0x280 fs/read_write.c:1091 do_syscall_64+0xc6/0x620 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45c849 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4c796c7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 RAX: ffffffffffffffda RBX: 00007f4c796c86d4 RCX: 000000000045c849 RDX: 0000000000000002 RSI: 0000000020001680 RDI: 0000000000000003 RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000886 R14: 00000000004cb18c R15: 000000000076bf0c Modules linked in: ---[ end trace ca6aabf346a01fa6 ]--- RIP: 0010:__list_del_entry_valid.cold.1+0x48/0x4d lib/list_debug.c:51 Code: 73 ce 87 e8 cb bd 07 fe 0f 0b 48 89 de 48 c7 c7 e0 74 ce 87 e8 ba bd 07 fe 0f 0b 48 89 de 48 c7 c7 80 74 ce 87 e8 a9 bd 07 fe <0f> 0b cc cc cc 41 57 41 56 41 55 41 54 55 48 bd 00 00 00 00 00 fc RSP: 0018:ffffc90004bb7a48 EFLAGS: 00010086 RAX: 0000000000000054 RBX: ffffc90004bb7bb0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000007 RDI: ffffffff8b8cf0e0 RBP: ffff888075d11210 R08: ffffed1015d245f1 R09: ffffed1015d245f1 R10: ffff8880ae922f83 R11: ffffed1015d245f0 R12: ffff888075d11210 R13: ffff888075d111d0 R14: ffffc90004bb7bb0 R15: 0000000000000001 FS: 00007f4c796c8700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005634d3449030 CR3: 000000009f383000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400