/openbmc/linux/arch/x86/power/ |
H A D | hibernate.c | 169 set_p4d(p4d, __p4d(p4d_val(*p4d) & ~_PAGE_NX)); in relocate_restore_code() 174 set_pud(pud, __pud(pud_val(*pud) & ~_PAGE_NX)); in relocate_restore_code() 179 set_pmd(pmd, __pmd(pmd_val(*pmd) & ~_PAGE_NX)); in relocate_restore_code() 183 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_NX)); in relocate_restore_code()
|
/openbmc/linux/arch/x86/mm/pat/ |
H A D | set_memory.c | 453 return _PAGE_NX; in protect_pci_bios() 497 return _PAGE_NX; in protect_kernel_text() 636 if (!(__supported_pte_mask & _PAGE_NX)) in verify_rwx() 639 if (!((pgprot_val(old) ^ pgprot_val(new)) & (_PAGE_RW | _PAGE_NX))) in verify_rwx() 642 if ((pgprot_val(new) & (_PAGE_RW | _PAGE_NX)) != _PAGE_RW) in verify_rwx() 682 *nx |= pgd_flags(*pgd) & _PAGE_NX; in lookup_address_in_pgd_attr() 693 *nx |= p4d_flags(*p4d) & _PAGE_NX; in lookup_address_in_pgd_attr() 704 *nx |= pud_flags(*pud) & _PAGE_NX; in lookup_address_in_pgd_attr() 715 *nx |= pmd_flags(*pmd) & _PAGE_NX; in lookup_address_in_pgd_attr() 1732 if (__supported_pte_mask & _PAGE_NX) { in cpa_process_alias() [all …]
|
H A D | cpa-test.c | 85 if (!(pte_val(*pte) & _PAGE_NX)) { in print_split()
|
/openbmc/linux/arch/x86/mm/ |
H A D | dump_pagetables.c | 219 if (pr & _PAGE_NX) in printk_prot() 246 WARN_ONCE(__supported_pte_mask & _PAGE_NX, in note_wx() 261 ((higher_prot | prot) & _PAGE_NX); in effective_prot() 312 if (st->check_wx && (eff & _PAGE_RW) && !(eff & _PAGE_NX)) in note_page() 424 if (!(__supported_pte_mask & _PAGE_NX) || in ptdump_walk_user_pgd_level_checkwx()
|
H A D | init_32.c | 517 #define DEFAULT_PTE_MASK ~(_PAGE_NX | _PAGE_GLOBAL) 779 if (__supported_pte_mask & _PAGE_NX) in mark_nxdata_nx() 803 if (__supported_pte_mask & _PAGE_NX) in mark_rodata_ro()
|
H A D | pti.c | 158 (__supported_pte_mask & _PAGE_NX)) in __pti_set_user_pgtbl() 159 pgd.pgd |= _PAGE_NX; in __pti_set_user_pgtbl()
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | efi_64.c | 192 pf = _PAGE_NX | _PAGE_RW | _PAGE_ENC; in efi_setup_page_tables() 252 pf = _PAGE_NX | _PAGE_ENC; in efi_setup_page_tables() 290 flags |= _PAGE_NX; in __map_region() 402 pf |= _PAGE_NX; in efi_update_mem_attr() 450 pf |= _PAGE_NX; in efi_runtime_update_mappings()
|
H A D | efi_32.c | 131 if (__supported_pte_mask & _PAGE_NX) { in efi_runtime_update_mappings()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | pgtable_types.h | 121 #define _PAGE_NX (_AT(pteval_t, 1) << _PAGE_BIT_NX) macro 125 #define _PAGE_NX (_AT(pteval_t, 0)) macro 195 #define __NX _PAGE_NX 303 return __pgprot(pgprot_val(prot) | _PAGE_NX); in pgprot_nx()
|
H A D | tlbflush.h | 315 _PAGE_PKEY_BIT2 | _PAGE_PKEY_BIT3 | _PAGE_NX; in pte_flags_need_flush()
|
H A D | pgtable.h | 209 return !(pte_flags(pte) & _PAGE_NX); in pte_exec() 416 return pte_clear_flags(pte, _PAGE_NX); in pte_mkexec() 1118 ignore_flags |= _PAGE_NX; in p4d_bad() 1164 ignore_flags |= _PAGE_NX; in pgd_bad()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | espfix_64.c | 93 #define PGTABLE_PROT ((_KERNPG_TABLE & ~_PAGE_RW) | _PAGE_NX)
|
H A D | setup.c | 820 __supported_pte_mask |= _PAGE_NX; in x86_configure_nx() 822 __supported_pte_mask &= ~_PAGE_NX; in x86_configure_nx()
|
H A D | tboot.c | 146 pgd->pgd &= ~_PAGE_NX; in map_tboot_page()
|
H A D | head64.c | 51 pmdval_t early_pmd_flags = __PAGE_KERNEL_LARGE & ~(_PAGE_GLOBAL | _PAGE_NX);
|
H A D | sev.c | 1169 pflags = _PAGE_NX | _PAGE_RW; in sev_es_efi_map_ghcbs()
|
/openbmc/linux/arch/x86/pci/ |
H A D | pcbios.c | 49 if (__supported_pte_mask & _PAGE_NX) in set_bios_x()
|
/openbmc/linux/mm/kmsan/ |
H A D | shadow.c | 246 prot = __pgprot(pgprot_val(prot) | _PAGE_NX); in kmsan_vmap_pages_range_noflush()
|
/openbmc/linux/arch/x86/xen/ |
H A D | mmu_pv.c | 1813 if (__supported_pte_mask & _PAGE_NX) { in xen_setup_kernel_pagetable() 1817 level2_ident_pgt[i] = pmd_set_flags(level2_ident_pgt[i], _PAGE_NX); in xen_setup_kernel_pagetable()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | uvesafb.c | 807 if (__supported_pte_mask & _PAGE_NX) { in uvesafb_vbe_init()
|