Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 02:47:49PM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 12:30 PM, Deepak Gupta wrote: On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta Carves out space in arch

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Stefan O'Rear
On Thu, Jan 25, 2024, at 12:30 PM, Deepak Gupta wrote: > On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: >>On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: >>> From: Deepak Gupta >>> >>> Carves out space in arch specific thread struct for cfi status and shadow >>> stack

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-25 Thread Deepak Gupta
On Thu, Jan 25, 2024 at 02:29:01AM -0500, Stefan O'Rear wrote: On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: From: Deepak Gupta Carves out space in arch specific thread struct for cfi status and shadow stack in usermode on riscv. This patch does following - defines a new

Re: [RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-24 Thread Stefan O'Rear
On Thu, Jan 25, 2024, at 1:21 AM, de...@rivosinc.com wrote: > From: Deepak Gupta > > Carves out space in arch specific thread struct for cfi status and shadow > stack > in usermode on riscv. > > This patch does following > - defines a new structure cfi_status with status bit for cfi feature > -

[RFC PATCH v1 07/28] riscv: kernel handling on trap entry/exit for user cfi

2024-01-24 Thread debug
From: Deepak Gupta Carves out space in arch specific thread struct for cfi status and shadow stack in usermode on riscv. This patch does following - defines a new structure cfi_status with status bit for cfi feature - defines shadow stack pointer, base and size in cfi_status structure - defines