• Andi Kleen's avatar
    [PATCH] x86: Fix i386 and x86_64 fault information pollution · d1895183
    Andi Kleen authored
    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: default avatarJeff Dike <jdike@addtoit.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Acked-by: default avatarJan 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