linux-brain/drivers/hv
Michael Kelley 57441e0615 Drivers: hv: vmbus: Fix synic per-cpu context initialization
[ Upstream commit f25a7ece08 ]

If hv_synic_alloc() errors out, the state of the per-cpu context
for some CPUs is unknown since the zero'ing is done as each
CPU is iterated over.  In such case, hv_synic_cleanup() may try to
free memory based on uninitialized values.  Fix this by zero'ing
the per-cpu context for all CPUs before doing any memory
allocations that might fail.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 17:59:56 +01:00
..
channel_mgmt.c Drivers: hv: vmbus: Offload the handling of channels to two workqueues 2018-12-13 09:18:53 +01:00
channel.c Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() 2018-12-05 19:41:26 +01:00
connection.c Drivers: hv: vmbus: Offload the handling of channels to two workqueues 2018-12-13 09:18:53 +01:00
hv_balloon.c hv_balloon: avoid touching uninitialized struct page during tail onlining 2019-01-31 08:13:44 +01:00
hv_fcopy.c Drivers: hv: fcopy: restore correct transfer length 2017-09-22 10:29:54 +02:00
hv_kvp.c Drivers: hv: kvp: Use MAX_ADAPTER_ID_SIZE for translating adapter id 2017-08-16 09:14:43 -07:00
hv_snapshot.c Merge 4.11-rc4 into char-misc-next 2017-03-27 09:13:04 +02:00
hv_util.c hv_utils: fix TimeSync work on pre-TimeSync-v4 hosts 2017-05-25 15:42:42 +02:00
hv_utils_transport.c Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv_utils_transport.h Drivers: hv: util: move waiting for release to hv_utils_transport itself 2017-03-16 16:42:00 +09:00
hv.c Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 17:59:56 +01:00
hyperv_vmbus.h Drivers: hv: vmbus: Offload the handling of channels to two workqueues 2018-12-13 09:18:53 +01:00
Kconfig x86, hyperv: remove PCI dependency 2019-01-13 10:00:59 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ring_buffer.c Drivers: hv: vmbus: Check for ring when getting debug info 2019-01-31 08:13:44 +01:00
vmbus_drv.c Drivers: hv: vmbus: Check for ring when getting debug info 2019-01-31 08:13:44 +01:00