bisecting fixing commit since 4520f06b03ae667e442da1ab9351fd28cd7ac598 building syzkaller on db9bcd4b9fd510dc1b4b2b2021180c8432844b9b testing commit 4520f06b03ae667e442da1ab9351fd28cd7ac598 with gcc (GCC) 8.1.0 kernel signature: 41c1ba2da4ec9e167b44486c7c6e84f7a03888c7170a0d571deff70956c2181d all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy testing current HEAD a41ba30d9df20fe141c92aacbb56b6b077f19716 testing commit a41ba30d9df20fe141c92aacbb56b6b077f19716 with gcc (GCC) 8.1.0 kernel signature: cb216c638292c41ef820de1e68685ebe7e5207c771bf5acbbf775e81c91e93be all runs: crashed: INFO: trying to register non-static key in uhid_dev_destroy revisions tested: 2, total time: 26m44.431386662s (build: 15m58.913487813s, test: 9m35.077574666s) the crash still happens on HEAD commit msg: Linux 4.14.181 crash: INFO: trying to register non-static key in uhid_dev_destroy hid-generic 0000:0000:0000.0E8F: ignoring exceeding usage max hid-generic 0000:0000:0000.0E8F: hidraw0: HID v0.00 Device [syz1] on hid-generic 0000:0000:0000.0E90: ignoring exceeding usage max hid-generic 0000:0000:0000.0E91: ignoring exceeding usage max hid-generic 0000:0000:0000.0E91: hidraw1: HID v0.00 Device [syz1] on INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 12783 Comm: syz-executor.5 Not tainted 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xf7/0x13b lib/dump_stack.c:58 register_lock_class+0x39c/0x1cd0 kernel/locking/lockdep.c:768 __lock_acquire+0x14f/0x4500 kernel/locking/lockdep.c:3378 lock_acquire+0x173/0x400 kernel/locking/lockdep.c:3998 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x99/0xd0 kernel/locking/spinlock.c:160 __wake_up_common_lock+0xb2/0x170 kernel/sched/wait.c:124 __wake_up+0xe/0x10 kernel/sched/wait.c:149 uhid_dev_destroy+0x57/0xe0 drivers/hid/uhid.c:566 hid-generic 0000:0000:0000.0E90: hidraw2: HID v0.00 Device [syz1] on uhid_char_release+0x4d/0xb0 drivers/hid/uhid.c:645 __fput+0x232/0x750 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x16a/0x1b0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x416421 RSP: 002b:00007fffd24d77e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 hid-generic 0000:0000:0000.0E92: ignoring exceeding usage max RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416421 RDX: 0000001b2f720000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00ffffffffffffff R09: 00ffffffffffffff R10: 00007fffd24d78c0 R11: 0000000000000293 R12: 000000000076bf00 R13: 00000000007716a0 R14: 000000000002acab R15: 000000000076bf0c kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 12783 Comm: syz-executor.5 Not tainted 4.14.181-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809d21e140 task.stack: ffff88807a158000 RIP: 0010:__wake_up_common+0x9a/0x580 kernel/sched/wait.c:90 RSP: 0018:ffff88807a15fc58 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880768328c8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88807a15fcb0 R08: ffffffffffffffe8 R09: ffff88807a15fcf0 R10: fffffbfff1346023 R11: ffff88809d21e140 R12: ffff888076832900 R13: 0000000000000286 R14: 0000000000000000 R15: ffff88809b985028 FS: 0000000002a4d940(0000) GS:ffff8880aec00000(0000) knlGS:0000000000000000 hid-generic 0000:0000:0000.0E92: hidraw2: HID v0.00 Device [syz1] on CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004d8730 CR3: 00000000a9a48000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock+0xd6/0x170 kernel/sched/wait.c:125 __wake_up+0xe/0x10 kernel/sched/wait.c:149 uhid_dev_destroy+0x57/0xe0 drivers/hid/uhid.c:566 uhid_char_release+0x4d/0xb0 drivers/hid/uhid.c:645 __fput+0x232/0x750 fs/file_table.c:210 hid-generic 0000:0000:0000.0E93: ignoring exceeding usage max ____fput+0x9/0x10 fs/file_table.c:244 hid-generic 0000:0000:0000.0E93: hidraw2: HID v0.00 Device [syz1] on task_work_run+0xe5/0x170 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x16a/0x1b0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x416421 RSP: 002b:00007fffd24d77e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 hid-generic 0000:0000:0000.0E95: ignoring exceeding usage max RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000416421 hid-generic 0000:0000:0000.0E94: ignoring exceeding usage max RDX: 0000001b2f720000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 0000000000000001 R08: 00ffffffffffffff R09: 00ffffffffffffff R10: 00007fffd24d78c0 R11: 0000000000000293 R12: 000000000076bf00 R13: 00000000007716a0 R14: 000000000002acab R15: 000000000076bf0c Code: 85 7c 04 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 49 39 fc 0f 84 5c 02 00 00 48 b8 00 00 00 00 00 fc hid-generic 0000:0000:0000.0E95: hidraw2: HID v0.00 Device [syz1] on ff hid-generic 0000:0000:0000.0E94: hidraw3: HID v0.00 Device [syz1] on df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 5f 04 00 00 49 8b 40 18 89 55 b8 31 db 49 be RIP: __wake_up_common+0x9a/0x580 kernel/sched/wait.c:90 RSP: ffff88807a15fc58 ---[ end trace 3f04daa7f589f7e1 ]---