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()
247 unsigned long address, int si_code) in __bad_area_nosemaphore() argument
256 force_sig_info_fault(SIGSEGV, si_code, address); in __bad_area_nosemaphore()
261 no_context(regs, error_code, address); in __bad_area_nosemaphore()
266 unsigned long address) in bad_area_nosemaphore() argument
268 __bad_area_nosemaphore(regs, error_code, address, SEGV_MAPERR); in bad_area_nosemaphore()
273 unsigned long address, int si_code) in __bad_area() argument
283 __bad_area_nosemaphore(regs, error_code, address, si_code); in __bad_area()
287 bad_area(struct pt_regs *regs, unsigned long error_code, unsigned long address) in bad_area() argument
289 __bad_area(regs, error_code, address, SEGV_MAPERR); in bad_area()
294 unsigned long address) in bad_area_access_error() argument
296 __bad_area(regs, error_code, address, SEGV_ACCERR); in bad_area_access_error()
300 do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address) in do_sigbus() argument
309 no_context(regs, error_code, address); in do_sigbus()
311 force_sig_info_fault(SIGBUS, BUS_ADRERR, address); in do_sigbus()
316 unsigned long address, vm_fault_t fault) in mm_fault_error() argument
324 no_context(regs, error_code, address); in mm_fault_error()
338 no_context(regs, error_code, address); in mm_fault_error()
350 do_sigbus(regs, error_code, address); in mm_fault_error()
352 bad_area(regs, error_code, address); in mm_fault_error()
381 static int fault_in_kernel_space(unsigned long address) in fault_in_kernel_space() argument
383 return address >= TASK_SIZE; in fault_in_kernel_space()
393 unsigned long address) in do_page_fault() argument
415 if (unlikely(fault_in_kernel_space(address))) { in do_page_fault()
416 if (vmalloc_fault(address) >= 0) in do_page_fault()
421 bad_area_nosemaphore(regs, error_code, address); in do_page_fault()
432 perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address); in do_page_fault()
439 bad_area_nosemaphore(regs, error_code, address); in do_page_fault()
446 vma = find_vma(mm, address); in do_page_fault()
448 bad_area(regs, error_code, address); in do_page_fault()
451 if (likely(vma->vm_start <= address)) in do_page_fault()
454 bad_area(regs, error_code, address); in do_page_fault()
457 if (unlikely(expand_stack(vma, address))) { in do_page_fault()
458 bad_area(regs, error_code, address); in do_page_fault()
468 bad_area_access_error(regs, error_code, address); in do_page_fault()
484 fault = handle_mm_fault(vma, address, flags, regs); in do_page_fault()
487 if (mm_fault_error(regs, error_code, address, fault)) in do_page_fault()