syzbot


general protection fault in hci_phy_link_complete_evt

Status: upstream: reported C repro on 2020/08/02 20:45
Reported-by: syzbot+18e38290a2a263b31aa0@syzkaller.appspotmail.com
First crash: 855d, last: 728d

Cause bisection: introduced by (bisect log) :
commit b59abfbed638037f3b51eeb73266892cd2df177f
Author: Johannes Berg <johannes.berg@intel.com>
Date: Thu Sep 15 13:30:03 2016 +0000

  mac80211_hwsim: statically initialize hwsim_radios list

Crash: KASAN: null-ptr-deref Read (log)
Repro: C syz .config

Fix bisection: fixed by (bisect log) [merge commit]:
commit e1be4b5990c697f41a9e600a2b4ad228b7a71769
Author: David S. Miller <davem@davemloft.net>
Date: Tue Dec 8 23:58:49 2020 +0000

  Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in hci_phy_link_complete_evt C done 40 709d 855d 1/1 fixed on 2021/01/26 16:42
linux-4.19 general protection fault in hci_phy_link_complete_evt C done 28 713d 855d 1/1 fixed on 2021/01/22 19:25
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/27 15:30 16m retest repro linux-next OK log
2022/09/27 13:30 18m retest repro linux-next OK log
2022/09/27 10:30 16m retest repro linux-next OK log
2022/09/26 12:30 16m retest repro upstream OK log
2022/09/26 10:30 18m retest repro upstream OK log
2022/09/26 08:30 16m retest repro upstream OK log
2022/09/24 13:30 16m retest repro upstream OK log
2022/09/24 11:30 16m retest repro upstream OK log
2022/09/24 07:30 16m retest repro upstream OK log
2022/09/24 04:30 16m retest repro upstream OK log
2022/09/24 01:30 16m retest repro upstream OK log
2022/09/23 22:30 16m retest repro upstream OK log
2022/09/23 20:30 17m retest repro upstream report log
2022/09/23 17:30 16m retest repro upstream OK log
2022/09/13 11:27 16m retest repro upstream OK log
2022/09/13 07:27 16m retest repro upstream OK log
2022/09/08 20:27 16m retest repro upstream OK log
2020/09/11 14:40 16m anmol.karan123@gmail.com patch upstream OK

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: 0 PID: 7050 Comm: kworker/u5:1 Not tainted 5.8.0-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.isra.0+0x23e/0x790 net/bluetooth/hci_event.c:4926
Code: 48 c1 ea 03 80 3c 02 00 0f 85 3e 05 00 00 48 8b 9d 30 09 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 da 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffffc90002017a38 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff871ba1f3
RDX: 0000000000000002 RSI: ffffffff871ba200 RDI: 0000000000000010
RBP: ffff888086e8c000 R08: 0000000000000001 R09: ffff88808947ee88
R10: 0000000000000000 R11: 0000000000000183 R12: dffffc0000000000
R13: ffff88808e095110 R14: ffff88809ec6a40b R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7971a5a6c0 CR3: 000000009e082000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_event_packet+0x481a/0x86f5 net/bluetooth/hci_event.c:6180
 hci_rx_work+0x22e/0xb10 net/bluetooth/hci_core.c:4705
 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293
Modules linked in:
---[ end trace cf2084c317a8448f ]---
RIP: 0010:hci_phy_link_complete_evt.isra.0+0x23e/0x790 net/bluetooth/hci_event.c:4926
Code: 48 c1 ea 03 80 3c 02 00 0f 85 3e 05 00 00 48 8b 9d 30 09 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 da 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffffc90002017a38 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff871ba1f3
RDX: 0000000000000002 RSI: ffffffff871ba200 RDI: 0000000000000010
RBP: ffff888086e8c000 R08: 0000000000000001 R09: ffff88808947ee88
R10: 0000000000000000 R11: 0000000000000183 R12: dffffc0000000000
R13: ffff88808e095110 R14: ffff88809ec6a40b R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7971a5a6c0 CR3: 000000009e082000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (50):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2020/08/04 17:25 upstream c0842fbc1b18 80a06902 .config log report syz C
ci-upstream-kasan-gce 2020/11/24 00:28 upstream 418baf2c28f3 878fb17a .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/27 11:34 upstream 15bc20c6af4c 816e0689 .config log report syz C
ci-upstream-kasan-gce-root 2020/08/27 11:26 upstream 15bc20c6af4c 816e0689 .config log report syz C
ci-upstream-kasan-gce 2020/08/27 09:29 upstream 15bc20c6af4c 816e0689 .config log report syz C
ci-upstream-kasan-gce-root 2020/08/06 02:59 upstream fffe3ae0ee84 0487ea6f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 21:03 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 18:38 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 18:18 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 17:57 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 17:38 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/02 11:31 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-root 2020/08/02 11:24 upstream ac3a0c847296 63a73341 .config log report syz C
ci-upstream-kasan-gce-386 2020/08/27 08:40 upstream 15bc20c6af4c 816e0689 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/27 12:22 linux-next 88abac0b753d 816e0689 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/08 01:55 linux-next 01830e6c042e cb436c69 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/02 17:26 linux-next 01830e6c042e 63a73341 .config log report syz C
ci-upstream-kasan-gce 2020/12/07 17:45 upstream 0477e9288185 1190297f .config log report info
ci-upstream-kasan-gce 2020/12/02 14:19 upstream 509a15421674 c42a35e9 .config log report info
ci-upstream-kasan-gce-root 2020/11/08 15:17 upstream 4429f14aeea9 64069d48 .config log report info
ci-upstream-kasan-gce-root 2020/10/04 22:07 upstream 22fbc037cd32 5ef9c291 .config log report info
ci-upstream-kasan-gce 2020/10/04 04:08 upstream 22fbc037cd32 1a3f9408 .config log report info
ci-upstream-kasan-gce-root 2020/09/12 23:00 upstream 729e3d091984 ce441f06 .config log report
ci-upstream-kasan-gce-selinux-root 2020/09/09 04:04 upstream 612ab8ad6414 abf9ba4f .config log report
ci-upstream-kasan-gce-root 2020/08/31 14:18 upstream dcc5c6f013d8 d5a3ae1f .config log report
ci-upstream-kasan-gce-root 2020/08/30 05:33 upstream 1127b219ce94 d5a3ae1f .config log report
ci-upstream-kasan-gce-root 2020/08/17 02:36 upstream 2cc3c4b3c2e9 424dd8e7 .config log report
ci-upstream-kasan-gce-root 2020/08/02 12:38 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-root 2020/08/02 12:35 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 12:34 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-root 2020/08/02 11:20 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:47 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:47 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:47 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:40 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:35 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-selinux-root 2020/08/02 10:35 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-root 2020/08/02 10:15 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-kasan-gce-386 2020/09/24 10:07 upstream c9c9e6a49f89 54289b08 .config log report info
ci-qemu-upstream-386 2020/08/02 12:42 upstream ac3a0c847296 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/14 00:04 linux-next bc09acc9f224 54ce1ed6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/13 21:26 linux-next bc09acc9f224 54ce1ed6 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 16:49 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 16:44 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 16:43 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 12:39 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 12:31 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 11:22 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 09:36 linux-next 01830e6c042e 63a73341 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/08/02 09:36 linux-next 01830e6c042e 63a73341 .config log report
* Struck through repros no longer work on HEAD.