bisecting fixing commit since a1b977b49b66c75e6c51a515f6700371ae720217 building syzkaller on fc7735a27949755327024847e12dcc1b868bcb99 testing commit a1b977b49b66c75e6c51a515f6700371ae720217 with gcc (GCC) 8.1.0 kernel signature: b85721e2bdfc22a063e106e8bee108a3ed4066760a966c55ee491a4966519879 all runs: crashed: general protection fault in hci_phy_link_complete_evt testing current HEAD 2c746135a12e3f329171ed168ca0078d468f6d85 testing commit 2c746135a12e3f329171ed168ca0078d468f6d85 with gcc (GCC) 8.1.0 kernel signature: b899e4b6465a9ba70d5b37fed2dfe0d4f2dd58148024982bebe88ef08f90f4df all runs: crashed: general protection fault in hci_phy_link_complete_evt revisions tested: 2, total time: 23m44.134745722s (build: 17m34.236864727s, test: 5m25.807049876s) the crash still happens on HEAD commit msg: Linux 4.19.158 crash: general protection fault in hci_phy_link_complete_evt wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 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 CPU: 0 PID: 6678 Comm: kworker/u5:8 Not tainted 4.19.158-syzkaller #0 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci5 hci_rx_work wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 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:ffff8880940b7a58 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880932d23c0 RCX: 1ffff11015afb557 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff8880940b7a98 R08: 0000000000000000 R09: ffffed101748473a R10: ffffed101748473a R11: ffff8880ba4239d3 R12: 0000000000000000 R13: ffff88808dd4e34b R14: ffff88809454cf80 R15: 00000000000000c9 FS: 0000000000000000(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 kasan: CONFIG_KASAN_INLINE enabled CR2: 0000000020000040 CR3: 000000009bed2000 CR4: 00000000001406f0 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: ---[ end trace 0660b97cb82b1eae ]--- IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready RIP: 0010:hci_phy_link_complete_evt.isra.126+0x260/0x650 net/bluetooth/hci_event.c:4681 kasan: GPF could be caused by NULL-ptr deref or user memory access 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:ffff8880940b7a58 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880932d23c0 RCX: 1ffff11015afb557 RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010 RBP: ffff8880940b7a98 R08: 0000000000000000 R09: ffffed101748473a R10: ffffed101748473a R11: ffff8880ba4239d3 R12: 0000000000000000 R13: ffff88808dd4e34b R14: ffff88809454cf80 R15: 00000000000000c9 FS: 0000000000000000(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056171b75ede8 CR3: 000000009bc0b000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400