syzbot


KMSAN: uninit-value in hci_event_packet (3)

Status: auto-obsoleted due to no activity on 2022/09/19 21:01
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+b12240a286aa7cd4f3fb@syzkaller.appspotmail.com
First crash: 1126d, last: 1031d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] KMSAN: uninit-value in hci_event_packet (3) 0 (1) 2021/03/29 15:43
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in hci_event_packet (2) bluetooth 4 1280d 1311d 0/26 auto-closed as invalid on 2021/02/19 21:04
upstream KMSAN: uninit-value in hci_event_packet bluetooth C 40 1348d 1838d 0/26 closed as dup on 2020/07/24 21:34
Last patch testing requests (4)
Created Duration User Patch Repo Result
2022/09/19 19:29 22m retest repro https://github.com/google/kmsan.git master OK log
2022/09/19 17:29 22m retest repro https://github.com/google/kmsan.git master OK log
2022/09/19 14:29 22m retest repro https://github.com/google/kmsan.git master OK log
2022/04/15 14:30 20m fujimotokosuke0@gmail.com https://github.com/google/kmsan.git master report log

Sample crash report:
Bluetooth: hci0: advertising data len corrected 14 -> 0
Bluetooth: hci0: Dropping invalid advertising data
=====================================================
BUG: KMSAN: uninit-value in hci_le_adv_report_evt net/bluetooth/hci_event.c:5625 [inline]
BUG: KMSAN: uninit-value in hci_le_meta_evt net/bluetooth/hci_event.c:5946 [inline]
BUG: KMSAN: uninit-value in hci_event_packet+0x10419/0x39e50 net/bluetooth/hci_event.c:6287
CPU: 0 PID: 8225 Comm: kworker/u5:2 Not tainted 5.12.0-rc6-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:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197
 hci_le_adv_report_evt net/bluetooth/hci_event.c:5625 [inline]
 hci_le_meta_evt net/bluetooth/hci_event.c:5946 [inline]
 hci_event_packet+0x10419/0x39e50 net/bluetooth/hci_event.c:6287
 hci_rx_work+0x744/0xcf0 net/bluetooth/hci_core.c:5088
 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275
 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421
 kthread+0x521/0x560 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:103
 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76
 slab_alloc_node mm/slub.c:2922 [inline]
 __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609
 kmalloc_reserve net/core/skbuff.c:353 [inline]
 __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424
 alloc_skb include/linux/skbuff.h:1103 [inline]
 bt_skb_alloc include/net/bluetooth/bluetooth.h:389 [inline]
 vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline]
 vhci_write+0x18a/0x880 drivers/bluetooth/hci_vhci.c:285
 call_write_iter include/linux/fs.h:1977 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x1083/0x1b00 fs/read_write.c:605
 ksys_write+0x275/0x500 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:667
 __x64_sys_write+0x4a/0x70 fs/read_write.c:667
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xae
=====================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/26 15:25 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/06/18 11:22 https://github.com/google/kmsan.git master bfeba8b4c158 aba2b2fb .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/03/25 22:08 https://github.com/google/kmsan.git master 29ad81a1074a 6a383ecf .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/06/28 17:44 https://github.com/google/kmsan.git master 57b5797c8013 9d2ab5df .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/06/05 10:19 https://github.com/google/kmsan.git master 6099c9da2f7d 500c2339 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/05/21 06:14 https://github.com/google/kmsan.git master 6099c9da2f7d 3c7fef33 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/04/01 01:28 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/03/31 08:27 https://github.com/google/kmsan.git master 29ad81a1074a 6a81331a .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/03/25 17:21 https://github.com/google/kmsan.git master 29ad81a1074a 6a383ecf .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in hci_event_packet
2021/05/04 16:18 https://github.com/google/kmsan.git master 4ebaab5fb428 09efdd63 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in hci_event_packet
* Struck through repros no longer work on HEAD.