Home
last modified time | relevance | path

Searched refs:_PAGE_NX (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/arch/x86/mm/
Dsetup_nx.c37 __supported_pte_mask |= _PAGE_NX; in x86_configure_nx()
39 __supported_pte_mask &= ~_PAGE_NX; in x86_configure_nx()
Dpageattr.c306 pgprot_val(forbidden) |= _PAGE_NX; in static_protections()
315 pgprot_val(forbidden) |= _PAGE_NX; in static_protections()
1512 checkalias = (pgprot_val(mask_set) | pgprot_val(mask_clr)) != _PAGE_NX; in change_page_attr_set_clr()
1771 if (!(__supported_pte_mask & _PAGE_NX)) in set_memory_x()
1774 return change_page_attr_clear(&addr, numpages, __pgprot(_PAGE_NX), 0); in set_memory_x()
1780 if (!(__supported_pte_mask & _PAGE_NX)) in set_memory_nx()
1783 return change_page_attr_set(&addr, numpages, __pgprot(_PAGE_NX), 0); in set_memory_nx()
2129 if (!(__supported_pte_mask & _PAGE_NX)) in kernel_map_pages_in_pgd()
2132 if (!(page_flags & _PAGE_NX)) in kernel_map_pages_in_pgd()
2133 cpa.mask_clr = __pgprot(_PAGE_NX); in kernel_map_pages_in_pgd()
Ddump_pagetables.c223 if (pr & _PAGE_NX) in printk_prot()
279 if (st->check_wx && (eff & _PAGE_RW) && !(eff & _PAGE_NX)) { in note_page()
341 ((prot1 | prot2) & _PAGE_NX); in effective_prot()
577 if (!(__supported_pte_mask & _PAGE_NX) || in ptdump_walk_user_pgd_level_checkwx()
Dpti.c165 (__supported_pte_mask & _PAGE_NX)) in __pti_set_user_pgtbl()
166 pgd.pgd |= _PAGE_NX; in __pti_set_user_pgtbl()
Dinit_32.c561 #define DEFAULT_PTE_MASK ~(_PAGE_NX | _PAGE_GLOBAL)
918 if (__supported_pte_mask & _PAGE_NX) in mark_nxdata_nx()
957 if (__supported_pte_mask & _PAGE_NX) in mark_rodata_ro()
Dpageattr-test.c85 if (!(pte_val(*pte) & _PAGE_NX)) { in print_split()
/Linux-v4.19/arch/x86/power/
Dhibernate_64.c167 set_p4d(p4d, __p4d(p4d_val(*p4d) & ~_PAGE_NX)); in relocate_restore_code()
172 set_pud(pud, __pud(pud_val(*pud) & ~_PAGE_NX)); in relocate_restore_code()
177 set_pmd(pmd, __pmd(pmd_val(*pmd) & ~_PAGE_NX)); in relocate_restore_code()
181 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_NX)); in relocate_restore_code()
/Linux-v4.19/arch/x86/include/asm/
Dpgtable_types.h104 #define _PAGE_NX (_AT(pteval_t, 1) << _PAGE_BIT_NX) macro
108 #define _PAGE_NX (_AT(pteval_t, 0)) macro
156 _PAGE_ACCESSED | _PAGE_NX)
161 _PAGE_ACCESSED | _PAGE_NX)
166 _PAGE_ACCESSED | _PAGE_NX)
172 #define __PAGE_KERNEL (__PAGE_KERNEL_EXEC | _PAGE_NX)
Dpgtable.h183 return !(pte_flags(pte) & _PAGE_NX); in pte_exec()
314 return pte_clear_flags(pte, _PAGE_NX); in pte_mkexec()
916 ignore_flags |= _PAGE_NX; in p4d_bad()
962 ignore_flags |= _PAGE_NX; in pgd_bad()
/Linux-v4.19/arch/x86/platform/efi/
Defi_64.c64 if (!(__supported_pte_mask & _PAGE_NX)) in early_code_mapping_set_exec()
138 pgd_offset_k(pgd * PGDIR_SIZE)->pgd &= ~_PAGE_NX; in efi_call_phys_prolog()
356 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables()
544 pf |= _PAGE_NX; in efi_update_mem_attr()
560 if (__supported_pte_mask & _PAGE_NX) in efi_runtime_update_mappings()
597 pf |= _PAGE_NX; in efi_runtime_update_mappings()
Defi_32.c95 if (__supported_pte_mask & _PAGE_NX) in efi_runtime_update_mappings()
Defi.c894 if (efi_enabled(EFI_OLD_MEMMAP) && (__supported_pte_mask & _PAGE_NX)) in kexec_enter_virtual_mode()
/Linux-v4.19/arch/x86/kernel/
Despfix_64.c101 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
Dhead64.c45 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
Dtboot.c150 pgd->pgd &= ~_PAGE_NX; in map_tboot_page()
/Linux-v4.19/arch/x86/pci/
Dpcbios.c49 if (__supported_pte_mask & _PAGE_NX) in set_bios_x()
/Linux-v4.19/arch/x86/xen/
Dmmu_pv.c1934 if (__supported_pte_mask & _PAGE_NX) { in xen_setup_kernel_pagetable()
1938 level2_ident_pgt[i] = pmd_set_flags(level2_ident_pgt[i], _PAGE_NX); in xen_setup_kernel_pagetable()
/Linux-v4.19/drivers/video/fbdev/
Duvesafb.c804 if (__supported_pte_mask & _PAGE_NX) { in uvesafb_vbe_init()