syzbot


general protection fault in hci_phy_link_complete_evt

Status: fixed on 2021/01/26 16:42
Reported-by: syzbot+c95f9a03e069d5406cfa@syzkaller.appspotmail.com
Fix commit: 4113f6f73f6e Bluetooth: Fix null pointer dereference in hci_event_packet()
First crash: 1353d, last: 1206d
Fix bisection: fixed by (bisect log) :
commit 4113f6f73f6e8d215609bde8c0c14ca9f8a476c5
Author: Anmol Karn <anmol.karan123@gmail.com>
Date: Wed Sep 30 14:18:13 2020 +0000

  Bluetooth: Fix null pointer dereference in hci_event_packet()

  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in hci_phy_link_complete_evt C done 28 1210d 1353d 1/1 fixed on 2021/01/22 19:25
upstream general protection fault in hci_phy_link_complete_evt bluetooth C done unreliable 50 1225d 1352d 0/26 auto-obsoleted due to no activity on 2023/06/21 05:31

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
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
Modules linked in:
CPU: 1 PID: 7991 Comm: kworker/u5:1 Not tainted 4.14.203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
task: ffff8880b3396380 task.stack: ffff8880b2e48000
RIP: 0010:hci_phy_link_complete_evt.isra.0+0x201/0x840 net/bluetooth/hci_event.c:4359
RSP: 0018:ffff8880b2e4fae0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11016672d90
RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000010
RBP: ffff88809242cb10 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880b3396380 R12: ffff88809242da68
R13: 00000000000000c9 R14: ffff8880b4770a4b R15: ffff8880954e62c0
FS:  0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4a27d9c6c0 CR3: 00000000a212f000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_event_packet+0x224b/0x750f net/bluetooth/hci_event.c:5442
 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: fa 48 c1 ea 03 80 3c 02 00 0f 85 85 05 00 00 49 8b 9f 40 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 10 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 69 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 
RIP: hci_phy_link_complete_evt.isra.0+0x201/0x840 net/bluetooth/hci_event.c:4359 RSP: ffff8880b2e4fae0
---[ end trace 938d0aafcd0b8d19 ]---

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/11/01 11:32 linux-4.14.y 2b7915014161 8bc4594f .config console log report syz C ci2-linux-4-14
2020/08/27 09:32 linux-4.14.y d7e78d08fa77 816e0689 .config console log report syz C ci2-linux-4-14
2020/08/06 03:19 linux-4.14.y ca4f2c56d416 0487ea6f .config console log report syz C ci2-linux-4-14
2020/08/04 08:57 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/03 18:07 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/03 17:48 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 15:56 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 15:42 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 15:09 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 14:06 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 13:50 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 13:35 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/08/02 09:06 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report syz C ci2-linux-4-14
2020/12/26 18:46 linux-4.14.y 3f2ecb86cb90 821e0b09 .config console log report info ci2-linux-4-14
2020/12/24 19:16 linux-4.14.y 3f2ecb86cb90 c2c1d1dd .config console log report info ci2-linux-4-14
2020/12/23 08:37 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/12/22 23:34 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/12/22 17:52 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/12/20 06:11 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
2020/12/06 16:25 linux-4.14.y c196b3a9c83a f12ba0c5 .config console log report info ci2-linux-4-14
2020/11/30 21:42 linux-4.14.y 87335852c5d9 76831598 .config console log report info ci2-linux-4-14
2020/11/28 06:39 linux-4.14.y 87335852c5d9 486f93ef .config console log report info ci2-linux-4-14
2020/11/24 22:57 linux-4.14.y 87335852c5d9 e34b696c .config console log report info ci2-linux-4-14
2020/11/24 20:50 linux-4.14.y 87335852c5d9 e34b696c .config console log report info ci2-linux-4-14
2020/11/20 10:07 linux-4.14.y 8961076ed318 0767f13f .config console log report info ci2-linux-4-14
2020/11/07 13:31 linux-4.14.y 6b6446efedb2 cba33199 .config console log report info ci2-linux-4-14
2020/10/18 11:30 linux-4.14.y cbfa1702aaf6 fea47c01 .config console log report info ci2-linux-4-14
2020/10/16 11:55 linux-4.14.y cbfa1702aaf6 6e262c73 .config console log report info ci2-linux-4-14
2020/09/19 10:24 linux-4.14.y cbfa1702aaf6 53ce8104 .config console log report info ci2-linux-4-14
2020/08/27 02:17 linux-4.14.y d7e78d08fa77 318430cb .config console log report ci2-linux-4-14
2020/08/02 12:37 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 12:31 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:36 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:36 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:36 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:10 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:01 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 09:01 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 08:55 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
2020/08/02 08:55 linux-4.14.y 7f2c5eb458b8 96dd3623 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.