bisecting fixing commit since 152036d1379ffd6985262743dcf6b0f9c75f83a4 building syzkaller on 160c7698277b071db0da01116b9ff94e51ebfd8a testing commit 152036d1379ffd6985262743dcf6b0f9c75f83a4 with gcc (GCC) 8.1.0 kernel signature: f63896129e1f0a0bf63f450d7ff1b2e50387a00770c5cad79dbcc7cedccc242a all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy testing current HEAD 2ac69819ba9e3d8d550bb5d2d2df74848e556812 testing commit 2ac69819ba9e3d8d550bb5d2d2df74848e556812 with gcc (GCC) 8.1.0 kernel signature: 6978a6f3ec86c3ff6d475628fb0aa40c9872850e03cb83eb8d929f462660e739 all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy revisions tested: 2, total time: 21m25.655276424s (build: 10m0.362940625s, test: 10m39.017250148s) the crash still happens on HEAD commit msg: Merge tag 'nfsd-5.9-1' of git://git.linux-nfs.org/projects/cel/cel-2.6 crash: INFO: trying to register non-static key in uhid_dev_destroy INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 4677 Comm: syz-executor.1 Not tainted 5.9.0-rc2-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+0xb3/0xec lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:894 [inline] register_lock_class+0x575/0x580 kernel/locking/lockdep.c:1206 __lock_acquire+0x75/0x16c0 kernel/locking/lockdep.c:4305 lock_acquire+0xd0/0x3e0 kernel/locking/lockdep.c:5005 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x55/0x70 kernel/locking/spinlock.c:159 __wake_up_common_lock+0x5c/0xb0 kernel/sched/wait.c:122 uhid_dev_destroy+0x2c/0x60 drivers/hid/uhid.c:563 uhid_char_release+0x1b/0x50 drivers/hid/uhid.c:642 __fput+0xaa/0x250 fs/file_table.c:281 task_work_run+0x68/0xb0 kernel/task_work.c:141 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:140 [inline] exit_to_user_mode_prepare+0x1e2/0x1f0 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x59/0x2b0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416421 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fffa3c9a790 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416421 RDX: 0000000000000001 RSI: 0000000000790460 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00007fffa3c9a880 R11: 0000000000000293 R12: 0000000000790560 R13: 000000000001702c R14: ffffffffffffffff R15: 000000000078bfac BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 10b941067 P4D 10b941067 PUD 10ad7a067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 4677 Comm: syz-executor.1 Not tainted 5.9.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0x57/0x1a0 kernel/sched/wait.c:86 Code: 00 4d 85 e4 74 0b 41 f6 04 24 04 0f 85 97 00 00 00 48 8b 43 40 48 83 c3 40 4c 8d 48 e8 49 8d 41 18 48 39 c3 0f 84 e1 00 00 00 <49> 8b 41 18 89 6c 24 08 31 ed 4c 8d 70 e8 45 8b 29 41 f6 c5 04 75 RSP: 0018:ffffc90002ba7dd0 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffff88810e0ad438 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff88810e0ad3f8 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffffffffffe8 R10: 0000000037373634 R11: 0000000037363454 R12: ffffc90002ba7e18 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000001e72940(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010b940000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock+0x75/0xb0 kernel/sched/wait.c:123 uhid_dev_destroy+0x2c/0x60 drivers/hid/uhid.c:563 uhid_char_release+0x1b/0x50 drivers/hid/uhid.c:642 __fput+0xaa/0x250 fs/file_table.c:281 task_work_run+0x68/0xb0 kernel/task_work.c:141 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:140 [inline] exit_to_user_mode_prepare+0x1e2/0x1f0 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x59/0x2b0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416421 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fffa3c9a790 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416421 RDX: 0000000000000001 RSI: 0000000000790460 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 00007fffa3c9a880 R11: 0000000000000293 R12: 0000000000790560 R13: 000000000001702c R14: ffffffffffffffff R15: 000000000078bfac Modules linked in: CR2: 0000000000000000 ---[ end trace 5a02dff60e0674f4 ]--- RIP: 0010:__wake_up_common+0x57/0x1a0 kernel/sched/wait.c:86 Code: 00 4d 85 e4 74 0b 41 f6 04 24 04 0f 85 97 00 00 00 48 8b 43 40 48 83 c3 40 4c 8d 48 e8 49 8d 41 18 48 39 c3 0f 84 e1 00 00 00 <49> 8b 41 18 89 6c 24 08 31 ed 4c 8d 70 e8 45 8b 29 41 f6 c5 04 75 RSP: 0018:ffffc90002ba7dd0 EFLAGS: 00010082 RAX: 0000000000000000 RBX: ffff88810e0ad438 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffff88810e0ad3f8 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffffffffffe8 R10: 0000000037373634 R11: 0000000037363454 R12: ffffc90002ba7e18 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000001e72940(0000) GS:ffff88812c000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010b940000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400