Re: [Xen-devel] [PATCH] x86/MCE: avoid leaking stack data

2020-01-08 Thread Andrew Cooper
On 08/01/2020 15:06, Jan Beulich wrote: > While HYPERVISOR_mca is a privileged operation, we still shouldn't leak > stack contents (the tail of every array entry's mc_msrvalues[] of > XEN_MC_physcpuinfo output). Simply use a zeroing allocation here. > > Take the occasion and also restrict the invol

[Xen-devel] [PATCH] x86/MCE: avoid leaking stack data

2020-01-08 Thread Jan Beulich
While HYPERVISOR_mca is a privileged operation, we still shouldn't leak stack contents (the tail of every array entry's mc_msrvalues[] of XEN_MC_physcpuinfo output). Simply use a zeroing allocation here. Take the occasion and also restrict the involved local variable's scope. Reported-by: Ilja Va