syzbot


KMSAN: uninit-value in hci_phy_link_complete_evt

Status: auto-obsoleted due to no activity on 2022/09/21 07:28
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+6f0fd088eee9708bb4e9@syzkaller.appspotmail.com
First crash: 919d, last: 919d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] KMSAN: uninit-value in hci_phy_link_complete_evt 0 (1) 2021/10/21 10:56
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/09/21 05:29 22m retest repro https://github.com/google/kmsan.git master OK log
2022/09/21 03:29 21m retest repro https://github.com/google/kmsan.git master OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in hci_conn_hash_lookup_handle include/net/bluetooth/hci_core.h:988 [inline]
BUG: KMSAN: uninit-value in hci_phy_link_complete_evt+0x1a9/0x8b0 net/bluetooth/hci_event.c:5047
 hci_conn_hash_lookup_handle include/net/bluetooth/hci_core.h:988 [inline]
 hci_phy_link_complete_evt+0x1a9/0x8b0 net/bluetooth/hci_event.c:5047
 hci_event_packet+0x893/0x22e0 net/bluetooth/hci_event.c:6458
 hci_rx_work+0x6ae/0xd10 net/bluetooth/hci_core.c:5136
 process_one_work+0xdc7/0x1760 kernel/workqueue.c:2297
 worker_thread+0x1101/0x22b0 kernel/workqueue.c:2444
 kthread+0x66b/0x780 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30

Uninit was created at:
 slab_alloc_node mm/slub.c:3221 [inline]
 __kmalloc_node_track_caller+0x8d2/0x1340 mm/slub.c:4955
 kmalloc_reserve net/core/skbuff.c:355 [inline]
 __alloc_skb+0x4db/0xe40 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1116 [inline]
 bt_skb_alloc include/net/bluetooth/bluetooth.h:389 [inline]
 vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline]
 vhci_write+0x182/0x8f0 drivers/bluetooth/hci_vhci.c:285
 call_write_iter include/linux/fs.h:2163 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x1295/0x1f20 fs/read_write.c:594
 ksys_write+0x28c/0x520 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0xdb/0x120 fs/read_write.c:656
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae
=====================================================
Kernel panic - not syncing: panic_on_kmsan set ...
CPU: 0 PID: 144 Comm: kworker/u5:0 Tainted: G    B             5.15.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: hci0 hci_rx_work
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1ff/0x28e lib/dump_stack.c:106
 dump_stack+0x25/0x28 lib/dump_stack.c:113
 panic+0x44f/0xdeb kernel/panic.c:232
 kmsan_report+0x2ee/0x300 mm/kmsan/report.c:168
 __msan_warning+0xa9/0xf0 mm/kmsan/instrumentation.c:199
 hci_conn_hash_lookup_handle include/net/bluetooth/hci_core.h:988 [inline]
 hci_phy_link_complete_evt+0x1a9/0x8b0 net/bluetooth/hci_event.c:5047
 hci_event_packet+0x893/0x22e0 net/bluetooth/hci_event.c:6458
 hci_rx_work+0x6ae/0xd10 net/bluetooth/hci_core.c:5136
 process_one_work+0xdc7/0x1760 kernel/workqueue.c:2297
 worker_thread+0x1101/0x22b0 kernel/workqueue.c:2444
 kthread+0x66b/0x780 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/17 21:43 https://github.com/google/kmsan.git master d6493d2046c4 0c5d9412 .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in hci_phy_link_complete_evt
2021/10/17 11:49 https://github.com/google/kmsan.git master d6493d2046c4 0c5d9412 .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in hci_phy_link_complete_evt
2021/10/17 10:24 https://github.com/google/kmsan.git master d6493d2046c4 0c5d9412 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_phy_link_complete_evt
* Struck through repros no longer work on HEAD.