bisecting fixing commit since 14b58326976de6ef3998eefec1dd7f8b38b97a75 building syzkaller on 28ac5c9e93a44c3eb145195ffb55591be58ef510 testing commit 14b58326976de6ef3998eefec1dd7f8b38b97a75 with gcc (GCC) 8.1.0 kernel signature: 7a436b3f4213dd479c1d2dd28b15656ad2500d66e7fbadead697673d73d929af 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: KASAN: use-after-free Read in hci_dev_reset run #5: crashed: KASAN: use-after-free Read in __queue_work run #6: crashed: KASAN: use-after-free Read in skb_dequeue run #7: crashed: general protection fault in __queue_work run #8: OK run #9: OK testing current HEAD c196b3a9c83ae3491280b739d231d02b3cb9d041 testing commit c196b3a9c83ae3491280b739d231d02b3cb9d041 with gcc (GCC) 8.1.0 kernel signature: 977322bff8f381c50e4bb1397f0fae1cdd6bedcbb2d60a838a1065ec6ebff5a8 run #0: crashed: general protection fault in __queue_work run #1: crashed: general protection fault in __queue_work run #2: crashed: KASAN: use-after-free Read in skb_dequeue 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: OK run #8: OK run #9: OK revisions tested: 2, total time: 37m26.889204035s (build: 18m6.44116498s, test: 18m48.184024565s) the crash still happens on HEAD commit msg: Linux 4.14.210 crash: general protection fault in __queue_work Bluetooth: hci4 command 0x041b tx timeout Bluetooth: hci3 command 0x0419 tx timeout Bluetooth: hci4 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: 1 PID: 21347 Comm: syz-executor.1 Not tainted 4.14.210-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881d356c0c0 task.stack: ffff8881d52f8000 RIP: 0010:__queue_work+0x128/0xea0 kernel/workqueue.c:1406 RSP: 0018:ffff8881d52ff858 EFLAGS: 00010046 RAX: ffff8881f247a940 RBX: 0000000000000001 RCX: ffff8881f5c00068 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000 RBP: ffff8881d52ff8d0 R08: ffffffff87f55580 R09: ffffffff87f55588 R10: 0000000000000000 R11: 0000000000000040 R12: 0000000000000000 R13: ffff8881dee327c0 R14: 0000000000000040 R15: dffffc0000000000 FS: 00007f4aebb4d700(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000118c000 CR3: 00000001d2027001 CR4: 00000000001606e0 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:00007f4aebb4cc78 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: 00007fff7ddd5cef R14: 00007f4aebb4d9c0 R15: 000000000118bf2c Code: e8 be 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: ffff8881d52ff858 ---[ end trace 3b23cf291b7d3e21 ]---