syzbot


KMSAN: uninit-value in hci_cmd_complete_evt

Status: upstream: reported C repro on 2024/11/16 13:13
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+a9a4bedfca6aa9d7fa24@syzkaller.appspotmail.com
First crash: 229d, last: 5d08h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] KMSAN: uninit-value in hci_cmd_complete_evt 0 (2) 2025/02/24 07:19
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/06/24 04:45 28m retest repro upstream report log
2025/06/06 12:47 25m retest repro upstream report log
2025/03/18 07:06 23m retest repro upstream report log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in hci_cmd_complete_evt+0xbc7/0xe50 net/bluetooth/hci_event.c:4247
 hci_cmd_complete_evt+0xbc7/0xe50 net/bluetooth/hci_event.c:4247
 hci_event_func net/bluetooth/hci_event.c:7508 [inline]
 hci_event_packet+0xce2/0x1e40 net/bluetooth/hci_event.c:7565
 hci_rx_work+0x9a8/0x12b0 net/bluetooth/hci_core.c:4036
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xb8e/0x1d80 kernel/workqueue.c:3321
 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402
 kthread+0xd5c/0xf00 kernel/kthread.c:464
 ret_from_fork+0x1e3/0x310 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was stored to memory at:
 hci_cmd_complete_evt+0xbc0/0xe50 net/bluetooth/hci_event.c:4247
 hci_event_func net/bluetooth/hci_event.c:7508 [inline]
 hci_event_packet+0xce2/0x1e40 net/bluetooth/hci_event.c:7565
 hci_rx_work+0x9a8/0x12b0 net/bluetooth/hci_core.c:4036
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xb8e/0x1d80 kernel/workqueue.c:3321
 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402
 kthread+0xd5c/0xf00 kernel/kthread.c:464
 ret_from_fork+0x1e3/0x310 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was stored to memory at:
 hci_cmd_complete_evt+0x775/0xe50 net/bluetooth/hci_event.c:-1
 hci_event_func net/bluetooth/hci_event.c:7508 [inline]
 hci_event_packet+0xce2/0x1e40 net/bluetooth/hci_event.c:7565
 hci_rx_work+0x9a8/0x12b0 net/bluetooth/hci_core.c:4036
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xb8e/0x1d80 kernel/workqueue.c:3321
 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402
 kthread+0xd5c/0xf00 kernel/kthread.c:464
 ret_from_fork+0x1e3/0x310 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:4154 [inline]
 slab_alloc_node mm/slub.c:4197 [inline]
 kmem_cache_alloc_node_noprof+0x818/0xf00 mm/slub.c:4249
 kmalloc_reserve+0x13c/0x4b0 net/core/skbuff.c:579
 __alloc_skb+0x347/0x7d0 net/core/skbuff.c:670
 alloc_skb include/linux/skbuff.h:1336 [inline]
 bt_skb_alloc include/net/bluetooth/bluetooth.h:500 [inline]
 vhci_get_user drivers/bluetooth/hci_vhci.c:488 [inline]
 vhci_write+0x125/0x960 drivers/bluetooth/hci_vhci.c:608
 new_sync_write fs/read_write.c:593 [inline]
 vfs_write+0xb48/0x1580 fs/read_write.c:686
 ksys_write fs/read_write.c:738 [inline]
 __do_sys_write fs/read_write.c:749 [inline]
 __se_sys_write fs/read_write.c:746 [inline]
 __x64_sys_write+0x1fb/0x4d0 fs/read_write.c:746
 x64_sys_call+0x38c3/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

CPU: 1 UID: 0 PID: 5094 Comm: kworker/u9:1 Not tainted 6.16.0-rc1-syzkaller #0 PREEMPT(undef) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: hci0 hci_rx_work
=====================================================

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/09 22:58 upstream 19272b37aa4f 4826c28e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 07:18 upstream d082ecbc71e9 d34966d1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/06/09 14:34 upstream 19272b37aa4f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/05/23 12:35 upstream 94305e83eccb fa44301a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/05/23 12:30 upstream 94305e83eccb fa44301a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/03/19 12:03 upstream 81e4f8d68c66 8d0a2921 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/03/19 12:03 upstream 81e4f8d68c66 8d0a2921 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/03/04 07:06 upstream 99fa936e8e4f c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 17:42 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 02:56 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 02:56 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/22 17:39 upstream ff202c5028a1 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/02 18:28 upstream a86bf2283d2c 568559e4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2024/12/20 15:40 upstream 8faabc041a00 1d58202c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2024/11/12 13:07 upstream 2d5404caa8c7 75bb1b32 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/05/22 07:27 upstream 4a95bc121ccd 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/05/22 07:27 upstream 4a95bc121ccd 0919b50b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/04/02 16:32 upstream acc4d5ff0b61 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/04/02 16:32 upstream acc4d5ff0b61 c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 05:31 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/24 05:31 upstream d082ecbc71e9 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/23 20:33 upstream 27102b38b8ca d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
2025/02/23 20:33 upstream 27102b38b8ca d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in hci_cmd_complete_evt
* Struck through repros no longer work on HEAD.