Home
last modified time | relevance | path

Searched refs:VM_SHADOW_STACK (Results 1 – 16 of 16) sorted by relevance

/linux-6.15/arch/x86/mm/
H A Dpgtable.c863 if (vma->vm_flags & VM_SHADOW_STACK) in pte_mkwrite()
873 if (vma->vm_flags & VM_SHADOW_STACK) in pmd_mkwrite()
890 VM_WARN_ON_ONCE(!(vma->vm_flags & VM_SHADOW_STACK) && in arch_check_zapped_pte()
897 VM_WARN_ON_ONCE(!(vma->vm_flags & VM_SHADOW_STACK) && in arch_check_zapped_pmd()
904 VM_WARN_ON_ONCE(!(vma->vm_flags & VM_SHADOW_STACK) && pud_shstk(pud)); in arch_check_zapped_pud()
H A Dfault.c1091 if (unlikely(!(vma->vm_flags & VM_SHADOW_STACK))) in access_error()
1100 if (unlikely(vma->vm_flags & VM_SHADOW_STACK)) in access_error()
/linux-6.15/arch/arm64/include/asm/
H A Dmman.h82 if (system_supports_gcs() && (vm_flags & VM_SHADOW_STACK)) { in arch_validate_flags()
/linux-6.15/tools/testing/vma/
H A Dvma_internal.h65 #define VM_SHADOW_STACK VM_NONE macro
83 #define VM_STARTGAP_FLAGS (VM_GROWSDOWN | VM_SHADOW_STACK)
545 (((flags & VM_STACK) == VM_STACK) || (flags & VM_SHADOW_STACK))
1094 if (vma->vm_flags & VM_SHADOW_STACK) in stack_guard_start_gap()
/linux-6.15/arch/arm64/mm/
H A Dmmap.c89 if (system_supports_gcs() && (vm_flags & VM_SHADOW_STACK)) { in vm_get_page_prot()
H A Dgcs.c24 VM_SHADOW_STACK | VM_WRITE, 0, &unused, NULL); in alloc_gcs()
H A Dfault.c536 if (!(vma->vm_flags & VM_SHADOW_STACK)) in is_invalid_gcs_access()
538 } else if (unlikely(vma->vm_flags & VM_SHADOW_STACK)) { in is_invalid_gcs_access()
/linux-6.15/arch/x86/kernel/
H A Dshstk.c112 VM_SHADOW_STACK | VM_WRITE, 0, &unused, NULL); in alloc_shstk()
322 if (!vma || !(vma->vm_flags & VM_SHADOW_STACK)) { in shstk_pop_sigframe()
H A Dsys_x86_64.c120 if (vm_flags & VM_SHADOW_STACK) in stack_guard_placement()
/linux-6.15/include/linux/
H A Dmm.h344 # define VM_SHADOW_STACK VM_HIGH_ARCH_5 macro
352 # define VM_SHADOW_STACK VM_HIGH_ARCH_6 macro
355 #ifndef VM_SHADOW_STACK
356 # define VM_SHADOW_STACK VM_NONE macro
443 #define VM_STARTGAP_FLAGS (VM_GROWSDOWN | VM_SHADOW_STACK)
3561 if (vma->vm_flags & VM_SHADOW_STACK) in stack_guard_start_gap()
/linux-6.15/mm/
H A Dvma.h356 return ((flags & VM_STACK) == VM_STACK) || (flags & VM_SHADOW_STACK); in is_stack_mapping()
H A Dmmap.c651 if (vm_flags & VM_SHADOW_STACK) in stack_guard_placement()
H A Duserfaultfd.c1459 VM_MIXEDMAP | VM_SHADOW_STACK)); in vma_move_compatible()
H A Dgup.c1294 if (!(vm_flags & VM_WRITE) || (vm_flags & VM_SHADOW_STACK)) { in check_vma_flags()
/linux-6.15/Documentation/arch/x86/
H A Dshstk.rst160 The shadow stack's vma has VM_SHADOW_STACK flag set; its PTEs are required
/linux-6.15/fs/proc/
H A Dtask_mmu.c995 [ilog2(VM_SHADOW_STACK)] = "ss", in show_smap_vma_flags()