aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/fault.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-06-24 17:09:18 +0200
committerBorislav Petkov <bp@suse.de>2021-06-24 17:19:51 +0200
commit93c2cdc975aab53c222472c5b96c2d41dbeb350c (patch)
tree2d119d4f00e401696dad827b1fc6a987307b55c5 /arch/x86/mm/fault.c
parentx86/fpu/signal: Let xrstor handle the features to init (diff)
downloadlinux-dev-93c2cdc975aab53c222472c5b96c2d41dbeb350c.tar.xz
linux-dev-93c2cdc975aab53c222472c5b96c2d41dbeb350c.zip
x86/fpu/xstate: Clear xstate header in copy_xstate_to_uabi_buf() again
The change which made copy_xstate_to_uabi_buf() usable for [x]fpregs_get() removed the zeroing of the header which means the header, which is copied to user space later, contains except for the xfeatures member, random stack content. Add the memset() back to zero it before usage. Fixes: eb6f51723f03 ("x86/fpu: Make copy_xstate_to_kernel() usable for [x]fpregs_get()") Reported-by: kernel test robot <oliver.sang@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/875yy3wb8h.ffs@nanos.tec.linutronix.de
Diffstat (limited to 'arch/x86/mm/fault.c')
0 files changed, 0 insertions, 0 deletions