bisecting fixing commit since 7f2c5eb458b8855655a19c44cd0043f7f83c595f building syzkaller on 96dd36234d97bbf6b403f3a7f03cfc0296422879 testing commit 7f2c5eb458b8855655a19c44cd0043f7f83c595f with gcc (GCC) 8.1.0 kernel signature: 2d394e693ad2fb01c029f465b675eb9908264efd640a5db6be4133a2b80755b8 run #0: crashed: KASAN: use-after-free Read in __queue_work run #1: crashed: general protection fault in __queue_work run #2: crashed: general protection fault in __queue_work run #3: crashed: KASAN: use-after-free Read in __queue_work run #4: crashed: general protection fault in __queue_work run #5: crashed: WARNING: ODEBUG bug in bt_host_release run #6: crashed: KASAN: use-after-free Read in __queue_work run #7: crashed: WARNING: ODEBUG bug in bt_host_release run #8: crashed: WARNING: ODEBUG bug in bt_host_release run #9: crashed: general protection fault in __queue_work testing current HEAD 5b7a52cd2eef952cee8a72512ef370bcdef46636 testing commit 5b7a52cd2eef952cee8a72512ef370bcdef46636 with gcc (GCC) 8.1.0 kernel signature: 2b3bc2045d16bc3c995f6719cfc805b869768e06a9fb4a5bb5e041e916526a00 run #0: crashed: KASAN: use-after-free Read in __queue_work run #1: crashed: general protection fault in __queue_work run #2: crashed: WARNING: ODEBUG bug in bt_host_release run #3: crashed: KASAN: use-after-free Read in __queue_work run #4: crashed: general protection fault in __queue_work run #5: crashed: general protection fault in __queue_work run #6: crashed: general protection fault in __queue_work run #7: crashed: general protection fault in __queue_work run #8: OK run #9: crashed: general protection fault in __queue_work revisions tested: 2, total time: 32m35.8405739s (build: 16m2.719107821s, test: 15m59.088648419s) the crash still happens on HEAD commit msg: Linux 4.14.202 crash: general protection fault in __queue_work Bluetooth: hci0 command 0x0c20 tx timeout Bluetooth: hci0 command 0x0c20 tx timeout Bluetooth: hci2 command 0x0409 tx timeout 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: 1 PID: 28271 Comm: syz-executor.1 Not tainted 4.14.202-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880995ac6c0 task.stack: ffff88809a728000 RIP: 0010:__queue_work+0x128/0xea0 kernel/workqueue.c:1406 RSP: 0018:ffff88809a72f888 EFLAGS: 00010046 RAX: ffff8880b399e040 RBX: 0000000000000001 RCX: ffff8880b6000068 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: ffff88809a72f900 R08: ffffffff87f554c0 R09: ffffffff87f554c8 R10: 0000000000000000 R11: 0000000000000040 R12: 0000000000000000 R13: ffff8880b49395c0 R14: 0000000000000040 R15: dffffc0000000000 FS: 00007f18e93fd700(0000) GS:ffff8880ba900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000745694 CR3: 000000009bf66000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queue_work_on+0x140/0x180 kernel/workqueue.c:1490 queue_work include/linux/workqueue.h:491 [inline] req_run+0x2b2/0x590 net/bluetooth/hci_request.c:77 hci_req_run_skb net/bluetooth/hci_request.c:89 [inline] __hci_req_sync+0x297/0x7d0 net/bluetooth/hci_request.c:214 hci_req_sync+0x70/0xb0 net/bluetooth/hci_request.c:285 hci_dev_cmd+0x47f/0x670 net/bluetooth/hci_core.c:1865 hci_sock_ioctl+0x2f0/0x600 net/bluetooth/hci_sock.c:1040 sock_do_ioctl+0x62/0xa0 net/socket.c:974 sock_ioctl+0x251/0x430 net/socket.c:1071 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:0x45cc79 RSP: 002b:00007f18e93fcc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000001d300 RCX: 000000000045cc79 RDX: 0000000020000000 RSI: 00000000400448de RDI: 0000000000000004 RBP: 000000000078c080 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078c04c R13: 00007ffd6ca854ef R14: 00007f18e93fd9c0 R15: 000000000078c04c Code: e8 be 8b ef ff 4c 89 ef 89 c6 e8 64 77 ff ff 48 8b 7d d0 49 89 c4 e8 b8 df ff ff 48 85 c0 0f 84 d5 02 00 00 4c 89 e2 48 c1 ea 03 <42> 80 3c 3a 00 0f 85 4b 0c 00 00 49 39 04 24 0f 85 84 04 00 00 RIP: __queue_work+0x128/0xea0 kernel/workqueue.c:1406 RSP: ffff88809a72f888 ---[ end trace 1cc16543cd4f46aa ]---