lkml.org 
[lkml]   [2020]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC PATCH v9 06/27] mm: Introduce VM_SHSTK for Shadow Stack memory
    From
    Date
    On 2/5/20 10:19 AM, Yu-cheng Yu wrote:
    > A Shadow Stack (SHSTK) PTE must be read-only and have _PAGE_DIRTY set.
    > However, read-only and Dirty PTEs also exist for copy-on-write (COW) pages.
    > These two cases are handled differently for page faults and a new VM flag
    > is necessary for tracking SHSTK VMAs.
    >
    > v9:
    > - Add VM_SHSTK case to arch_vma_name().
    > - Revise the commit log to explain why a new VM flag is needed.

    To be honest, a flag is not strictly *needed*. It is certainly
    convenient and straightforward, but it's far from being truly necessary.

    \
     
     \ /
      Last update: 2020-02-26 19:08    [W:4.136 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site