syzbot


BUG: corrupted list in _hci_cmd_sync_cancel_entry

Status: upstream: reported on 2024/09/27 14:53
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+01fdb2cc3f0b4ddcfcf1@syzkaller.appspotmail.com
First crash: 153d, last: 78d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] BUG: corrupted list in _hci_cmd_sync_cancel_entry 0 (1) 2024/09/27 14:53

Sample crash report:
list_del corruption, ffff888027925700->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:56!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 54 Comm: kworker/u9:0 Not tainted 6.13.0-rc1-syzkaller-00001-ge70140ba0d2b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: hci4 hci_conn_timeout
RIP: 0010:__list_del_entry_valid_or_report+0x108/0x1c0 lib/list_debug.c:56
Code: c7 c7 40 b7 d1 8b e8 07 23 d3 fc 90 0f 0b 48 c7 c7 a0 b7 d1 8b e8 f8 22 d3 fc 90 0f 0b 48 c7 c7 00 b8 d1 8b e8 e9 22 d3 fc 90 <0f> 0b 48 89 ca 48 c7 c7 60 b8 d1 8b e8 d7 22 d3 fc 90 0f 0b 48 89
RSP: 0018:ffffc90000bf7be0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff888027925700 RCX: ffffffff81794fa9
RDX: 0000000000000000 RSI: ffffffff8179f976 RDI: 0000000000000005
RBP: ffff88802a7cc000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffff888027925708
R13: dffffc0000000000 R14: ffff88802a7cc618 R15: ffff888027925700
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c3145e2 CR3: 000000002819e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:124 [inline]
 __list_del_entry include/linux/list.h:215 [inline]
 list_del include/linux/list.h:229 [inline]
 _hci_cmd_sync_cancel_entry.constprop.0+0x80/0x1d0 net/bluetooth/hci_sync.c:647
 hci_cmd_sync_cancel_entry net/bluetooth/hci_sync.c:851 [inline]
 hci_cmd_sync_dequeue_once net/bluetooth/hci_sync.c:870 [inline]
 hci_cancel_connect_sync+0xfa/0x2b0 net/bluetooth/hci_sync.c:6861
 hci_abort_conn+0x15a/0x340 net/bluetooth/hci_conn.c:3057
 hci_conn_timeout+0x1a2/0x210 net/bluetooth/hci_conn.c:579
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x108/0x1c0 lib/list_debug.c:56
Code: c7 c7 40 b7 d1 8b e8 07 23 d3 fc 90 0f 0b 48 c7 c7 a0 b7 d1 8b e8 f8 22 d3 fc 90 0f 0b 48 c7 c7 00 b8 d1 8b e8 e9 22 d3 fc 90 <0f> 0b 48 89 ca 48 c7 c7 60 b8 d1 8b e8 d7 22 d3 fc 90 0f 0b 48 89
RSP: 0018:ffffc90000bf7be0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff888027925700 RCX: ffffffff81794fa9
RDX: 0000000000000000 RSI: ffffffff8179f976 RDI: 0000000000000005
RBP: ffff88802a7cc000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: ffff888027925708
R13: dffffc0000000000 R14: ffff88802a7cc618 R15: ffff888027925700
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c3145e2 CR3: 000000002819e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/02 20:51 upstream e70140ba0d2b bb326ffb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: corrupted list in _hci_cmd_sync_cancel_entry
2024/10/15 03:58 upstream eca631b8fe80 b01b6661 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: corrupted list in _hci_cmd_sync_cancel_entry
2024/09/19 12:53 upstream a430d95c5efa c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: corrupted list in _hci_cmd_sync_cancel_entry
* Struck through repros no longer work on HEAD.