syzbot


BUG: corrupted list in hci_cmd_sync_dequeue_once

Status: upstream: reported on 2025/06/17 00:05
Reported-by: syzbot+d048b8cbd69df42fa6e4@syzkaller.appspotmail.com
First crash: 70d, last: 40d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in hci_cmd_sync_dequeue_once bluetooth 8 103 2d04h 309d 0/29 upstream: reported on 2024/10/21 08:48

Sample crash report:
list_del corruption, ffff888075e80400->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:58!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5101 Comm: kworker/u5:1 Not tainted 6.6.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: hci3 hci_conn_timeout
RIP: 0010:__list_del_entry_valid_or_report+0xe9/0x130 lib/list_debug.c:56
Code: 48 89 de e8 e9 bd 3c 06 0f 0b 48 c7 c7 00 7c fc 8a 48 89 de e8 d8 bd 3c 06 0f 0b 48 c7 c7 60 7c fc 8a 48 89 de e8 c7 bd 3c 06 <0f> 0b 48 c7 c7 c0 7c fc 8a 48 89 de e8 b6 bd 3c 06 0f 0b 48 c7 c7
RSP: 0018:ffffc9000fb4fac8 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff888075e80400 RCX: ec0fa58f9c554300
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff898190f0 R08: ffffc9000fb4f7c7 R09: 1ffff92001f69ef8
R10: dffffc0000000000 R11: fffff52001f69ef9 R12: dffffc0000000000
R13: 1ffff1100ebd0080 R14: dead000000000100 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd201de038 CR3: 00000000289e1000 CR4: 00000000003506f0
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 net/bluetooth/hci_sync.c:665 [inline]
 hci_cmd_sync_cancel_entry net/bluetooth/hci_sync.c:869 [inline]
 hci_cmd_sync_dequeue_once+0x244/0x370 net/bluetooth/hci_sync.c:888
 hci_cancel_connect_sync+0xc8/0x120 net/bluetooth/hci_sync.c:-1
 hci_abort_conn+0x18c/0x330 net/bluetooth/hci_conn.c:2898
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0xe9/0x130 lib/list_debug.c:56
Code: 48 89 de e8 e9 bd 3c 06 0f 0b 48 c7 c7 00 7c fc 8a 48 89 de e8 d8 bd 3c 06 0f 0b 48 c7 c7 60 7c fc 8a 48 89 de e8 c7 bd 3c 06 <0f> 0b 48 c7 c7 c0 7c fc 8a 48 89 de e8 b6 bd 3c 06 0f 0b 48 c7 c7
RSP: 0018:ffffc9000fb4fac8 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff888075e80400 RCX: ec0fa58f9c554300
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff898190f0 R08: ffffc9000fb4f7c7 R09: 1ffff92001f69ef8
R10: dffffc0000000000 R11: fffff52001f69ef9 R12: dffffc0000000000
R13: 1ffff1100ebd0080 R14: dead000000000100 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c40a683 CR3: 000000007d8f9000 CR4: 00000000003506f0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/16 16:30 linux-6.6.y 9247f4e6573a 124ec9cc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: corrupted list in hci_cmd_sync_dequeue_once
2025/06/17 00:04 linux-6.6.y c2603c511feb d1716036 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan BUG: corrupted list in hci_cmd_sync_dequeue_once
* Struck through repros no longer work on HEAD.