bisecting fixing commit since a1b977b49b66c75e6c51a515f6700371ae720217 building syzkaller on fc7735a27949755327024847e12dcc1b868bcb99 testing commit a1b977b49b66c75e6c51a515f6700371ae720217 with gcc (GCC) 8.1.0 kernel signature: 4239ae213a77d32dcd3cda2097fa6c01346627ac459d53d41b76a6634a009d7b all runs: crashed: general protection fault in hci_phy_link_complete_evt testing current HEAD 13d2ce42de8cb98ff952f8de6307f896203854c2 testing commit 13d2ce42de8cb98ff952f8de6307f896203854c2 with gcc (GCC) 8.1.0 kernel signature: a92ab4c8a1f2f9c14f43f2a785ff9d44a133fe816c8b6a000018a51641465199 all runs: crashed: general protection fault in hci_phy_link_complete_evt revisions tested: 2, total time: 27m13.04944421s (build: 20m52.154057211s, test: 5m32.169530406s) the crash still happens on HEAD commit msg: Linux 4.19.163 crash: general protection fault in hci_phy_link_complete_evt kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6029 Comm: kworker/u5:5 Not tainted 4.19.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci3 hci_rx_work RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 Code: c1 ea 03 80 3c 02 00 0f 85 7c 03 00 00 4c 8b a3 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8881e32f7a58 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881d1a320c0 RCX: 1ffff1103c8a3127 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff8881e32f7a98 R08: 0000000000000000 R09: ffffed103ece473a R10: ffffed103ece473a R11: ffff8881f67239d3 R12: 0000000000000000 R13: ffff8881d82f254b R14: ffff8881e677d180 R15: 00000000000000c9 FS: 0000000000000000(0000) GS:ffff8881f6700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff54c40ff8 CR3: 000000000866d003 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_event_packet+0x2b8e/0x7215 net/bluetooth/hci_event.c:5911 hci_rx_work+0x31b/0x8e0 net/bluetooth/hci_core.c:4359 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2155 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 CPU: 0 PID: 6031 Comm: kworker/u5:7 Tainted: G D 4.19.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci2 hci_rx_work ieee80211 phy8: Selected rate control algorithm 'minstrel_ht' RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 Code: c1 ea 03 80 3c 02 00 0f 85 7c 03 00 00 4c 8b a3 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8881dc1bfa58 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881e335ecc0 RCX: 1ffff1103bac3137 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff8881dc1bfa98 R08: 0000000000000000 R09: ffffed103ece473a R10: ffffed103ece473a R11: ffff8881f67239d3 R12: 0000000000000000 R13: ffff8881d52a1a0b R14: ffff8881d1e49140 R15: 00000000000000c9 FS: 0000000000000000(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000768000 CR3: 000000000866d003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_event_packet+0x2b8e/0x7215 net/bluetooth/hci_event.c:5911 ---[ end trace 8bec9c23e28748eb ]--- hci_rx_work+0x31b/0x8e0 net/bluetooth/hci_core.c:4359 RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 process_one_work+0x7b9/0x15a0 kernel/workqueue.c:2155 Code: c1 ea 03 80 3c 02 00 0f 85 7c 03 00 00 4c 8b a3 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8881e32f7a58 EFLAGS: 00010202 worker_thread+0x85/0xb60 kernel/workqueue.c:2298 kthread+0x347/0x410 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Modules linked in: RAX: dffffc0000000000 RBX: ffff8881d1a320c0 RCX: 1ffff1103c8a3127 ---[ end trace 8bec9c23e28748ec ]--- RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 Code: c1 ea 03 80 3c 02 00 0f 85 7c 03 00 00 4c 8b a3 28 08 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 03 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b RSP: 0018:ffff8881e32f7a58 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8881d1a320c0 RCX: 1ffff1103c8a3127 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff8881e32f7a98 R08: 0000000000000000 R09: ffffed103ece473a R10: ffffed103ece473a R11: ffff8881f67239d3 R12: 0000000000000000 R13: ffff8881d82f254b R14: ffff8881e677d180 R15: 00000000000000c9 FS: 0000000000000000(0000) GS:ffff8881f6600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560b6bb77688 CR3: 000000000866d003 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400