bisecting fixing commit since 87335852c5d9ec629f80bb2257b9a9945962b719 building syzkaller on a0092f9dfdd33924abe5cf5565e4ec4748217c7b testing commit 87335852c5d9ec629f80bb2257b9a9945962b719 with gcc (GCC) 8.4.1 20210217 kernel signature: 704eadaec17016248553b429600c6701485c042bf445f2285220bc4ba50b529c run #0: crashed: WARNING in pm_qos_remove_request run #1: crashed: WARNING in pm_qos_remove_request run #2: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #3: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #4: crashed: WARNING in pm_qos_remove_request run #5: crashed: BUG: unable to handle kernel paging request in pm_qos_update_target run #6: crashed: WARNING in pm_qos_remove_request run #7: crashed: WARNING in pm_qos_remove_request run #8: crashed: WARNING in pm_qos_remove_request run #9: crashed: WARNING in pm_qos_remove_request run #10: crashed: WARNING in pm_qos_remove_request run #11: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #12: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #13: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #14: crashed: WARNING in pm_qos_remove_request run #15: crashed: WARNING in pm_qos_remove_request run #16: crashed: WARNING in pm_qos_remove_request run #17: crashed: WARNING in pm_qos_remove_request run #18: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #19: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync testing current HEAD 3242aa3a635c0958671ee1e4b0958dcc7c4e5c79 testing commit 3242aa3a635c0958671ee1e4b0958dcc7c4e5c79 with gcc (GCC) 8.4.1 20210217 kernel signature: 35ae1df59d378a133181570e2b62eb69820a5fbef98a9206795799f4aa08bfe1 run #0: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #1: crashed: WARNING in pm_qos_remove_request run #2: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #3: crashed: BUG: unable to handle kernel paging request in pm_qos_update_target run #4: crashed: BUG: unable to handle kernel paging request in pm_qos_update_target run #5: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #6: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync run #7: crashed: WARNING in pm_qos_remove_request run #8: crashed: WARNING in pm_qos_remove_request run #9: crashed: INFO: trying to register non-static key in cancel_delayed_work_sync revisions tested: 2, total time: 24m57.902483322s (build: 14m56.305220544s, test: 9m5.47098652s) the crash still happens on HEAD commit msg: Linux 4.14.222 crash: INFO: trying to register non-static key in cancel_delayed_work_sync Bluetooth: hci1 command 0x0406 tx timeout Bluetooth: hci5 command 0x0406 tx timeout Bluetooth: hci2 command 0x0406 tx timeout Bluetooth: hci0 command 0x0406 tx timeout Bluetooth: hci3 command 0x0406 tx timeout INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 27892 Comm: syz-executor.1 Not tainted 4.14.222-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+0x14b/0x1e7 lib/dump_stack.c:58 register_lock_class+0x3bd/0x19a0 kernel/locking/lockdep.c:768 __lock_acquire+0x18b/0x42d0 kernel/locking/lockdep.c:3378 lock_acquire+0x17e/0x3e0 kernel/locking/lockdep.c:3998 flush_work+0xa0/0x760 kernel/workqueue.c:2889 __cancel_work_timer+0x2ef/0x420 kernel/workqueue.c:2964 cancel_delayed_work_sync+0xe/0x10 kernel/workqueue.c:3084 pm_qos_remove_request+0x56/0x3e0 kernel/power/qos.c:538 snd_pcm_hw_free sound/core/pcm_native.c:795 [inline] snd_pcm_common_ioctl+0xac7/0x1bf0 sound/core/pcm_native.c:2924 snd_pcm_ioctl+0x66/0xb0 sound/core/pcm_native.c:3003 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x465889 RSP: 002b:00007f2ad20c7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000055bfa8 RCX: 0000000000465889 RDX: 0000000000000000 RSI: 0000000000004112 RDI: 0000000000000005 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bfa8 R13: 00007ffe61b28fcf R14: 00007f2ad20c7300 R15: 0000000000022000 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: 27892 Comm: syz-executor.1 Not tainted 4.14.222-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff888087cc8680 task.stack: ffff888087a48000 RIP: 0010:__read_once_size include/linux/compiler.h:183 [inline] RIP: 0010:list_empty include/linux/list.h:203 [inline] RIP: 0010:plist_head_empty include/linux/plist.h:214 [inline] RIP: 0010:pm_qos_get_value kernel/power/qos.c:154 [inline] RIP: 0010:pm_qos_update_target+0x3e/0x8d0 kernel/power/qos.c:281 RSP: 0018:ffff888087a4fba0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f66204 RBP: ffff888087a4fbd8 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: ffff888087cc8680 R12: ffffffff8af5dac0 R13: 0000000000000000 R14: ffff8880a5aaa040 R15: 00000000ffffffff FS: 00007f2ad20c7700(0000) GS:ffff8880ba600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000539038 CR3: 000000008f2a7000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pm_qos_remove_request+0xfc/0x3e0 kernel/power/qos.c:541 snd_pcm_hw_free sound/core/pcm_native.c:795 [inline] snd_pcm_common_ioctl+0xac7/0x1bf0 sound/core/pcm_native.c:2924 snd_pcm_ioctl+0x66/0xb0 sound/core/pcm_native.c:3003 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x465889 RSP: 002b:00007f2ad20c7188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000055bfa8 RCX: 0000000000465889 RDX: 0000000000000000 RSI: 0000000000004112 RDI: 0000000000000005 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bfa8 R13: 00007ffe61b28fcf R14: 00007f2ad20c7300 R15: 0000000000022000 Code: 48 89 fb 48 c7 c7 00 62 f6 88 48 83 ec 10 89 55 d4 e8 37 60 f1 05 48 89 da 48 89 45 c8 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 9d 07 00 00 48 8b 03 48 39 c3 0f 84 1e 06 00 RIP: __read_once_size include/linux/compiler.h:183 [inline] RSP: ffff888087a4fba0 RIP: list_empty include/linux/list.h:203 [inline] RSP: ffff888087a4fba0 RIP: plist_head_empty include/linux/plist.h:214 [inline] RSP: ffff888087a4fba0 RIP: pm_qos_get_value kernel/power/qos.c:154 [inline] RSP: ffff888087a4fba0 RIP: pm_qos_update_target+0x3e/0x8d0 kernel/power/qos.c:281 RSP: ffff888087a4fba0 ---[ end trace 1619b479b701aff5 ]---