BUG: unable to handle kernel NULL pointer dereference at 0000000000000030 IP: set_bit syzkaller/managers/linux-4-14/kernel/./arch/x86/include/asm/bitops.h:76 [inline] IP: amp_read_loc_assoc_final_data+0xe6/0x190 syzkaller/managers/linux-4-14/kernel/net/bluetooth/amp.c:312 PGD 56635067 P4D 56635067 PUD 567c2067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 8005 Comm: kworker/u5:4 Not tainted 4.14.218-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci2 hci_rx_work task: ffff88809913e000 task.stack: ffff888057be0000 RIP: 0010:set_bit syzkaller/managers/linux-4-14/kernel/./arch/x86/include/asm/bitops.h:76 [inline] RIP: 0010:amp_read_loc_assoc_final_data+0xe6/0x190 syzkaller/managers/linux-4-14/kernel/net/bluetooth/amp.c:312 RSP: 0018:ffff888057be7a08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffff1100af7cf41 RCX: 1ffff11013227d1b RDX: 1ffff1100ae808b3 RSI: ffff88805747cac0 RDI: ffff888057404598 RBP: ffff88805747cac0 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: ffff88809913e000 R12: ffff888057404200 R13: 0000000000000000 R14: ffff888057404200 R15: ffff8880913cb780 FS: 0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000030 CR3: 0000000057bec000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_chan_selected_evt+0x1b2/0x360 syzkaller/managers/linux-4-14/kernel/net/bluetooth/hci_event.c:4333 hci_event_packet+0x2260/0x7510 syzkaller/managers/linux-4-14/kernel/net/bluetooth/hci_event.c:5441 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'. hci_rx_work+0x427/0xb40 syzkaller/managers/linux-4-14/kernel/net/bluetooth/hci_core.c:4244 process_one_work+0x793/0x14a0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 syzkaller/managers/linux-4-14/kernel/kernel/workqueue.c:2250 kthread+0x30d/0x420 syzkaller/managers/linux-4-14/kernel/kernel/kthread.c:232 ret_from_fork+0x24/0x30 syzkaller/managers/linux-4-14/kernel/arch/x86/entry/entry_64.S:404 Code: 44 24 21 48 b8 00 00 00 00 00 fc ff df 0f b6 04 02 84 c0 74 08 3c 01 0f 8e 90 00 00 00 41 0f b7 84 24 98 03 00 00 66 89 44 24 23 41 80 4d 30 04 48 8d 6c 24 40 4c 89 e6 48 89 ef e8 14 6c fe RIP: set_bit syzkaller/managers/linux-4-14/kernel/./arch/x86/include/asm/bitops.h:76 [inline] RSP: ffff888057be7a08 RIP: amp_read_loc_assoc_final_data+0xe6/0x190 syzkaller/managers/linux-4-14/kernel/net/bluetooth/amp.c:312 RSP: ffff888057be7a08 CR2: 0000000000000030 ---[ end trace ee9b17f379bb228b ]---