]> Gentwo Git Trees - linux/.git/commit
riscv: Randomize lower bits of stack address
authorYunhui Cui <cuiyunhui@bytedance.com>
Tue, 25 Jun 2024 03:05:02 +0000 (11:05 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 17 Sep 2024 15:05:10 +0000 (08:05 -0700)
commit048e2906d4caf57018e92f49c9a0f998ebb83f9b
tree3ed349570c54375b02fb9869e14c80159e0545ed
parent11c2dbd7f2415731ac8213d3de0dbd5f5dd0ddc7
riscv: Randomize lower bits of stack address

Implement arch_align_stack() to randomize the lower bits
of the stack address.

Signed-off-by: Yunhui Cui <cuiyunhui@bytedance.com>
Link: https://lore.kernel.org/r/20240625030502.68988-1-cuiyunhui@bytedance.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/exec.h [new file with mode: 0644]
arch/riscv/kernel/process.c