syzbot


KMSAN: uninit-value in hci_event_packet

Status: closed as dup on 2020/07/24 21:34
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+4918ee47ac82d51de00d@syzkaller.appspotmail.com
First crash: 2071d, last: 1561d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: slab-out-of-bounds Read in hci_extended_inquiry_result_evt bluetooth C 16 1572d 1599d
Discussions (4)
Title Replies (including bot) Last reply
Reminder: 29 open syzbot bugs in bluetooth subsystem 1 (1) 2019/07/24 01:41
Reminder: 29 open syzbot bugs in bluetooth subsystem 1 (1) 2019/07/09 19:07
Reminder: 27 open syzbot bugs in bluetooth subsystem 1 (1) 2019/06/24 05:14
KMSAN: uninit-value in hci_event_packet 0 (1) 2019/04/14 00:16
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in hci_event_packet (3) bluetooth C 10 1244d 1335d 0/28 auto-obsoleted due to no activity on 2022/09/19 21:01
upstream KMSAN: uninit-value in hci_event_packet (2) bluetooth 4 1493d 1524d 0/28 auto-closed as invalid on 2021/02/19 21:04

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in hci_le_adv_report_evt net/bluetooth/hci_event.c:5565 [inline]
BUG: KMSAN: uninit-value in hci_le_meta_evt net/bluetooth/hci_event.c:5886 [inline]
BUG: KMSAN: uninit-value in hci_event_packet+0x9c58/0x39d30 net/bluetooth/hci_event.c:6155
CPU: 0 PID: 8487 Comm: kworker/u5:1 Not tainted 5.8.0-rc5-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:77 [inline]
 dump_stack+0x21c/0x280 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 hci_le_adv_report_evt net/bluetooth/hci_event.c:5565 [inline]
 hci_le_meta_evt net/bluetooth/hci_event.c:5886 [inline]
 hci_event_packet+0x9c58/0x39d30 net/bluetooth/hci_event.c:6155
 hci_rx_work+0x6df/0xd30 net/bluetooth/hci_core.c:4705
 process_one_work+0x1688/0x2140 kernel/workqueue.c:2269
 worker_thread+0x10bc/0x2730 kernel/workqueue.c:2415
 kthread+0x551/0x590 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:127
 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:80
 slab_alloc_node mm/slub.c:2839 [inline]
 __kmalloc_node_track_caller+0xeab/0x12e0 mm/slub.c:4478
 __kmalloc_reserve net/core/skbuff.c:142 [inline]
 __alloc_skb+0x35f/0xb30 net/core/skbuff.c:210
 alloc_skb include/linux/skbuff.h:1083 [inline]
 bt_skb_alloc include/net/bluetooth/bluetooth.h:377 [inline]
 vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline]
 vhci_write+0x18a/0x890 drivers/bluetooth/hci_vhci.c:285
 call_write_iter include/linux/fs.h:1908 [inline]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0xf9a/0x17c0 fs/read_write.c:578
 ksys_write+0x275/0x500 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:640
 __x64_sys_write+0x4a/0x70 fs/read_write.c:640
 do_syscall_64+0xad/0x160 arch/x86/entry/common.c:386
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
=====================================================

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/15 07:04 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config console log report syz C ci-upstream-kmsan-gce
2020/08/15 05:03 https://github.com/google/kmsan.git master ce8056d1f79e 424dd8e7 .config console log report syz C ci-upstream-kmsan-gce
2020/08/13 16:05 https://github.com/google/kmsan.git master ce8056d1f79e bc15f7db .config console log report syz C ci-upstream-kmsan-gce
2020/07/04 03:42 https://github.com/google/kmsan.git master f0d5ec902b23 51095195 .config console log report syz C ci-upstream-kmsan-gce
2020/03/16 20:35 https://github.com/google/kmsan.git master a58741ac26cc 749688d2 .config console log report syz C ci-upstream-kmsan-gce
2019/03/24 03:15 https://github.com/google/kmsan.git master c10a026b8dee a2cef203 .config console log report syz C ci-upstream-kmsan-gce
2020/08/02 19:04 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report syz C ci-upstream-kmsan-gce-386
2020/04/03 02:43 https://github.com/google/kmsan.git master 75303409203b a34e2c33 .config console log report syz C ci-upstream-kmsan-gce-386
2020/07/17 12:13 https://github.com/google/kmsan.git master f0d5ec902b23 54b3c45e .config console log report ci-upstream-kmsan-gce
2020/02/09 05:31 https://github.com/google/kmsan.git master 686a4f77cb0c 06150bf1 .config console log report ci-upstream-kmsan-gce
2020/02/04 19:52 https://github.com/google/kmsan.git master 686a4f77cb0c 93e5e335 .config console log report ci-upstream-kmsan-gce
2020/02/02 21:40 https://github.com/google/kmsan.git master 686a4f77cb0c 93e5e335 .config console log report ci-upstream-kmsan-gce
2019/12/28 01:42 https://github.com/google/kmsan.git master 997a8b55bc92 be5c2c81 .config console log report ci-upstream-kmsan-gce
2019/10/20 11:35 https://github.com/google/kmsan.git master 3c8ca70889aa 8c88c9c1 .config console log report ci-upstream-kmsan-gce
2019/04/27 08:51 https://github.com/google/kmsan.git master 199a02db1f61 b617407b .config console log report ci-upstream-kmsan-gce
2019/04/18 08:15 https://github.com/google/kmsan.git master 199a02db1f61 b0e8efcb .config console log report ci-upstream-kmsan-gce
2019/04/14 01:20 https://github.com/google/kmsan.git master 199a02db1f61 c402d8f1 .config console log report ci-upstream-kmsan-gce
2019/04/05 08:55 https://github.com/google/kmsan.git master 46200eb9666d e5d1b3ac .config console log report ci-upstream-kmsan-gce
2019/04/05 08:46 https://github.com/google/kmsan.git master 46200eb9666d e5d1b3ac .config console log report ci-upstream-kmsan-gce
2019/03/31 05:31 https://github.com/google/kmsan.git master 088c01ea0855 0c624d4d .config console log report ci-upstream-kmsan-gce
2019/03/24 02:34 https://github.com/google/kmsan.git master c10a026b8dee a2cef203 .config console log report ci-upstream-kmsan-gce
2020/08/08 00:22 https://github.com/google/kmsan.git master 05fd5f9f0208 cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/08 00:14 https://github.com/google/kmsan.git master 05fd5f9f0208 cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 23:22 https://github.com/google/kmsan.git master 05fd5f9f0208 cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 22:53 https://github.com/google/kmsan.git master 05fd5f9f0208 cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 16:14 https://github.com/google/kmsan.git master 93f54a72361a cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 15:03 https://github.com/google/kmsan.git master 93f54a72361a cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 14:45 https://github.com/google/kmsan.git master 93f54a72361a cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/07 14:39 https://github.com/google/kmsan.git master 93f54a72361a cb436c69 .config console log report ci-upstream-kmsan-gce-386
2020/08/03 01:30 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 16:48 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 12:29 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 12:23 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 12:16 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 12:16 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 11:41 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 11:40 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 11:39 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/08/02 11:31 https://github.com/google/kmsan.git master 93f54a72361a 63a73341 .config console log report ci-upstream-kmsan-gce-386
2020/07/17 12:21 https://github.com/google/kmsan.git master f0d5ec902b23 54b3c45e .config console log report ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.