linux-stable/drivers/hv
Saurabh Sengar cecbb14156 x86/hyperv: Use per cpu initial stack for vtl context
[ Upstream commit 2b4b90e053 ]

Currently, the secondary CPUs in Hyper-V VTL context lack support for
parallel startup. Therefore, relying on the single initial_stack fetched
from the current task structure suffices for all vCPUs.

However, common initial_stack risks stack corruption when parallel startup
is enabled. In order to facilitate parallel startup, use the initial_stack
from the per CPU idle thread instead of the current task.

Fixes: 3be1bc2fe9 ("x86/hyperv: VTL support for Hyper-V")
Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1709452896-13342-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1709452896-13342-1-git-send-email-ssengar@linux.microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:18:52 -04:00
..
Kconfig x86/hyperv: Use per cpu initial stack for vtl context 2024-03-26 18:18:52 -04:00
Makefile
channel.c
channel_mgmt.c Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-05-23 18:53:16 +00:00
connection.c hyperv-next for v6.6 2023-09-04 11:26:29 -07:00
hv.c x86/hyperv: Remove hv_isolation_type_en_snp 2023-08-25 00:04:57 +00:00
hv_balloon.c hyperv-next for v6.6 2023-09-04 11:26:29 -07:00
hv_common.c Drivers: hv: Remove now superfluous sentinel element from ctl_table array 2023-10-11 12:16:14 -07:00
hv_debugfs.c
hv_fcopy.c
hv_kvp.c
hv_snapshot.c
hv_trace.c
hv_trace.h
hv_trace_balloon.h
hv_util.c Drivers: hv: Make remove callback of hyperv driver void returned 2023-01-17 13:41:27 +00:00
hv_utils_transport.c
hv_utils_transport.h
hyperv_vmbus.h Drivers: hv: vmbus: Bring the post_msg_page back for TDX VMs with the paravisor 2023-08-25 00:04:57 +00:00
ring_buffer.c Drivers: hv: vmbus: Remove second way of mapping ring buffers 2023-04-17 19:19:04 +00:00
vmbus_drv.c hyperv: avoid dependency on screen_info 2023-10-17 10:17:02 +02:00