syzbot


BUG: corrupted list in hci_chan_del

Status: auto-closed as invalid on 2020/12/12 09:03
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+21e61af4106356a893be@syzkaller.appspotmail.com
First crash: 1344d, last: 1344d
Discussions (1)
Title Replies (including bot) Last reply
BUG: corrupted list in hci_chan_del 0 (1) 2020/08/14 06:01
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: corrupted list in hci_chan_del 1 1354d 1354d 0/1 auto-closed as invalid on 2020/12/02 12:13
upstream KASAN: use-after-free Read in hci_chan_del bluetooth C done done 87 1076d 1355d 0/26 auto-obsoleted due to no activity on 2023/04/13 23:02

Sample crash report:
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:51!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9688 Comm: syz-executor.5 Not tainted 5.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0xf/0x55 lib/list_debug.c:51
Code: e8 5a ab bf fd 0f 0b 48 89 f1 48 c7 c7 40 ff 93 88 4c 89 e6 e8 46 ab bf fd 0f 0b 48 89 ee 48 c7 c7 e0 00 94 88 e8 35 ab bf fd <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 20 00 94 88 e8 21 ab bf fd 0f 0b
RSP: 0018:ffffc90006327b38 EFLAGS: 00010286
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815dbc57 RDI: fffff52000c64f59
RBP: ffff8880a8b50800 R08: 0000000000000054 R09: ffff8880ae7318e7
R10: 0000000000000000 R11: 000000000004f178 R12: ffff88806311ab00
R13: ffffffff8920fd60 R14: fffffbfff1522408 R15: ffff8880a1befdd8
FS:  0000000000000000(0000) GS:ffff8880ae700000(0063) knlGS:00000000f551cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000090b3a8b CR3: 0000000099624000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __list_del_entry include/linux/list.h:132 [inline]
 list_del_rcu include/linux/rculist.h:158 [inline]
 hci_chan_del+0x3f/0x190 net/bluetooth/hci_conn.c:1733
 l2cap_conn_del+0x61b/0x9e0 net/bluetooth/l2cap_core.c:1900
 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:8160 [inline]
 l2cap_disconn_cfm+0x85/0xa0 net/bluetooth/l2cap_core.c:8153
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1438 [inline]
 hci_conn_hash_flush+0x114/0x220 net/bluetooth/hci_conn.c:1557
 hci_dev_do_close+0x5c6/0x1080 net/bluetooth/hci_core.c:1770
 hci_rfkill_set_block+0x15e/0x190 net/bluetooth/hci_core.c:2209
 rfkill_set_block+0x1f9/0x540 net/rfkill/core.c:341
 rfkill_fop_write+0x250/0x4a0 net/rfkill/core.c:1237
 vfs_write+0x2b0/0x730 fs/read_write.c:576
 ksys_write+0x1ee/0x250 fs/read_write.c:631
 do_syscall_32_irqs_on arch/x86/entry/common.c:84 [inline]
 __do_fast_syscall_32+0x57/0x80 arch/x86/entry/common.c:126
 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:149
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf7f22569
Code: 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000f551c0cc EFLAGS: 00000296 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000080
RDX: 00000000ffffffaa RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace fe3ebc227213a0e7 ]---
RIP: 0010:__list_del_entry_valid.cold+0xf/0x55 lib/list_debug.c:51
Code: e8 5a ab bf fd 0f 0b 48 89 f1 48 c7 c7 40 ff 93 88 4c 89 e6 e8 46 ab bf fd 0f 0b 48 89 ee 48 c7 c7 e0 00 94 88 e8 35 ab bf fd <0f> 0b 4c 89 ea 48 89 ee 48 c7 c7 20 00 94 88 e8 21 ab bf fd 0f 0b
RSP: 0018:ffffc90006327b38 EFLAGS: 00010286
RAX: 0000000000000054 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815dbc57 RDI: fffff52000c64f59
RBP: ffff8880a8b50800 R08: 0000000000000054 R09: ffff8880ae7318e7
R10: 0000000000000000 R11: 000000000004f178 R12: ffff88806311ab00
R13: ffffffff8920fd60 R14: fffffbfff1522408 R15: ffff8880a1befdd8
FS:  0000000000000000(0000) GS:ffff8880ae700000(0063) knlGS:00000000f551cb40
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00007f5a4f1e9028 CR3: 0000000099624000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/14 09:02 upstream a1d21081a60d 424dd8e7 .config console log report ci-upstream-kasan-gce-386
2020/08/13 22:29 upstream 990f227371a4 54ce1ed6 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.