Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-25 Thread Deepak Gupta
On Fri, Apr 25, 2025 at 01:42:44PM +0200, Radim Krčmář wrote: 2025-04-24T11:16:19-07:00, Deepak Gupta : On Thu, Apr 24, 2025 at 03:36:54PM +0200, Radim Krčmář wrote: 2025-04-23T21:44:09-07:00, Deepak Gupta : On Thu, Apr 10, 2025 at 11:45:58AM +0200, Radim Krčmář wrote: 2025-03-14T14:39:31-07:

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-25 Thread Radim Krčmář
2025-04-24T11:16:19-07:00, Deepak Gupta : > On Thu, Apr 24, 2025 at 03:36:54PM +0200, Radim Krčmář wrote: >>2025-04-23T21:44:09-07:00, Deepak Gupta : >>> On Thu, Apr 10, 2025 at 11:45:58AM +0200, Radim Krčmář wrote: 2025-03-14T14:39:31-07:00, Deepak Gupta : > diff --git a/arch/riscv/include

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-24 Thread Deepak Gupta
On Thu, Apr 24, 2025 at 03:36:54PM +0200, Radim Krčmář wrote: 2025-04-23T21:44:09-07:00, Deepak Gupta : On Thu, Apr 10, 2025 at 11:45:58AM +0200, Radim Krčmář wrote: 2025-03-14T14:39:31-07:00, Deepak Gupta : diff --git a/arch/riscv/include/asm/usercfi.h b/arch/riscv/include/asm/usercfi.h @@ -1

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-24 Thread Radim Krčmář
2025-04-23T21:44:09-07:00, Deepak Gupta : > On Thu, Apr 10, 2025 at 11:45:58AM +0200, Radim Krčmář wrote: >>2025-03-14T14:39:31-07:00, Deepak Gupta : >>> diff --git a/arch/riscv/include/asm/usercfi.h >>> b/arch/riscv/include/asm/usercfi.h >>> @@ -14,7 +15,8 @@ struct kernel_clone_args; >>> struct

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-23 Thread Deepak Gupta
On Thu, Apr 10, 2025 at 11:45:58AM +0200, Radim Krčmář wrote: 2025-03-14T14:39:31-07:00, Deepak Gupta : diff --git a/arch/riscv/include/asm/usercfi.h b/arch/riscv/include/asm/usercfi.h @@ -14,7 +15,8 @@ struct kernel_clone_args; struct cfi_status { unsigned long ubcfi_en : 1; /* Enable

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-04-10 Thread Radim Krčmář
2025-03-14T14:39:31-07:00, Deepak Gupta : > diff --git a/arch/riscv/include/asm/usercfi.h > b/arch/riscv/include/asm/usercfi.h > @@ -14,7 +15,8 @@ struct kernel_clone_args; > struct cfi_status { > unsigned long ubcfi_en : 1; /* Enable for backward cfi. */ > - unsigned long rsvd : ((size

Re: [PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-03-16 Thread Zong Li
On Sat, Mar 15, 2025 at 6:51 AM Deepak Gupta wrote: > > Implement architecture agnostic prctls() interface for setting and getting > shadow stack status. > > prctls implemented are PR_GET_SHADOW_STACK_STATUS, > PR_SET_SHADOW_STACK_STATUS and PR_LOCK_SHADOW_STACK_STATUS. > > As part of PR_SET_SHADO

[PATCH v12 12/28] riscv: Implements arch agnostic shadow stack prctls

2025-03-14 Thread Deepak Gupta
Implement architecture agnostic prctls() interface for setting and getting shadow stack status. prctls implemented are PR_GET_SHADOW_STACK_STATUS, PR_SET_SHADOW_STACK_STATUS and PR_LOCK_SHADOW_STACK_STATUS. As part of PR_SET_SHADOW_STACK_STATUS/PR_GET_SHADOW_STACK_STATUS, only PR_SHADOW_STACK_ENA