syzbot


BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data

Status: fixed on 2021/04/07 11:11
Reported-by: syzbot+4ba87ea303864cf9af8b@syzkaller.appspotmail.com
Fix commit: 99c2c8b009c4 Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
First crash: 1574d, last: 1358d
Fix bisection: fixed by (bisect log) :
commit 99c2c8b009c42cbffd2bc5291ea8e1f27c3a9559
Author: Gopal Tiwari <gtiwari@redhat.com>
Date: Tue Feb 2 09:42:30 2021 +0000

  Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data C done 207 1357d 1574d 1/1 fixed on 2021/04/07 11:21
upstream KASAN: null-ptr-deref Write in amp_read_loc_assoc_final_data bluetooth C done 185 1372d 1573d 20/28 fixed on 2021/04/09 19:46

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
PGD 0 P4D 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8153 Comm: kworker/u5:2 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
RIP: 0010:set_bit arch/x86/include/asm/bitops.h:71 [inline]
RIP: 0010:amp_read_loc_assoc_final_data+0x102/0x1d0 net/bluetooth/amp.c:312
Code: fc ff df 0f b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 ae 00 00 00 41 0f b7 84 24 9c 03 00 00 66 89 44 24 23 <f0> 41 80 4d 30 04 48 8d 6c 24 40 4c 89 e6 48 89 ef e8 08 35 fe ff
RSP: 0018:ffff888094ddf978 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff110129bbf2f RCX: 1ffff1101601455b
RDX: 0000000000000000 RSI: ffffffff8765c0be RDI: ffff8880a3ebd51c
RBP: ffff8880b0162480 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a3ebd180
R13: 0000000000000000 R14: ffff8880a3ebe0c0 R15: ffff8880a3ebd180
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000030 CR3: 00000000b021b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_chan_selected_evt+0x1ef/0x3e0 net/bluetooth/hci_event.c:4655
 hci_event_packet+0x2a4a/0x7e19 net/bluetooth/hci_event.c:5907
 hci_rx_work+0x4ad/0xc70 net/bluetooth/hci_core.c:4359
 process_one_work+0x864/0x1570 kernel/workqueue.c:2155
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
CR2: 0000000000000030
---[ end trace 16883ba4ab100d9e ]---
RIP: 0010:set_bit arch/x86/include/asm/bitops.h:71 [inline]
RIP: 0010:amp_read_loc_assoc_final_data+0x102/0x1d0 net/bluetooth/amp.c:312
Code: fc ff df 0f b6 14 02 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 ae 00 00 00 41 0f b7 84 24 9c 03 00 00 66 89 44 24 23 <f0> 41 80 4d 30 04 48 8d 6c 24 40 4c 89 e6 48 89 ef e8 08 35 fe ff
RSP: 0018:ffff888094ddf978 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff110129bbf2f RCX: 1ffff1101601455b
RDX: 0000000000000000 RSI: ffffffff8765c0be RDI: ffff8880a3ebd51c
RBP: ffff8880b0162480 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a3ebd180
R13: 0000000000000000 R14: ffff8880a3ebe0c0 R15: ffff8880a3ebd180
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000030 CR3: 00000000b021b000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (114):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/22 01:16 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report syz C ci2-linux-4-19
2020/08/23 03:04 linux-4.19.y d18b78abc0c6 1da71ab0 .config console log report syz C ci2-linux-4-19
2020/08/02 18:17 linux-4.19.y 13af6c74b14a 96dd3623 .config console log report syz C ci2-linux-4-19
2020/07/31 04:33 linux-4.19.y 205a42ce2861 8df85ed9 .config console log report syz C ci2-linux-4-19
2021/03/04 03:34 linux-4.19.y 2d19be4653f5 06ed56cd .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/27 18:29 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/07 13:19 linux-4.19.y 811218eceeaa 2ce644fc .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/04 18:28 linux-4.19.y 811218eceeaa 42b90a7c .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/01 22:38 linux-4.19.y 811218eceeaa e6b95f32 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/29 13:06 linux-4.19.y c4ff839de17f 6593fd32 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/29 00:50 linux-4.19.y c4ff839de17f 7df34f59 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/26 21:21 linux-4.19.y 2263955bf7e7 55a7d4df .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/26 10:42 linux-4.19.y 2263955bf7e7 52e37319 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/23 14:26 linux-4.19.y 43d555d83c3f 52e37319 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/19 16:15 linux-4.19.y c110fed0e606 63631df1 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/19 13:24 linux-4.19.y c110fed0e606 63631df1 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/16 19:42 linux-4.19.y 675cc038067f 65a7a854 .config console log report info ci2-linux-4-19
2021/01/12 16:25 linux-4.19.y 610bdbf6a174 2c1f2513 .config console log report info ci2-linux-4-19
2021/01/07 11:40 linux-4.19.y 4143d798313f c104d4a3 .config console log report info ci2-linux-4-19
2021/01/07 00:17 linux-4.19.y 4143d798313f c104d4a3 .config console log report info ci2-linux-4-19
2021/01/04 19:21 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2021/01/04 07:55 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2021/01/03 03:01 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2021/01/02 07:26 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2021/01/01 17:13 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2020/12/30 02:59 linux-4.19.y 13d2ce42de8c 0fa352f2 .config console log report info ci2-linux-4-19
2020/12/28 10:44 linux-4.19.y 13d2ce42de8c 2242f77f .config console log report info ci2-linux-4-19
2020/12/27 19:39 linux-4.19.y 13d2ce42de8c 2242f77f .config console log report info ci2-linux-4-19
2020/12/26 19:20 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/26 05:07 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/24 00:33 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
2020/12/20 01:18 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/12/19 08:04 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/12/18 23:59 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/12/16 12:38 linux-4.19.y 13d2ce42de8c 649595c6 .config console log report info ci2-linux-4-19
2020/12/15 17:33 linux-4.19.y 13d2ce42de8c 97183ed7 .config console log report info ci2-linux-4-19
2020/12/14 13:47 linux-4.19.y 13d2ce42de8c b22a7ec3 .config console log report info ci2-linux-4-19
2020/12/14 06:17 linux-4.19.y 13d2ce42de8c 8f160dd5 .config console log report info ci2-linux-4-19
2020/12/13 03:45 linux-4.19.y 13d2ce42de8c bca53db9 .config console log report info ci2-linux-4-19
2020/12/10 22:28 linux-4.19.y 4abf26854aad 2a55c22b .config console log report info ci2-linux-4-19
2020/12/10 17:53 linux-4.19.y 4abf26854aad 2a55c22b .config console log report info ci2-linux-4-19
2020/12/10 16:52 linux-4.19.y 4abf26854aad 2a55c22b .config console log report info ci2-linux-4-19
2020/12/07 23:20 linux-4.19.y daefdc9eb24b 51a9082e .config console log report info ci2-linux-4-19
2020/12/05 19:22 linux-4.19.y daefdc9eb24b 0ef84591 .config console log report info ci2-linux-4-19
2020/12/03 04:04 linux-4.19.y daefdc9eb24b 8c9190ef .config console log report info ci2-linux-4-19
2020/12/02 23:35 linux-4.19.y daefdc9eb24b eff43e99 .config console log report info ci2-linux-4-19
2020/12/01 23:11 linux-4.19.y 0c88e405c97e 07bfe8a5 .config console log report info ci2-linux-4-19
2020/11/29 07:47 linux-4.19.y 0c88e405c97e a0092f9d .config console log report info ci2-linux-4-19
2020/11/25 20:03 linux-4.19.y 0c88e405c97e 3f581b43 .config console log report info ci2-linux-4-19
2020/11/25 15:50 linux-4.19.y 0c88e405c97e 1a1f4bd8 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.