]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Improve stack randomisation on RV64
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 12 Aug 2021 11:47:02 +0000 (19:47 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 11 Sep 2021 05:25:34 +0000 (22:25 -0700)
commit95b9635bd1cd7c20054d9ae8d57992c66f64bc77
tree879e8965f6c8908490c48bd80d528a0cae81601e
parent89895a9b0d9d1ac1353094a13c911d4e07ad9016
riscv: Improve stack randomisation on RV64

This enlarges the bits availiable for stack randomisation on RV64 from
the default of 8MiB to 1GiB, to match arm64 and x86.

Also, update the documentation to reflect our support for stack
randomisation.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
[Palmer: commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Documentation/features/vm/ELF-ASLR/arch-support.txt
arch/riscv/include/asm/elf.h