syzbot


general protection fault in hci_event_packet

Status: fixed on 2021/03/10 01:48
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+0bef568258653cff272f@syzkaller.appspotmail.com
Fix commit: 6dfccd13db2f Bluetooth: Fix null pointer dereference in hci_event_packet()
First crash: 1324d, last: 1271d
Cause bisection: introduced by (bisect log) :
commit 941992d2944789641470626e9336d663236b1d28
Author: Javier Martinez Canillas <javier@osg.samsung.com>
Date: Mon Sep 12 14:03:34 2016 +0000

  ethernet: amd: use IS_ENABLED() instead of checking for built-in or module

Crash: general protection fault in batadv_iv_ogm_queue_add (log)
Repro: C syz .config
  
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 4.14 000/242] 4.14.213-rc1 review 245 (245) 2021/01/13 01:20
[PATCH 5.10 000/717] 5.10.4-rc1 review 747 (747) 2021/01/05 16:41
[PATCH 4.19 000/346] 4.19.164-rc1 review 356 (356) 2021/01/02 11:29
[PATCH 4.4 000/132] 4.4.249-rc1 review 136 (136) 2020/12/30 09:37
[PATCH 5.4 000/453] 5.4.86-rc1 review 465 (465) 2020/12/30 09:22
[PATCH 4.9 000/175] 4.9.249-rc1 review 178 (178) 2020/12/29 09:28
[Linux-kernel-mentees] [PATCH] net: bluetooth: Fix null pointer dereference in hci_event_packet() 12 (12) 2020/10/01 07:45
[Linux-kernel-mentees] [PATCH] net: bluetooth: Fix null pointer deref in hci_phy_link_complete_evt 7 (7) 2020/08/30 20:42
general protection fault in hci_event_packet 0 (2) 2020/08/04 13:01
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in hci_event_packet C done 3 1186d 1252d 1/1 fixed on 2021/01/18 14:01
Last patch testing requests (4)
Created Duration User Patch Repo Result
2020/09/10 22:23 16m anmol.karan123@gmail.com patch upstream OK
2020/09/10 17:51 0m anmol.karan123@gmail.com patch upstream error OK
2020/09/09 18:33 16m anmol.karan123@gmail.com patch upstream OK
2020/08/27 16:08 9m anmol.karan123@gmail.com upstream report log

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 6833 Comm: kworker/u5:1 Not tainted 5.9.0-rc2-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:4945 [inline]
RIP: 0010:hci_event_packet+0x8302/0x17e10 net/bluetooth/hci_event.c:6205
Code: 8d 9d 30 09 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 dc 8e 57 fa 48 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 bf 8e 57 fa 48 8b 1b 48 89 d8 48
RSP: 0018:ffffc9000100fac0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: ffff8880a7b1a540
RDX: ffff8880a7b1a540 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880a7a36000 R08: ffffffff875d4347 R09: fffffbfff131e23e
R10: fffffbfff131e23e R11: 0000000000000000 R12: ffff888088dd4010
R13: dffffc0000000000 R14: ffff8880a04cf80b R15: ffff888088dd4000
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f90bae626c0 CR3: 000000008c733000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_rx_work+0x246/0xa20 net/bluetooth/hci_core.c:4889
 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269
 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415
 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Modules linked in:
---[ end trace eead3edcace48c77 ]---
RIP: 0010:hci_phy_link_complete_evt net/bluetooth/hci_event.c:4945 [inline]
RIP: 0010:hci_event_packet+0x8302/0x17e10 net/bluetooth/hci_event.c:6205
Code: 8d 9d 30 09 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 dc 8e 57 fa 48 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 bf 8e 57 fa 48 8b 1b 48 89 d8 48
RSP: 0018:ffffc9000100fac0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: 0000000000000010 RCX: ffff8880a7b1a540
RDX: ffff8880a7b1a540 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880a7a36000 R08: ffffffff875d4347 R09: fffffbfff131e23e
R10: fffffbfff131e23e R11: 0000000000000000 R12: ffff888088dd4010
R13: dffffc0000000000 R14: ffff8880a04cf80b R15: ffff888088dd4000
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdec3a60000 CR3: 000000009328a000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/27 08:39 upstream 15bc20c6af4c 816e0689 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/04 05:39 upstream bcf876870b95 196277c4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 22:22 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 22:02 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 15:16 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 13:56 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 12:25 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 12:04 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 11:45 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/08/02 11:29 upstream ac3a0c847296 63a73341 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/09/24 20:47 upstream c9c9e6a49f89 54289b08 .config console log report info ci-upstream-kasan-gce-smack-root
2020/09/11 14:39 upstream 581cb3a26baf adfb8b4e .config console log report ci-upstream-kasan-gce-smack-root
2020/08/26 20:25 upstream 2ac69819ba9e 318430cb .config console log report ci-upstream-kasan-gce-smack-root
2020/08/07 20:34 upstream d6efb3ac3e6c cb436c69 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 12:36 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 12:29 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 11:16 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 10:36 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 10:36 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 10:36 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 10:36 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 09:58 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 09:58 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 09:58 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
2020/08/02 09:51 upstream ac3a0c847296 63a73341 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.