Lines Matching refs:address
54 __bad_area_nosemaphore(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area_nosemaphore() argument
64 _exception(SIGSEGV, regs, si_code, address); in __bad_area_nosemaphore()
69 static noinline int bad_area_nosemaphore(struct pt_regs *regs, unsigned long address) in bad_area_nosemaphore() argument
71 return __bad_area_nosemaphore(regs, address, SEGV_MAPERR); in bad_area_nosemaphore()
74 static int __bad_area(struct pt_regs *regs, unsigned long address, int si_code) in __bad_area() argument
84 return __bad_area_nosemaphore(regs, address, si_code); in __bad_area()
87 static noinline int bad_area(struct pt_regs *regs, unsigned long address) in bad_area() argument
89 return __bad_area(regs, address, SEGV_MAPERR); in bad_area()
92 static noinline int bad_access_pkey(struct pt_regs *regs, unsigned long address, in bad_access_pkey() argument
127 _exception_pkey(regs, address, pkey); in bad_access_pkey()
132 static noinline int bad_access(struct pt_regs *regs, unsigned long address) in bad_access() argument
134 return __bad_area(regs, address, SEGV_ACCERR); in bad_access()
137 static int do_sigbus(struct pt_regs *regs, unsigned long address, in do_sigbus() argument
149 current->comm, current->pid, address); in do_sigbus()
156 force_sig_mceerr(BUS_MCEERR_AR, (void __user *)address, lsb); in do_sigbus()
161 force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address); in do_sigbus()
198 unsigned long address, bool is_write) in bad_kernel_fault() argument
204 address >= TASK_SIZE ? "exec-protected" : "user", in bad_kernel_fault()
205 address, in bad_kernel_fault()
213 if (address >= TASK_SIZE) in bad_kernel_fault()
217 if (bad_kuap_fault(regs, address, is_write)) { in bad_kernel_fault()
219 is_write ? "write" : "read", address, in bad_kernel_fault()
302 unsigned long error_code, unsigned long address) in sanity_check_fault() argument
307 if (is_user && address >= TASK_SIZE) { in sanity_check_fault()
308 if ((long)address == -1) in sanity_check_fault()
312 current->comm, current->pid, address, in sanity_check_fault()
386 static int ___do_page_fault(struct pt_regs *regs, unsigned long address, in ___do_page_fault() argument
403 _exception(SIGBUS, regs, BUS_OBJERR, address); in ___do_page_fault()
410 sanity_check_fault(is_write, is_user, error_code, address); in ___do_page_fault()
417 if (unlikely(!is_user && bad_kernel_fault(regs, error_code, address, is_write))) { in ___do_page_fault()
418 if (kfence_handle_page_fault(address, is_write, regs)) in ___do_page_fault()
434 return bad_area_nosemaphore(regs, address); in ___do_page_fault()
439 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); in ___do_page_fault()
470 return bad_area_nosemaphore(regs, address); in ___do_page_fault()
483 vma = find_vma(mm, address); in ___do_page_fault()
485 return bad_area(regs, address); in ___do_page_fault()
487 if (unlikely(vma->vm_start > address)) { in ___do_page_fault()
489 return bad_area(regs, address); in ___do_page_fault()
491 if (unlikely(expand_stack(vma, address))) in ___do_page_fault()
492 return bad_area(regs, address); in ___do_page_fault()
497 return bad_access_pkey(regs, address, vma); in ___do_page_fault()
500 return bad_access(regs, address); in ___do_page_fault()
507 fault = handle_mm_fault(vma, address, flags, regs); in ___do_page_fault()
528 return mm_fault_error(regs, address, fault); in ___do_page_fault()