Re: [PATCH v11 13/20] target/riscv: mmu changes for zicfiss shadow stack protection

2024-08-28 Thread Deepak Gupta
On Thu, Aug 29, 2024 at 10:03:04AM +1000, Alistair Francis wrote: On Thu, Aug 29, 2024 at 9:45 AM Deepak Gupta wrote: On Thu, Aug 29, 2024 at 09:29:49AM +1000, Alistair Francis wrote: >On Thu, Aug 29, 2024 at 3:49 AM Deepak Gupta wrote: >> >> prot |= PAGE_WRITE; >> } >> -if

Re: [PATCH v11 13/20] target/riscv: mmu changes for zicfiss shadow stack protection

2024-08-28 Thread Alistair Francis
On Thu, Aug 29, 2024 at 9:45 AM Deepak Gupta wrote: > > On Thu, Aug 29, 2024 at 09:29:49AM +1000, Alistair Francis wrote: > >On Thu, Aug 29, 2024 at 3:49 AM Deepak Gupta wrote: > >> > >> zicfiss protects shadow stack using new page table encodings PTE.W=1, > >> PTE.R=0 and PTE.X=0. This encoding

Re: [PATCH v11 13/20] target/riscv: mmu changes for zicfiss shadow stack protection

2024-08-28 Thread Deepak Gupta
On Thu, Aug 29, 2024 at 09:29:49AM +1000, Alistair Francis wrote: On Thu, Aug 29, 2024 at 3:49 AM Deepak Gupta wrote: zicfiss protects shadow stack using new page table encodings PTE.W=1, PTE.R=0 and PTE.X=0. This encoding is reserved if zicfiss is not implemented or if shadow stack are not en

Re: [PATCH v11 13/20] target/riscv: mmu changes for zicfiss shadow stack protection

2024-08-28 Thread Alistair Francis
On Thu, Aug 29, 2024 at 3:49 AM Deepak Gupta wrote: > > zicfiss protects shadow stack using new page table encodings PTE.W=1, > PTE.R=0 and PTE.X=0. This encoding is reserved if zicfiss is not > implemented or if shadow stack are not enabled. > Loads on shadow stack memory are allowed while stores

[PATCH v11 13/20] target/riscv: mmu changes for zicfiss shadow stack protection

2024-08-28 Thread Deepak Gupta
zicfiss protects shadow stack using new page table encodings PTE.W=1, PTE.R=0 and PTE.X=0. This encoding is reserved if zicfiss is not implemented or if shadow stack are not enabled. Loads on shadow stack memory are allowed while stores to shadow stack memory leads to access faults. Shadow stack ac