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: 62d, last: 37d
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, ffff88802d40b500->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.12.0-rc3-syzkaller-00013-geca631b8fe80 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: hci0 hci_conn_timeout
RIP: 0010:__list_del_entry_valid_or_report+0x108/0x1c0 lib/list_debug.c:56
Code: c7 c7 e0 98 d1 8b e8 d7 65 da fc 90 0f 0b 48 c7 c7 40 99 d1 8b e8 c8 65 da fc 90 0f 0b 48 c7 c7 a0 99 d1 8b e8 b9 65 da fc 90 <0f> 0b 48 89 ca 48 c7 c7 00 9a d1 8b e8 a7 65 da fc 90 0f 0b 48 89
RSP: 0018:ffffc90000bf7be0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff88802d40b500 RCX: ffffffff816d46e9
RDX: 0000000000000000 RSI: ffffffff816defe6 RDI: 0000000000000005
RBP: ffff888054d78000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 00000000000000ed R12: ffff88802d40b508
R13: dffffc0000000000 R14: ffff888054d78618 R15: ffff88802d40b500
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb936600020 CR3: 00000000284b4000 CR4: 0000000000350ef0
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:643
 hci_cmd_sync_cancel_entry net/bluetooth/hci_sync.c:847 [inline]
 hci_cmd_sync_dequeue_once net/bluetooth/hci_sync.c:866 [inline]
 hci_cancel_connect_sync+0x103/0x2c0 net/bluetooth/hci_sync.c:6844
 hci_abort_conn+0x163/0x340 net/bluetooth/hci_conn.c:2951
 hci_conn_timeout+0x1ab/0x220 net/bluetooth/hci_conn.c:579
 process_one_work+0x9c8/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c4/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x48/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 e0 98 d1 8b e8 d7 65 da fc 90 0f 0b 48 c7 c7 40 99 d1 8b e8 c8 65 da fc 90 0f 0b 48 c7 c7 a0 99 d1 8b e8 b9 65 da fc 90 <0f> 0b 48 89 ca 48 c7 c7 00 9a d1 8b e8 a7 65 da fc 90 0f 0b 48 89
RSP: 0018:ffffc90000bf7be0 EFLAGS: 00010286
RAX: 000000000000004e RBX: ffff88802d40b500 RCX: ffffffff816d46e9
RDX: 0000000000000000 RSI: ffffffff816defe6 RDI: 0000000000000005
RBP: ffff888054d78000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 00000000000000ed R12: ffff88802d40b508
R13: dffffc0000000000 R14: ffff888054d78618 R15: ffff88802d40b500
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb936600020 CR3: 00000000247b8000 CR4: 0000000000350ef0

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