Commit ae80e162 authored by Mark Brown's avatar Mark Brown Committed by Catalin Marinas
Browse files

mm: Define VM_SHADOW_STACK for arm64 when we support GCS

parent 092055f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ encoded manner. The codes are the following:
    mt    arm64 MTE allocation tags are enabled
    um    userfaultfd missing tracking
    uw    userfaultfd wr-protect tracking
    ss    shadow stack page
    ss    shadow/guarded control stack page
    sl    sealed
    ==    =======================================

+11 −1
Original line number Diff line number Diff line
@@ -367,7 +367,17 @@ extern unsigned int kobjsize(const void *objp);
 * for more details on the guard size.
 */
# define VM_SHADOW_STACK	VM_HIGH_ARCH_5
#else
#endif

#if defined(CONFIG_ARM64_GCS)
/*
 * arm64's Guarded Control Stack implements similar functionality and
 * has similar constraints to shadow stacks.
 */
# define VM_SHADOW_STACK	VM_HIGH_ARCH_6
#endif

#ifndef VM_SHADOW_STACK
# define VM_SHADOW_STACK	VM_NONE
#endif