Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-14 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 11:50 PM Deepak Gupta wrote: > > > Hi Nick, > > Thanks for reviewing and helping. > > On Thu, Nov 14, 2024 at 02:17:30PM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Thu, Nov 14, 2024 at 9:25 AM Deepak Gupta wrote: > >> > >> On Thu, Nov 14, 2024 at 09:20:14AM +0

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-14 Thread Deepak Gupta
Hi Nick, Thanks for reviewing and helping. On Thu, Nov 14, 2024 at 02:17:30PM +0800, Nick Hu wrote: Hi Deepak On Thu, Nov 14, 2024 at 9:25 AM Deepak Gupta wrote: On Thu, Nov 14, 2024 at 09:20:14AM +0800, Nick Hu wrote: >Hi Deepak > >On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: >>

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 9:25 AM Deepak Gupta wrote: > > On Thu, Nov 14, 2024 at 09:20:14AM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: > >> > >> On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick Hu wrote: > >> >Hi Deepak > >> > > >> >On Tu

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Deepak Gupta
On Thu, Nov 14, 2024 at 09:20:14AM +0800, Nick Hu wrote: Hi Deepak On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick Hu wrote: >Hi Deepak > >On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: >> >> Kernel will have to perform shadow stack ope

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Thu, Nov 14, 2024 at 9:06 AM Deepak Gupta wrote: > > On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick Hu wrote: > >Hi Deepak > > > >On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: > >> > >> Kernel will have to perform shadow stack operations on user shadow stack. > >> Like during

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Deepak Gupta
On Thu, Nov 14, 2024 at 12:13:38AM +0800, Nick Hu wrote: Hi Deepak On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: Kernel will have to perform shadow stack operations on user shadow stack. Like during signal delivery and sigreturn, shadow stack token must be created and validated respecti

Re: [PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-13 Thread Nick Hu
Hi Deepak On Tue, Nov 12, 2024 at 5:08 AM Deepak Gupta wrote: > > Kernel will have to perform shadow stack operations on user shadow stack. > Like during signal delivery and sigreturn, shadow stack token must be > created and validated respectively. Thus shadow stack access for kernel > must be e

[PATCH v8 24/29] riscv: enable kernel access to shadow stack memory via FWFT sbi call

2024-11-11 Thread Deepak Gupta
Kernel will have to perform shadow stack operations on user shadow stack. Like during signal delivery and sigreturn, shadow stack token must be created and validated respectively. Thus shadow stack access for kernel must be enabled. In future when kernel shadow stacks are enabled for linux kernel,