• A
    [PATCH] x86: Fix i386 and x86_64 fault information pollution · d1895183
    Andi Kleen 提交于
    a userspace fault or a kernelspace fault which will result in the
    immediate death of the process.  They should not be filled in as a
    result of a kernelspace fault which can be fixed up.
    
    Otherwise, if the process is handling SIGSEGV and examining the fault
    information, this can result in the kernel space fault trashing the
    previously stored fault information if it arrives between the
    userspace fault happening and the SIGSEGV being delivered to the process.
    Signed-off-by: NJeff Dike <jdike@addtoit.com>
    Signed-off-by: NAndi Kleen <ak@suse.de>
    Acked-by: NJan Beulich <jbeulich@novell.com>
    --
     arch/i386/kernel/traps.c   |   24 ++++++++++++++++++------
     arch/x86_64/kernel/traps.c |   30 +++++++++++++++++++++++-------
     2 files changed, 41 insertions(+), 13 deletions(-)
    d1895183
traps.c 28.6 KB