================================================================== BUG: KMSAN: uninit-value in memcmp lib/string.c:898 [inline] BUG: KMSAN: uninit-value in bcmp+0x117/0x180 lib/string.c:920 CPU: 0 PID: 12513 Comm: kworker/u5:2 Not tainted 5.2.0-rc4+ #3 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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan.c:611 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:304 memcmp lib/string.c:898 [inline] bcmp+0x117/0x180 lib/string.c:920 bacmp include/net/bluetooth/bluetooth.h:232 [inline] hci_inquiry_cache_lookup net/bluetooth/hci_core.c:1093 [inline] hci_inquiry_cache_update+0x430/0x19a0 net/bluetooth/hci_core.c:1168 hci_inquiry_result_with_rssi_evt net/bluetooth/hci_event.c:4007 [inline] hci_event_packet+0x8ef4/0x34b60 net/bluetooth/hci_event.c:5875 hci_rx_work+0x478/0xcc0 net/bluetooth/hci_core.c:4459 process_one_work+0x1572/0x1f00 kernel/workqueue.c:2269 worker_thread+0x111b/0x2460 kernel/workqueue.c:2415 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_save_stack mm/kmsan/kmsan.c:213 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:414 kmsan_memcpy_memmove_metadata+0x9f9/0xe00 mm/kmsan/kmsan.c:297 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:317 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:139 bacpy include/net/bluetooth/bluetooth.h:236 [inline] hci_inquiry_result_with_rssi_evt net/bluetooth/hci_event.c:3998 [inline] hci_event_packet+0x8d18/0x34b60 net/bluetooth/hci_event.c:5875 hci_rx_work+0x478/0xcc0 net/bluetooth/hci_core.c:4459 process_one_work+0x1572/0x1f00 kernel/workqueue.c:2269 worker_thread+0x111b/0x2460 kernel/workqueue.c:2415 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:160 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:177 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:186 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2763 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4390 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:1055 [inline] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:165 [inline] vhci_write+0x15b/0x7e0 drivers/bluetooth/hci_vhci.c:284 call_write_iter include/linux/fs.h:1872 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0xa2c/0xcb0 fs/read_write.c:496 vfs_write+0x481/0x920 fs/read_write.c:558 ksys_write+0x265/0x430 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write+0x92/0xb0 fs/read_write.c:620 __x64_sys_write+0x4a/0x70 fs/read_write.c:620 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================