On Fri, Feb 09, 2024 at 08:44:35PM +, Edgecombe, Rick P wrote:
On Wed, 2024-01-24 at 22:21 -0800, de...@rivosinc.com wrote:
+ /*
+ * PROT_SHADOWSTACK is a kernel only protection flag on risc-
v.
+ * mmap doesn't expect PROT_SHADOWSTACK to be set by user
space.
+ *
On Wed, 2024-01-24 at 22:21 -0800, de...@rivosinc.com wrote:
> + /*
> + * PROT_SHADOWSTACK is a kernel only protection flag on risc-
> v.
> + * mmap doesn't expect PROT_SHADOWSTACK to be set by user
> space.
> + * User space can rely on `map_shadow_stack` syscall to
>
From: Deepak Gupta
This patch implements new risc-v specific protection flag
`PROT_SHADOWSTACK` (only for kernel) on riscv.
`PROT_SHADOWSTACK` protection flag is only limited to kernel and not exposed
to userspace. Shadow stack is a security construct to prevent against ROP
attacks.