Lines Matching +full:architecturally +full:- +full:defined
1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 1995-2004 Russell King
21 #include <linux/page-flags.h>
36 #include <asm/debug-monitors.h>
115 esr_to_fault_info(esr)->name); in mem_abort_decode()
125 return __pa_symbol(mm->pgd); in mm_to_pgd_phys()
127 return (unsigned long)virt_to_phys(mm->pgd); in mm_to_pgd_phys()
141 mm = current->active_mm; in show_pte()
156 pr_alert("%s pgtable: %luk pages, %llu-bit VAs, pgdp=%016lx\n", in show_pte()
208 * like set_pte_at(), the PTE is never changed from no-exec to exec here.
241 /* Invalidate a stale read-only entry */ in ptep_set_access_flags()
270 (regs->pstate & PSR_PAN_BIT); in is_el1_permission_fault()
334 kasan_report((void *)addr, 0, is_write, regs->pc); in report_tag_fault()
400 msg = "write to read-only memory"; in __do_kernel_fault()
402 msg = "execute from non-executable memory"; in __do_kernel_fault()
423 current->thread.fault_address = address; in set_thread_esr()
427 * From userspace's point of view, kernel-only mappings don't exist in set_thread_esr()
437 if (!is_ttbr0_addr(current->thread.fault_address)) { in set_thread_esr()
443 * We explicitly clear bits which are architecturally in set_thread_esr()
456 * All other bits are architecturally RES0 for faults in set_thread_esr()
475 current->thread.fault_code = esr; in set_thread_esr()
491 arm64_force_sig_fault(inf->sig, inf->code, far, inf->name); in do_bad_area()
511 if (!(vma->vm_flags & vm_flags)) in __do_page_fault()
534 struct mm_struct *mm = current->mm; in do_page_fault()
555 * vm_flags tells us what bits we must have in vma->vm_flags in do_page_fault()
557 * vma->vm_flags & vm_flags and returns an error if the in do_page_fault()
583 if (!search_exception_tables(regs->pc)) in do_page_fault()
597 if (!(vma->vm_flags & vm_flags)) { in do_page_fault()
666 * oom-killed). in do_page_fault()
679 arm64_force_sig_fault(SIGBUS, BUS_ADRERR, far, inf->name); in do_page_fault()
687 arm64_force_sig_mceerr(BUS_MCEERR_AR, far, lsb, inf->name); in do_page_fault()
695 far, inf->name); in do_page_fault()
742 * APEI claimed this as a firmware-first notification. in do_sea()
758 arm64_notify_die(inf->name, regs, inf->sig, inf->code, siaddr, esr); in do_sea()
848 if (!inf->fn(far, esr, regs)) in do_mem_abort()
852 die_kernel_fault(inf->name, addr, esr, regs); in do_mem_abort()
856 * have been defined as UNKNOWN. Therefore we only expose the untagged in do_mem_abort()
859 arm64_notify_die(inf->name, regs, inf->sig, inf->code, addr, esr); in do_mem_abort()
873 * See traps.c and debug-monitors.c:debug_traps_init().
877 { do_bad, SIGTRAP, TRAP_HWBKPT, "hardware single-step" },
931 if (inf->fn(addr_if_watchpoint, esr, regs)) { in do_debug_exception()
932 arm64_notify_die(inf->name, regs, inf->sig, inf->code, pc, esr); in do_debug_exception()
952 if (vma->vm_flags & VM_MTE) in vma_alloc_zeroed_movable_folio()