syzbot


BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data

Status: fixed on 2021/04/07 11:21
Reported-by: syzbot+57af1c816d57b3e57ff3@syzkaller.appspotmail.com
Fix commit: 2f642a2b3365 Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
First crash: 1357d, last: 1140d
Fix bisection: fixed by (bisect log) :
commit 2f642a2b33655f6495ce3640f44be76b0145aede
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.19 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data C done 114 1141d 1357d 1/1 fixed on 2021/04/07 11:11
upstream KASAN: null-ptr-deref Write in amp_read_loc_assoc_final_data bluetooth C done 185 1156d 1357d 20/26 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
IP: set_bit arch/x86/include/asm/bitops.h:76 [inline]
IP: amp_read_loc_assoc_final_data+0xe6/0x190 net/bluetooth/amp.c:312
PGD 0 P4D 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7990 Comm: kworker/u5:1 Not tainted 4.14.209-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
task: ffff8880b2a623c0 task.stack: ffff888095550000
RIP: 0010:set_bit arch/x86/include/asm/bitops.h:76 [inline]
RIP: 0010:amp_read_loc_assoc_final_data+0xe6/0x190 net/bluetooth/amp.c:312
RSP: 0018:ffff888095557a08 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff11012aaaf41 RCX: 1ffff1101654c593
RDX: 1ffff11012af2973 RSI: ffff8880b2a36a80 RDI: ffff888095794b98
RBP: ffff8880b2a36a80 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880b2a623c0 R12: ffff888095794800
R13: 0000000000000000 R14: ffff888095794800 R15: ffff8880b510a500
FS:  0000000000000000(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000030 CR3: 000000009bcf1000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_chan_selected_evt+0x1b2/0x360 net/bluetooth/hci_event.c:4333
 hci_event_packet+0x2260/0x750f net/bluetooth/hci_event.c:5438
 hci_rx_work+0x427/0xb40 net/bluetooth/hci_core.c:4244
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 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 <f0> 41 80 4d 30 04 48 8d 6c 24 40 4c 89 e6 48 89 ef e8 c4 6b fe 
RIP: set_bit arch/x86/include/asm/bitops.h:76 [inline] RSP: ffff888095557a08
RIP: amp_read_loc_assoc_final_data+0xe6/0x190 net/bluetooth/amp.c:312 RSP: ffff888095557a08
CR2: 0000000000000030
---[ end trace eb629968066ecdf7 ]---

Crashes (207):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/02 06:01 linux-4.14.y 87335852c5d9 c42a35e9 .config console log report syz C ci2-linux-4-14
2020/08/23 02:58 linux-4.14.y 6a24ca2506d6 1da71ab0 .config console log report syz C ci2-linux-4-14
2020/08/02 13:15 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/07/31 05:11 linux-4.14.y e5a54aa2d312 8df85ed9 .config console log report syz C ci2-linux-4-14
2021/03/05 13:22 linux-4.14.y 397a88b2cc86 9d751681 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/03/04 03:47 linux-4.14.y 397a88b2cc86 06ed56cd .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/03/02 19:35 linux-4.14.y 3242aa3a635c 92ead296 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/03/02 16:45 linux-4.14.y 3242aa3a635c 92ead296 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/28 09:21 linux-4.14.y 3242aa3a635c 4c37c133 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/26 18:11 linux-4.14.y 3242aa3a635c 4c37c133 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/22 17:32 linux-4.14.y 29c52025152b c26fb06b .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/21 10:34 linux-4.14.y 29c52025152b 3e5ed8b4 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/20 01:47 linux-4.14.y 29c52025152b f689d40a .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/14 11:36 linux-4.14.y 2c8a3fceddf0 98682e5e .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/12 10:38 linux-4.14.y 2c8a3fceddf0 a5f86b15 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/11 04:39 linux-4.14.y 2c8a3fceddf0 a52ee10a .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/08 04:55 linux-4.14.y 2c8a3fceddf0 2ce644fc .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/07 03:05 linux-4.14.y 2c8a3fceddf0 0655e081 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/03 17:54 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/03 08:30 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/01 21:44 linux-4.14.y 2c8a3fceddf0 e6b95f32 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/02/01 11:03 linux-4.14.y 2c8a3fceddf0 fc9fd31e .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/29 14:31 linux-4.14.y 2d2791fce891 6593fd32 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/29 10:42 linux-4.14.y 2d2791fce891 6593fd32 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/29 07:17 linux-4.14.y 2d2791fce891 7df34f59 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/27 04:07 linux-4.14.y 2d2791fce891 55a7d4df .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/27 02:14 linux-4.14.y 2d2791fce891 55a7d4df .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/25 11:41 linux-4.14.y 2d2791fce891 52e37319 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/25 08:59 linux-4.14.y 2d2791fce891 52e37319 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/24 10:08 linux-4.14.y 2d2791fce891 52e37319 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/21 15:34 linux-4.14.y 2762b48e9611 d4f4eca5 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/21 02:06 linux-4.14.y 2762b48e9611 d4f4eca5 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/20 11:22 linux-4.14.y 2762b48e9611 d4f4eca5 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel NULL pointer dereference in amp_read_loc_assoc_final_data
2021/01/17 08:15 linux-4.14.y f79dc86058bc 65a7a854 .config console log report info ci2-linux-4-14
2021/01/12 12:41 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/12 11:33 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/11 08:28 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/10 21:21 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/10 14:54 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/10 13:45 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/10 10:53 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/10 04:38 linux-4.14.y ec822b3e8bf4 2c1f2513 .config console log report info ci2-linux-4-14
2021/01/09 08:09 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/09 03:42 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/09 00:08 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/08 16:53 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/08 02:49 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/07 01:47 linux-4.14.y 1752938529c6 c104d4a3 .config console log report info ci2-linux-4-14
2021/01/05 06:23 linux-4.14.y 1752938529c6 2a28ff1f .config console log report info ci2-linux-4-14
2021/01/04 18:35 linux-4.14.y 1752938529c6 79264ae3 .config console log report info ci2-linux-4-14
2021/01/02 16:17 linux-4.14.y 1752938529c6 79264ae3 .config console log report info ci2-linux-4-14
2021/01/02 11:54 linux-4.14.y 1752938529c6 79264ae3 .config console log report info ci2-linux-4-14
2021/01/02 08:20 linux-4.14.y 1752938529c6 79264ae3 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.