Tetsuo Handa
4e772cfd1a
misc: vmw_vmci: explicitly initialize vmci_datagram payload
commit b2192cfeba upstream.
KMSAN complains that vmci_check_host_caps() left the payload part of
check_msg uninitialized.
=====================================================
BUG: KMSAN: uninit-value in kmsan_check_memory+0xd/0x10
CPU: 1 PID: 1 Comm: swapper/0 Tainted: G B 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+0x202/0x520
kmsan_check_memory+0xd/0x10
iowrite8_rep+0x86/0x380
vmci_guest_probe_device+0xf0b/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
Uninit was created at:
kmsan_internal_poison_shadow+0x5c/0xf0
kmsan_slab_alloc+0x8d/0xe0
kmem_cache_alloc+0x84f/0xe30
vmci_guest_probe_device+0xd11/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
Bytes 28-31 of 36 are uninitialized
Memory access of size 36 starts at ffff8881675e5f00
=====================================================
Fixes: 1f16643991 ("VMCI: guest side driver 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-2-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 10:40:21 +02:00
..
2021-05-22 10:40:15 +02:00
2021-03-03 17:44:38 +01:00
2020-08-21 11:01:55 +02:00
2021-03-03 17:44:35 +01:00
2021-03-30 14:41:39 +02:00
2018-02-13 12:35:55 +01:00
2021-01-12 19:49:05 +01:00
2020-01-29 10:24:31 +01:00
2021-03-30 14:41:43 +02:00
2020-01-12 11:24:16 +01:00
2021-03-30 14:41:40 +02:00
2020-01-04 13:41:02 +01:00
2021-04-16 11:59:07 +02:00
2021-05-22 10:40:17 +02:00
2021-03-03 17:44:37 +01:00
2021-01-17 13:57:54 +01:00
2020-06-20 10:24:18 +02:00
2020-12-29 13:44:55 +01:00
2018-02-28 10:18:33 +01:00
2020-10-01 20:40:02 +02:00
2021-04-28 12:07:14 +02:00
2019-12-21 10:42:32 +01:00
2020-10-29 09:05:32 +01:00
2021-05-22 10:40:17 +02:00
2021-04-07 12:05:40 +02:00
2020-07-09 09:35:57 +02:00
2021-03-03 17:44:44 +01:00
2021-05-22 10:40:18 +02:00
2021-04-28 12:07:16 +02:00
2020-12-29 13:44:56 +01:00
2020-09-23 08:46:15 +02:00
2021-03-17 16:10:18 +01:00
2021-05-22 10:40:16 +02:00
2021-03-03 17:44:40 +01:00
2020-09-12 11:47:36 +02:00
2019-05-14 19:19:34 +02:00
2021-04-16 11:59:05 +02:00
2021-04-16 11:59:08 +02:00
2021-04-28 12:07:15 +02:00
2021-03-11 13:48:03 +01:00
2020-12-29 13:45:00 +01:00
2021-04-10 13:04:44 +02:00
2021-02-03 23:19:50 +01:00
2020-06-20 10:24:21 +02:00
2019-08-04 09:33:41 +02:00
2017-09-09 17:39:41 +02:00
2021-05-22 10:40:20 +02:00
2021-05-22 10:40:19 +02:00
2020-11-10 10:23:55 +01:00
2020-12-29 13:44:58 +01:00
2020-11-10 10:23:57 +01:00
2021-03-03 17:44:38 +01:00
2021-05-22 10:40:21 +02:00
2021-05-22 10:40:15 +02:00
2021-03-03 17:44:43 +01:00
2021-05-22 10:40:20 +02:00
2020-12-29 13:45:00 +01:00
2020-10-29 09:05:41 +01:00
2021-03-03 17:44:44 +01:00
2021-03-24 10:59:23 +01:00
2020-06-11 09:22:22 +02:00
2021-03-03 17:44:37 +01:00
2020-08-21 11:02:06 +02:00
2020-01-04 13:39:55 +01:00
2021-05-22 10:40:16 +02:00
2018-11-13 11:16:46 -08:00
2019-08-06 18:29:41 +02:00
2021-05-22 10:40:16 +02:00
2021-04-07 12:05:40 +02:00
2021-05-22 10:40:15 +02:00
2021-05-22 10:40:18 +02:00
2020-11-10 21:04:57 +01:00
2019-08-04 09:33:45 +02:00
2020-12-29 13:45:00 +01:00
2020-05-20 08:15:33 +02:00
2021-03-03 17:44:39 +01:00
2020-10-29 09:05:39 +01:00
2021-03-03 17:44:37 +01:00
2021-02-23 13:59:14 +01:00
2019-11-25 09:53:42 +01:00
2018-11-13 11:17:03 -08:00
2020-11-10 10:23:59 +01:00
2021-03-17 16:10:15 +01:00
2018-12-21 14:11:36 +01:00
2021-05-22 10:40:18 +02:00
2021-04-16 11:59:08 +02:00
2021-05-22 10:40:16 +02:00
2017-07-27 15:08:08 -07:00
2019-05-31 06:48:12 -07:00
2021-04-07 12:05:41 +02:00
2021-05-22 10:40:17 +02:00
2018-11-13 11:17:02 -08:00
2020-09-12 11:47:34 +02:00
2019-11-06 12:18:14 +01:00
2021-03-07 11:25:57 +01:00
2020-07-22 09:10:53 +02:00
2021-05-22 10:40:20 +02:00
2018-10-03 17:01:42 -07:00
2021-01-09 13:35:48 +01:00
2021-04-07 12:05:39 +02:00
2021-05-22 10:40:16 +02:00
2020-10-29 09:05:35 +01:00
2020-08-26 10:29:05 +02:00
2020-02-28 15:42:33 +01:00
2020-11-10 10:23:57 +01:00
2020-12-29 13:45:01 +01:00
2021-04-16 11:59:12 +02:00
2018-05-30 07:50:44 +02:00
2018-02-25 11:05:45 +01:00