On Thu, Mar 28, 2024 at 9:46 PM Deepak Gupta <[email protected]> wrote: > > pte_mkwrite creates PTEs with WRITE encodings for underlying arch. Underlying > arch can have two types of writeable mappings. One that can be written using > regular store instructions. Another one that can only be written using > specialized > store instructions (like shadow stack stores). pte_mkwrite can select write > PTE > encoding based on VMA range. > > On riscv, presence of only VM_WRITE in vma->vm_flags means it's a shadow > stack. > > Signed-off-by: Deepak Gupta <[email protected]> > > rebase with a30f0ca0fa31cdb2ac3d24b7b5be9e3ae75f4175 > hmm.. Note to self: Missed removing this lingering commit message. Will remove it in the next version.
- Re: [PATCH v2 04/27] riscv: zicfiss/zicfilp enumeration Stefan O'Rear
- Re: [PATCH v2 04/27] riscv: zicfiss/zicfilp enumeration Conor Dooley
- [PATCH v2 05/27] riscv: zicfiss/zicfilp extension csr and bi... Deepak Gupta
- [PATCH v2 06/27] riscv: usercfi state for task and save/rest... Deepak Gupta
- [PATCH v2 07/27] mm: Define VM_SHADOW_STACK for RISC-V Deepak Gupta
- [PATCH v2 08/27] mm: abstract shadow stack vma behind `arch_... Deepak Gupta
- [PATCH v2 09/27] riscv/mm : ensure PROT_WRITE leads to VM_RE... Deepak Gupta
- [PATCH v2 10/27] riscv mm: manufacture shadow stack pte Deepak Gupta
- [PATCH v2 11/27] riscv mmu: teach pte_mkwrite to manufacture... Deepak Gupta
- Re: [PATCH v2 11/27] riscv mmu: teach pte_mkwrite to ma... Deepak Gupta
- [PATCH v2 12/27] riscv mmu: write protect and shadow stack Deepak Gupta
- [PATCH v2 13/27] riscv/mm: Implement map_shadow_stack() sysc... Deepak Gupta
- [PATCH v2 14/27] riscv/shstk: If needed allocate a new shado... Deepak Gupta
- [PATCH v2 15/27] prctl: arch-agnostic prctl for shadow stack Deepak Gupta
- [PATCH v2 16/27] prctl: arch-agnostic prtcl for indirect bra... Deepak Gupta
- [PATCH v2 17/27] riscv: Implements arch agnostic shadow stac... Deepak Gupta
- [PATCH v2 18/27] riscv: Implements arch argnostic indirect b... Deepak Gupta
- [PATCH v2 19/27] riscv/kernel: update __show_regs to print s... Deepak Gupta
- [PATCH v2 20/27] riscv/traps: Introduce software check excep... Deepak Gupta
- [PATCH v2 21/27] riscv sigcontext: adding cfi state field in... Deepak Gupta
