syzbot


general protection fault in hci_event_packet

Status: fixed on 2021/01/18 14:01
Reported-by: syzbot+9758f63eddf37e367cf2@syzkaller.appspotmail.com
Fix commit: abae100355c0 Bluetooth: Fix null pointer dereference in hci_event_packet()
First crash: 621d, last: 555d

Fix bisection: fixed by (bisect log) :
commit abae100355c011d14c75cabbf9eb773c231187ee
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 (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in hci_event_packet C done 25 640d 693d 21/22 fixed on 2021/03/10 01:48

Sample crash report:
audit: type=1400 audit(1602645511.683:8): avc:  denied  { execmem } for  pid=6488 comm="syz-executor714" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
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
CPU: 1 PID: 6496 Comm: kworker/u5:2 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 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 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880891bfb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff8880880d6d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a7495800 R14: ffff888084f6d100 R15: ffff888084f6e040
FS:  0000000000000000(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055afbc9e4270 CR3: 000000009eabb000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_rx_work+0x4c5/0xb50 net/bluetooth/hci_core.c:4359
 process_one_work+0x796/0x14e0 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:
---[ end trace 783d7b1997b62ad0 ]---
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4707 [inline]
RIP: 0010:hci_event_packet+0x1f17/0x81b9 net/bluetooth/hci_event.c:5937
Code: 48 c1 ea 03 80 3c 02 00 0f 85 65 57 00 00 48 8b 9d 28 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 56 57 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880891bfb00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff86e93e8c
RDX: 0000000000000002 RSI: ffffffff86e93e99 RDI: 0000000000000010
RBP: ffff8880880d6d00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: dffffc0000000000
R13: ffff8880a7495800 R14: ffff888084f6d100 R15: ffff888084f6e040
FS:  0000000000000000(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009fc58000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2020/10/14 03:20 linux-4.19.y a1b977b49b66 fc7735a2 .config log report syz C
ci2-linux-4-19 2020/10/20 02:10 linux-4.19.y ad326970d25c ff4a3345 .config log report info
ci2-linux-4-19 2020/10/14 03:04 linux-4.19.y a1b977b49b66 fc7735a2 .config log report info