Re: [PATCH V2] riscv: Support RANDOMIZE_KSTACK_OFFSET

2024-01-25 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Thu, 9 Nov 2023 21:37:51 +0800 you wrote: > Inspired from arm64's implement -- commit 70918779aec9 > ("arm64: entry: Enable random_kstack_offset support") > > Add support of kernel stack offset randomization whil

Re: [PATCH V2] riscv: Support RANDOMIZE_KSTACK_OFFSET

2024-01-19 Thread Song Shuai
Hi, palmer: 在 2023/11/9 21:37, Song Shuai 写道: Inspired from arm64's implement -- commit 70918779aec9 ("arm64: entry: Enable random_kstack_offset support") Add support of kernel stack offset randomization while handling syscall, the offset is defaultly limited by KSTACK_OFFSET_MAX() (i.e. 10 b

[PATCH V2] riscv: Support RANDOMIZE_KSTACK_OFFSET

2023-11-09 Thread Song Shuai
Inspired from arm64's implement -- commit 70918779aec9 ("arm64: entry: Enable random_kstack_offset support") Add support of kernel stack offset randomization while handling syscall, the offset is defaultly limited by KSTACK_OFFSET_MAX() (i.e. 10 bits). In order to avoid trigger stack canaries (du