bisecting fixing commit since 14b58326976de6ef3998eefec1dd7f8b38b97a75 building syzkaller on 28ac5c9e93a44c3eb145195ffb55591be58ef510 testing commit 14b58326976de6ef3998eefec1dd7f8b38b97a75 with gcc (GCC) 8.1.0 kernel signature: ea33059306cb084f815503d9c7f4c546aab58079d00ed9b212d5d9a59349290c run #0: crashed: KASAN: use-after-free Read in __queue_work run #1: crashed: KASAN: use-after-free Read in skb_dequeue run #2: crashed: general protection fault in __queue_work run #3: crashed: general protection fault 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: KASAN: use-after-free Read in skb_dequeue run #8: OK run #9: OK testing current HEAD 1752938529c614a8ed4432ecce6ebc95d3b87207 testing commit 1752938529c614a8ed4432ecce6ebc95d3b87207 with gcc (GCC) 8.1.0 kernel signature: d45041eef07f86315b3af6a9c4a93fafc7438bb93adb9fb8811203397c6b6fa1 run #0: crashed: KASAN: use-after-free Read in skb_dequeue run #1: crashed: general protection fault in __queue_work run #2: crashed: general protection fault in __queue_work run #3: crashed: general protection fault 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: WARNING: ODEBUG bug in bt_host_release run #7: OK run #8: OK run #9: crashed: general protection fault in __queue_work revisions tested: 2, total time: 34m51.208038675s (build: 17m32.76262687s, test: 16m43.369816255s) the crash still happens on HEAD commit msg: Linux 4.14.213 crash: general protection fault in __queue_work Bluetooth: hci1 command 0x0419 tx timeout Bluetooth: hci3 command 0x041b tx timeout Bluetooth: hci3 command 0x040f 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: 0 PID: 24341 Comm: syz-executor.0 Not tainted 4.14.213-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881e58a03c0 task.stack: ffff8881dc930000 RIP: 0010:__queue_work+0x128/0xea0 kernel/workqueue.c:1406 RSP: 0018:ffff8881dc937858 EFLAGS: 00010046 RAX: ffff8881f2b4c080 RBX: 0000000000000000 RCX: ffff8881f5c00068 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: ffff8881dc9378d0 R08: ffffffff87f55580 R09: ffffffff87f55588 R10: 0000000000000000 R11: 0000000000000040 R12: 0000000000000000 R13: ffff8881e052a2c0 R14: 0000000000000040 R15: dffffc0000000000 FS: 00007f9eb26dc700(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000004f8710 CR3: 00000001f2522005 CR4: 00000000001606f0 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_inquiry+0x57d/0x790 net/bluetooth/hci_core.c:1272 hci_sock_ioctl+0x199/0x600 net/bluetooth/hci_sock.c:1043 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:0x45ce79 RSP: 002b:00007f9eb26dbc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000e640 RCX: 000000000045ce79 RDX: 0000000020000000 RSI: 00000000800448f0 RDI: 0000000000000005 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffe144242ff R14: 00007f9eb26dc9c0 R15: 000000000118bf2c Code: e8 ae 87 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: ffff8881dc937858 ---[ end trace 51d590fa804d8781 ]---