Lines Matching refs:address
28 force_sig_info_fault(int si_signo, int si_code, unsigned long address) in force_sig_info_fault() argument
30 force_sig_fault(si_signo, si_code, (void __user *)address); in force_sig_info_fault()
120 static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address) in vmalloc_sync_one() argument
122 unsigned index = pgd_index(address); in vmalloc_sync_one()
134 p4d = p4d_offset(pgd, address); in vmalloc_sync_one()
135 p4d_k = p4d_offset(pgd_k, address); in vmalloc_sync_one()
139 pud = pud_offset(p4d, address); in vmalloc_sync_one()
140 pud_k = pud_offset(p4d_k, address); in vmalloc_sync_one()
147 pmd = pmd_offset(pud, address); in vmalloc_sync_one()
148 pmd_k = pmd_offset(pud_k, address); in vmalloc_sync_one()
176 static noinline int vmalloc_fault(unsigned long address) in vmalloc_fault() argument
183 if (!(address >= VMALLOC_START && address < __FAULT_ADDR_LIMIT)) in vmalloc_fault()
194 pmd_k = vmalloc_sync_one(pgd_k, address); in vmalloc_fault()
198 pte_k = pte_offset_kernel(pmd_k, address); in vmalloc_fault()
206 show_fault_oops(struct pt_regs *regs, unsigned long address) in show_fault_oops() argument
212 address < PAGE_SIZE ? "NULL pointer dereference" in show_fault_oops()
214 address); in show_fault_oops()
218 show_pte(NULL, address); in show_fault_oops()
223 unsigned long address) in no_context() argument
229 if (handle_trapped_io(regs, address)) in no_context()
238 show_fault_oops(regs, address); in no_context()
245 unsigned long address, int si_code) in __bad_area_nosemaphore() argument
254 force_sig_info_fault(SIGSEGV, si_code, address); in __bad_area_nosemaphore()
259 no_context(regs, error_code, address); in __bad_area_nosemaphore()
264 unsigned long address) in bad_area_nosemaphore() argument
266 __bad_area_nosemaphore(regs, error_code, address, SEGV_MAPERR); in bad_area_nosemaphore()
271 unsigned long address, int si_code) in __bad_area() argument
281 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
285 bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address) in bad_area() argument
287 __bad_area(regs, error_code, address, SEGV_MAPERR); in bad_area()
292 unsigned long address) in bad_area_access_error() argument
294 __bad_area(regs, error_code, address, SEGV_ACCERR); in bad_area_access_error()
298 do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address) in do_sigbus() argument
307 no_context(regs, error_code, address); in do_sigbus()
309 force_sig_info_fault(SIGBUS, BUS_ADRERR, address); in do_sigbus()
314 unsigned long address, vm_fault_t fault) in mm_fault_error() argument
322 no_context(regs, error_code, address); in mm_fault_error()
336 no_context(regs, error_code, address); in mm_fault_error()
348 do_sigbus(regs, error_code, address); in mm_fault_error()
350 bad_area(regs, error_code, address); in mm_fault_error()
379 static int fault_in_kernel_space(unsigned long address) in fault_in_kernel_space() argument
381 return address >= TASK_SIZE; in fault_in_kernel_space()
391 unsigned long address) in do_page_fault() argument
413 if (unlikely(fault_in_kernel_space(address))) { in do_page_fault()
414 if (vmalloc_fault(address) >= 0) in do_page_fault()
419 bad_area_nosemaphore(regs, error_code, address); in do_page_fault()
430 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); in do_page_fault()
437 bad_area_nosemaphore(regs, error_code, address); in do_page_fault()
444 vma = find_vma(mm, address); in do_page_fault()
446 bad_area(regs, error_code, address); in do_page_fault()
449 if (likely(vma->vm_start <= address)) in do_page_fault()
452 bad_area(regs, error_code, address); in do_page_fault()
455 if (unlikely(expand_stack(vma, address))) { in do_page_fault()
456 bad_area(regs, error_code, address); in do_page_fault()
466 bad_area_access_error(regs, error_code, address); in do_page_fault()
482 fault = handle_mm_fault(vma, address, flags, regs); in do_page_fault()
485 if (mm_fault_error(regs, error_code, address, fault)) in do_page_fault()