• I
    x86/fpu: Add debugging checks to all copy_kernel_to_*() functions · 43b287b3
    Ingo Molnar 提交于
    Copying from in-kernel FPU context buffers to FPU registers are
    never supposed to fault.
    
    Add debugging checks to copy_kernel_to_fxregs() and copy_kernel_to_fregs()
    to double check this assumption.
    
    Cc: Andy Lutomirski <luto@amacapital.net>
    Cc: Bobby Powers <bobbypowers@gmail.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: NIngo Molnar <mingo@kernel.org>
    43b287b3
internal.h 17.8 KB