]> xenbits.xensource.com Git - people/iwj/xen.git/commit
xen/livepatch: Use zeroed memory allocations for arrays
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Jun 2017 17:55:31 +0000 (18:55 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Jun 2017 14:00:37 +0000 (15:00 +0100)
commitbd53b85156aaf0330181ab9b82d9a6c52fb30f8c
treea776ffe7acb10d0638fec3534121502c3e455a9f
parentbf570f593554356eb508ac2f8ffb05ebbf747c78
xen/livepatch: Use zeroed memory allocations for arrays

Each of these arrays is sparse.  Use zeroed allocations to cause uninitialised
array elements to contain deterministic values, most importantly for the
embedded pointers.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> [x86 and arm32]
Reviewed-by: Ross Lagerwall <ross.lagerwall@citrix.com>
xen/common/livepatch.c
xen/common/livepatch_elf.c