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: 1d07h, last: 1d07h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: corrupted list in hci_cmd_sync_dequeue_once bluetooth 55 22m 239d 0/28 upstream: reported on 2024/10/21 08:48

Sample crash report:
list_del corruption, ffff88805f901a00->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: 5774 Comm: kworker/u5:2 Not tainted 6.6.93-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 29 7e 34 06 0f 0b 48 c7 c7 00 6b fc 8a 48 89 de e8 18 7e 34 06 0f 0b 48 c7 c7 60 6b fc 8a 48 89 de e8 07 7e 34 06 <0f> 0b 48 c7 c7 c0 6b fc 8a 48 89 de e8 f6 7d 34 06 0f 0b 48 c7 c7
RSP: 0018:ffffc900045cfac8 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff88805f901a00 RCX: 3b5c73d431bd4800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff89790a30 R08: ffffc900045cf7c7 R09: 1ffff920008b9ef8
R10: dffffc0000000000 R11: fffff520008b9ef9 R12: dffffc0000000000
R13: 1ffff1100bf20340 R14: dead000000000100 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f395b2a4f22 CR3: 000000002c55a000 CR4: 00000000003506f0
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 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 29 7e 34 06 0f 0b 48 c7 c7 00 6b fc 8a 48 89 de e8 18 7e 34 06 0f 0b 48 c7 c7 60 6b fc 8a 48 89 de e8 07 7e 34 06 <0f> 0b 48 c7 c7 c0 6b fc 8a 48 89 de e8 f6 7d 34 06 0f 0b 48 c7 c7
RSP: 0018:ffffc900045cfac8 EFLAGS: 00010246
RAX: 000000000000004e RBX: ffff88805f901a00 RCX: 3b5c73d431bd4800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff89790a30 R08: ffffc900045cf7c7 R09: 1ffff920008b9ef8
R10: dffffc0000000000 R11: fffff520008b9ef9 R12: dffffc0000000000
R13: 1ffff1100bf20340 R14: dead000000000100 R15: dead000000000122
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c300462 CR3: 000000002c55a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.