Tetsuo Handa
15f2a3de1a
misc: vmw_vmci: explicitly initialize vmci_notify_bm_set_msg struct
...
commit 376565b9717c30cd58ad33860fa42697615fa2e4 upstream.
KMSAN complains that the vmci_use_ppn64() == false path in
vmci_dbell_register_notification_bitmap() left upper 32bits of
bitmap_set_msg.bitmap_ppn64 member uninitialized.
=====================================================
BUG: KMSAN: uninit-value in kmsan_check_memory+0xd/0x10
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.11.0-rc7+ #4
Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 02/27/2020
Call Trace:
dump_stack+0x21c/0x280
kmsan_report+0xfb/0x1e0
kmsan_internal_check_memory+0x484/0x520
kmsan_check_memory+0xd/0x10
iowrite8_rep+0x86/0x380
vmci_send_datagram+0x150/0x280
vmci_dbell_register_notification_bitmap+0x133/0x1e0
vmci_guest_probe_device+0xcab/0x1e70
pci_device_probe+0xab3/0xe70
really_probe+0xd16/0x24d0
driver_probe_device+0x29d/0x3a0
device_driver_attach+0x25a/0x490
__driver_attach+0x78c/0x840
bus_for_each_dev+0x210/0x340
driver_attach+0x89/0xb0
bus_add_driver+0x677/0xc40
driver_register+0x485/0x8e0
__pci_register_driver+0x1ff/0x350
vmci_guest_init+0x3e/0x41
vmci_drv_init+0x1d6/0x43f
do_one_initcall+0x39c/0x9a0
do_initcall_level+0x1d7/0x259
do_initcalls+0x127/0x1cb
do_basic_setup+0x33/0x36
kernel_init_freeable+0x29a/0x3ed
kernel_init+0x1f/0x840
ret_from_fork+0x1f/0x30
Local variable ----bitmap_set_msg@vmci_dbell_register_notification_bitmap created at:
vmci_dbell_register_notification_bitmap+0x50/0x1e0
vmci_dbell_register_notification_bitmap+0x50/0x1e0
Bytes 28-31 of 32 are uninitialized
Memory access of size 32 starts at ffff88810098f570
=====================================================
Fixes: 83e2ec765be03e8a ("VMCI: doorbell implementation.")
Cc: <stable@vger.kernel.org>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Link: https://lore.kernel.org/r/20210402121742.3917-1-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-14 09:49:59 +02:00
..
2020-06-29 18:45:52 +02:00
2021-03-04 11:38:32 +01:00
2020-06-29 18:45:53 +02:00
2020-08-25 01:31:32 +10:00
2020-07-23 09:44:15 +02:00
2021-03-11 14:17:27 +01:00
2020-08-07 18:48:15 -07:00
2021-03-30 14:31:50 +02:00
2020-07-01 15:08:03 +02:00
2021-05-14 09:49:58 +02:00
2021-02-17 11:02:24 +01:00
2021-05-02 11:06:09 +02:00
2020-10-16 12:21:15 -07:00
2020-10-07 09:10:07 +02:00
2020-10-07 09:10:07 +02:00
2020-06-29 18:45:52 +02:00
2020-10-15 10:01:51 -07:00
2021-05-14 09:49:59 +02:00
2020-06-19 14:05:49 -06:00
2020-06-29 19:10:51 +02:00
2020-07-01 15:05:37 +02:00
2021-03-17 17:06:31 +01:00
2020-09-22 18:54:00 +02:00
2020-07-23 12:56:49 +02:00
2020-07-14 18:21:25 +02:00
2020-08-07 11:33:22 -07:00
2020-10-28 19:12:03 +01:00
2020-08-20 13:12:59 +02:00
2020-07-01 15:05:37 +02:00
2020-10-28 19:12:03 +01:00
2020-07-01 15:05:37 +02:00
2020-12-30 11:53:45 +01:00
2020-06-29 18:43:42 +02:00
2020-07-01 15:05:36 +02:00
2021-03-17 17:06:31 +01:00
2020-07-23 09:44:15 +02:00
2020-06-29 18:43:42 +02:00
2020-05-27 11:09:26 +02:00