Re: [RFC PATCH v1 11/28] riscv: Implementing "PROT_SHADOWSTACK" on riscv

2024-02-21 Thread Deepak Gupta
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. +    *

Re: [RFC PATCH v1 11/28] riscv: Implementing "PROT_SHADOWSTACK" on riscv

2024-02-09 Thread Edgecombe, Rick P
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 >

[RFC PATCH v1 11/28] riscv: Implementing "PROT_SHADOWSTACK" on riscv

2024-01-24 Thread debug
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.