Messages in this thread | | | Date | Wed, 4 Mar 2015 12:38:37 +0100 | From | Borislav Petkov <> | Subject | Re: [PATCH 2/2] x86/fpu: factor out memset(xstate, 0) in fpu_finit() paths |
| |
On Mon, Mar 02, 2015 at 07:32:57PM +0100, Oleg Nesterov wrote: > fx_finit() has 2 users but only fpu_finit() needs to nullify xstate, > alloc_bootmem_align() in setup_init_fpu_buf() returns zero-filled > memory. > > And note that both memset()'s look confusing. Yes, offsetof() is 0 > for ->fxsave or ->fsave, but it would be more clean to turn them into > a single memset() which nullifies fpu->state. > > Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Applied, thanks.
-- Regards/Gruss, Boris.
ECO tip #101: Trim your mails when you reply. --
| |