• Stafford Horne's avatar
    openrisc: traps: Don't send signals to kernel mode threads · c88cfb5c
    Stafford Horne authored
    OpenRISC exception handling sends signals to user processes on floating
    point exceptions and trap instructions (for debugging) among others.
    There is a bug where the trap handling logic may send signals to kernel
    threads, we should not send these signals to kernel threads, if that
    happens we treat it as an error.
    
    This patch adds conditions to die if the kernel receives these
    exceptions in kernel mode code.
    
    Fixes: 27267655 ("openrisc: Support floating point user api")
    Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
    c88cfb5c
traps.c 10.4 KB