syzbot


general protection fault in qca_setup

Status: fixed on 2019/11/09 22:22
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+8c0dbf8843bb75efaa05@syzkaller.appspotmail.com
Fix commit: b36a1552d731 Bluetooth: hci_uart: check for missing tty operations
First crash: 2121d, last: 2121d
Cause bisection: introduced by (bisect log) :
commit 0ff252c1976da5d80db1377eb39b551931e61826
Author: Ben Young Tae Kim <ytkim@qca.qualcomm.com>
Date: Mon Aug 10 21:24:17 2015 +0000

  Bluetooth: hciuart: Add support QCA chipset for UART

Crash: no output from test machine (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit b36a1552d7319bbfd5cf7f08726c23c5c66d4f73
Author: Vladis Dronov <vdronov@redhat.com>
Date: Tue Jul 30 09:33:45 2019 +0000

  Bluetooth: hci_uart: check for missing tty operations

  
Discussions (4)
Title Replies (including bot) Last reply
general protection fault in qca_setup 1 (4) 2019/11/08 08:53
Reminder: 29 open syzbot bugs in bluetooth subsystem 1 (1) 2019/07/24 01:41
Reminder: 29 open syzbot bugs in bluetooth subsystem 1 (1) 2019/07/09 19:07
Reminder: 27 open syzbot bugs in bluetooth subsystem 1 (1) 2019/06/24 05:14

Sample crash report:
audit: type=1400 audit(1549889850.139:36): avc:  denied  { map } for  pid=8216 comm="syz-executor800" path="/root/syz-executor800163859" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
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: 0 PID: 1171 Comm: kworker/u5:0 Not tainted 5.0.0-rc6 #67
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_power_on
RIP: 0010:serdev_device_get_drvdata include/linux/serdev.h:125 [inline]
RIP: 0010:qca_setup+0x134/0x1550 drivers/bluetooth/hci_qca.c:1180
Code: c1 ea 03 80 3c 02 00 0f 85 08 12 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 08 49 8d bc 24 f8 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d7 11 00 00 4d 8b ac 24 f8 00 00 00 49 8d 85 f0
RSP: 0018:ffff8880a790fa00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a6150d40 RCX: ffffffff84ecfa52
RDX: 000000000000001f RSI: ffffffff84ee0c01 RDI: 00000000000000f8
RBP: ffff8880a790fb50 R08: ffff8880a7fe8300 R09: 0000000000000004
R10: ffffed1012ea9c4d R11: ffff88809754e26f R12: 0000000000000000
R13: ffff888091e75480 R14: ffff8880a790fb28 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff408dc9000 CR3: 0000000095a80000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hci_uart_setup+0x1c4/0x490 drivers/bluetooth/hci_ldisc.c:418
 hci_dev_do_open+0x67e/0x14b0 net/bluetooth/hci_core.c:1423
 hci_power_on+0x10d/0x580 net/bluetooth/hci_core.c:2130
 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173
 worker_thread+0x98/0xe40 kernel/workqueue.c:2319
 kthread+0x357/0x430 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 775b2637328f948f ]---
RIP: 0010:serdev_device_get_drvdata include/linux/serdev.h:125 [inline]
RIP: 0010:qca_setup+0x134/0x1550 drivers/bluetooth/hci_qca.c:1180
Code: c1 ea 03 80 3c 02 00 0f 85 08 12 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 63 08 49 8d bc 24 f8 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d7 11 00 00 4d 8b ac 24 f8 00 00 00 49 8d 85 f0
RSP: 0018:ffff8880a790fa00 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a6150d40 RCX: ffffffff84ecfa52
RDX: 000000000000001f RSI: ffffffff84ee0c01 RDI: 00000000000000f8
RBP: ffff8880a790fb50 R08: ffff8880a7fe8300 R09: 0000000000000004
R10: ffffed1012ea9c4d R11: ffff88809754e26f R12: 0000000000000000
R13: ffff888091e75480 R14: ffff8880a790fb28 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff408dc9000 CR3: 0000000095a80000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/02/11 13:00 upstream d13937116f1e 73f5f452 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/02/11 12:47 upstream d13937116f1e 73f5f452 .config console log report syz C ci-upstream-kasan-gce
2019/02/11 09:04 upstream d13937116f1e b4f792e4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/02/11 09:40 upstream d13937116f1e b4f792e4 .config console log report syz C ci-upstream-kasan-gce-386
2019/02/11 10:01 linux-next d4104460aec1 b4f792e4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/02/11 08:45 upstream d13937116f1e b4f792e4 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.