]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
All items in SYSTEM_PROCESSOR array may not be initialized
authorOwen Smith <owen.smith@citrix.com>
Mon, 28 Feb 2022 11:47:01 +0000 (11:47 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 7 Mar 2022 07:50:56 +0000 (07:50 +0000)
commit9233c0c8cd012388dea79cabe74eccb89e4f1435
tree35ab46243e0cc49d5f57437dfd57f8f2831e350c
parent7817a9b7fe421654c3d1039849a175380f9e9ecb
All items in SYSTEM_PROCESSOR array may not be initialized

The SYSTEM_PROCESSOR array is allocated to fit the maximum number of supported
CPUs, but elements are only initialized when the SystemProcessorChangeCallback
callback is called with KeProcessorAddCompleteNotify.
Check if the SYSTEM_PROCESSOR structure is initialized before accessing any
other members, and fail SystemProcessorVcpuId with STATUS_NOT_SUPPORTED for any
uninitialized CPUs

Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xen/system.c
src/xenbus/evtchn.c
src/xenbus/evtchn_fifo.c
src/xenbus/shared_info.c