• Jisheng Zhang's avatar
    riscv: lib: uaccess: fold fixups into body · 9d504f9a
    Jisheng Zhang authored
    uaccess functions such __asm_copy_to_user(),  __arch_copy_from_user()
    and __clear_user() place their exception fixups in the `.fixup` section
    without any clear association with themselves. If we backtrace the
    fixup code, it will be symbolized as an offset from the nearest prior
    symbol.
    
    Similar as arm64 does, we must move fixups into the body of the
    functions themselves, after the usual fast-path returns.
    Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
    Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
    9d504f9a
uaccess.S 5.11 KB