fault.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * linux/arch/arm/mm/fault.c
  4. *
  5. * Copyright (C) 1995 Linus Torvalds
  6. * Modifications for ARM processor (c) 1995-2004 Russell King
  7. */
  8. #include <linux/extable.h>
  9. #include <linux/signal.h>
  10. #include <linux/mm.h>
  11. #include <linux/hardirq.h>
  12. #include <linux/init.h>
  13. #include <linux/kprobes.h>
  14. #include <linux/uaccess.h>
  15. #include <linux/page-flags.h>
  16. #include <linux/sched/signal.h>
  17. #include <linux/sched/debug.h>
  18. #include <linux/highmem.h>
  19. #include <linux/perf_event.h>
  20. #include <linux/kfence.h>
  21. #include <asm/system_misc.h>
  22. #include <asm/system_info.h>
  23. #include <asm/tlbflush.h>
  24. #include "fault.h"
  25. #ifdef CONFIG_MMU
  26. bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size)
  27. {
  28. unsigned long addr = (unsigned long)unsafe_src;
  29. return addr >= TASK_SIZE && ULONG_MAX - addr >= size;
  30. }
  31. /*
  32. * This is useful to dump out the page tables associated with
  33. * 'addr' in mm 'mm'.
  34. */
  35. void show_pte(const char *lvl, struct mm_struct *mm, unsigned long addr)
  36. {
  37. pgd_t *pgd;
  38. if (!mm)
  39. mm = &init_mm;
  40. pgd = pgd_offset(mm, addr);
  41. printk("%s[%08lx] *pgd=%08llx", lvl, addr, (long long)pgd_val(*pgd));
  42. do {
  43. p4d_t *p4d;
  44. pud_t *pud;
  45. pmd_t *pmd;
  46. pte_t *pte;
  47. p4d = p4d_offset(pgd, addr);
  48. if (p4d_none(*p4d))
  49. break;
  50. if (p4d_bad(*p4d)) {
  51. pr_cont("(bad)");
  52. break;
  53. }
  54. pud = pud_offset(p4d, addr);
  55. if (PTRS_PER_PUD != 1)
  56. pr_cont(", *pud=%08llx", (long long)pud_val(*pud));
  57. if (pud_none(*pud))
  58. break;
  59. if (pud_bad(*pud)) {
  60. pr_cont("(bad)");
  61. break;
  62. }
  63. pmd = pmd_offset(pud, addr);
  64. if (PTRS_PER_PMD != 1)
  65. pr_cont(", *pmd=%08llx", (long long)pmd_val(*pmd));
  66. if (pmd_none(*pmd))
  67. break;
  68. if (pmd_bad(*pmd)) {
  69. pr_cont("(bad)");
  70. break;
  71. }
  72. /* We must not map this if we have highmem enabled */
  73. if (PageHighMem(pfn_to_page(pmd_val(*pmd) >> PAGE_SHIFT)))
  74. break;
  75. pte = pte_offset_map(pmd, addr);
  76. if (!pte)
  77. break;
  78. pr_cont(", *pte=%08llx", (long long)pte_val(*pte));
  79. #ifndef CONFIG_ARM_LPAE
  80. pr_cont(", *ppte=%08llx",
  81. (long long)pte_val(pte[PTE_HWTABLE_PTRS]));
  82. #endif
  83. pte_unmap(pte);
  84. } while(0);
  85. pr_cont("\n");
  86. }
  87. #else /* CONFIG_MMU */
  88. void show_pte(const char *lvl, struct mm_struct *mm, unsigned long addr)
  89. { }
  90. #endif /* CONFIG_MMU */
  91. static inline bool is_write_fault(unsigned int fsr)
  92. {
  93. return (fsr & FSR_WRITE) && !(fsr & FSR_CM);
  94. }
  95. static inline bool is_translation_fault(unsigned int fsr)
  96. {
  97. int fs = fsr_fs(fsr);
  98. #ifdef CONFIG_ARM_LPAE
  99. if ((fs & FS_MMU_NOLL_MASK) == FS_TRANS_NOLL)
  100. return true;
  101. #else
  102. if (fs == FS_L1_TRANS || fs == FS_L2_TRANS)
  103. return true;
  104. #endif
  105. return false;
  106. }
  107. static void die_kernel_fault(const char *msg, struct mm_struct *mm,
  108. unsigned long addr, unsigned int fsr,
  109. struct pt_regs *regs)
  110. {
  111. bust_spinlocks(1);
  112. pr_alert("8<--- cut here ---\n");
  113. pr_alert("Unable to handle kernel %s at virtual address %08lx when %s\n",
  114. msg, addr, fsr & FSR_LNX_PF ? "execute" :
  115. fsr & FSR_WRITE ? "write" : "read");
  116. show_pte(KERN_ALERT, mm, addr);
  117. die("Oops", regs, fsr);
  118. bust_spinlocks(0);
  119. make_task_dead(SIGKILL);
  120. }
  121. /*
  122. * Oops. The kernel tried to access some page that wasn't present.
  123. */
  124. static void
  125. __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
  126. struct pt_regs *regs)
  127. {
  128. const char *msg;
  129. /*
  130. * Are we prepared to handle this kernel fault?
  131. */
  132. if (fixup_exception(regs))
  133. return;
  134. /*
  135. * No handler, we'll have to terminate things with extreme prejudice.
  136. */
  137. if (addr < PAGE_SIZE) {
  138. msg = "NULL pointer dereference";
  139. } else {
  140. if (is_translation_fault(fsr) &&
  141. kfence_handle_page_fault(addr, is_write_fault(fsr), regs))
  142. return;
  143. msg = "paging request";
  144. }
  145. die_kernel_fault(msg, mm, addr, fsr, regs);
  146. }
  147. /*
  148. * Something tried to access memory that isn't in our memory map..
  149. * User mode accesses just cause a SIGSEGV
  150. */
  151. static void
  152. __do_user_fault(unsigned long addr, unsigned int fsr, unsigned int sig,
  153. int code, struct pt_regs *regs)
  154. {
  155. struct task_struct *tsk = current;
  156. if (addr > TASK_SIZE)
  157. harden_branch_predictor();
  158. #ifdef CONFIG_DEBUG_USER
  159. if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) ||
  160. ((user_debug & UDBG_BUS) && (sig == SIGBUS))) {
  161. pr_err("8<--- cut here ---\n");
  162. pr_err("%s: unhandled page fault (%d) at 0x%08lx, code 0x%03x\n",
  163. tsk->comm, sig, addr, fsr);
  164. show_pte(KERN_ERR, tsk->mm, addr);
  165. show_regs(regs);
  166. }
  167. #endif
  168. #ifndef CONFIG_KUSER_HELPERS
  169. if ((sig == SIGSEGV) && ((addr & PAGE_MASK) == 0xffff0000))
  170. printk_ratelimited(KERN_DEBUG
  171. "%s: CONFIG_KUSER_HELPERS disabled at 0x%08lx\n",
  172. tsk->comm, addr);
  173. #endif
  174. tsk->thread.address = addr;
  175. tsk->thread.error_code = fsr;
  176. tsk->thread.trap_no = 14;
  177. force_sig_fault(sig, code, (void __user *)addr);
  178. }
  179. void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  180. {
  181. struct task_struct *tsk = current;
  182. struct mm_struct *mm = tsk->active_mm;
  183. /*
  184. * If we are in kernel mode at this point, we
  185. * have no context to handle this fault with.
  186. */
  187. if (user_mode(regs))
  188. __do_user_fault(addr, fsr, SIGSEGV, SEGV_MAPERR, regs);
  189. else
  190. __do_kernel_fault(mm, addr, fsr, regs);
  191. }
  192. #ifdef CONFIG_MMU
  193. static inline bool is_permission_fault(unsigned int fsr)
  194. {
  195. int fs = fsr_fs(fsr);
  196. #ifdef CONFIG_ARM_LPAE
  197. if ((fs & FS_MMU_NOLL_MASK) == FS_PERM_NOLL)
  198. return true;
  199. #else
  200. if (fs == FS_L1_PERM || fs == FS_L2_PERM)
  201. return true;
  202. #endif
  203. return false;
  204. }
  205. #ifdef CONFIG_CPU_TTBR0_PAN
  206. static inline bool ttbr0_usermode_access_allowed(struct pt_regs *regs)
  207. {
  208. struct svc_pt_regs *svcregs;
  209. /* If we are in user mode: permission granted */
  210. if (user_mode(regs))
  211. return true;
  212. /* uaccess state saved above pt_regs on SVC exception entry */
  213. svcregs = to_svc_pt_regs(regs);
  214. return !(svcregs->ttbcr & TTBCR_EPD0);
  215. }
  216. #else
  217. static inline bool ttbr0_usermode_access_allowed(struct pt_regs *regs)
  218. {
  219. return true;
  220. }
  221. #endif
  222. static int __kprobes
  223. do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  224. {
  225. struct mm_struct *mm = current->mm;
  226. struct vm_area_struct *vma;
  227. int sig, code;
  228. vm_fault_t fault;
  229. unsigned int flags = FAULT_FLAG_DEFAULT;
  230. unsigned long vm_flags = VM_ACCESS_FLAGS;
  231. if (kprobe_page_fault(regs, fsr))
  232. return 0;
  233. /* Enable interrupts if they were enabled in the parent context. */
  234. if (interrupts_enabled(regs))
  235. local_irq_enable();
  236. /*
  237. * If we're in an interrupt or have no user
  238. * context, we must not take the fault..
  239. */
  240. if (faulthandler_disabled() || !mm)
  241. goto no_context;
  242. if (user_mode(regs))
  243. flags |= FAULT_FLAG_USER;
  244. if (is_write_fault(fsr)) {
  245. flags |= FAULT_FLAG_WRITE;
  246. vm_flags = VM_WRITE;
  247. }
  248. if (fsr & FSR_LNX_PF) {
  249. vm_flags = VM_EXEC;
  250. if (is_permission_fault(fsr) && !user_mode(regs))
  251. die_kernel_fault("execution of memory",
  252. mm, addr, fsr, regs);
  253. }
  254. perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, addr);
  255. /*
  256. * Privileged access aborts with CONFIG_CPU_TTBR0_PAN enabled are
  257. * routed via the translation fault mechanism. Check whether uaccess
  258. * is disabled while in kernel mode.
  259. */
  260. if (!ttbr0_usermode_access_allowed(regs))
  261. goto no_context;
  262. if (!(flags & FAULT_FLAG_USER))
  263. goto lock_mmap;
  264. vma = lock_vma_under_rcu(mm, addr);
  265. if (!vma)
  266. goto lock_mmap;
  267. if (!(vma->vm_flags & vm_flags)) {
  268. vma_end_read(vma);
  269. count_vm_vma_lock_event(VMA_LOCK_SUCCESS);
  270. fault = 0;
  271. code = SEGV_ACCERR;
  272. goto bad_area;
  273. }
  274. fault = handle_mm_fault(vma, addr, flags | FAULT_FLAG_VMA_LOCK, regs);
  275. if (!(fault & (VM_FAULT_RETRY | VM_FAULT_COMPLETED)))
  276. vma_end_read(vma);
  277. if (!(fault & VM_FAULT_RETRY)) {
  278. count_vm_vma_lock_event(VMA_LOCK_SUCCESS);
  279. goto done;
  280. }
  281. count_vm_vma_lock_event(VMA_LOCK_RETRY);
  282. if (fault & VM_FAULT_MAJOR)
  283. flags |= FAULT_FLAG_TRIED;
  284. /* Quick path to respond to signals */
  285. if (fault_signal_pending(fault, regs)) {
  286. if (!user_mode(regs))
  287. goto no_context;
  288. return 0;
  289. }
  290. lock_mmap:
  291. retry:
  292. vma = lock_mm_and_find_vma(mm, addr, regs);
  293. if (unlikely(!vma)) {
  294. fault = 0;
  295. code = SEGV_MAPERR;
  296. goto bad_area;
  297. }
  298. /*
  299. * ok, we have a good vm_area for this memory access, check the
  300. * permissions on the VMA allow for the fault which occurred.
  301. */
  302. if (!(vma->vm_flags & vm_flags)) {
  303. mmap_read_unlock(mm);
  304. fault = 0;
  305. code = SEGV_ACCERR;
  306. goto bad_area;
  307. }
  308. fault = handle_mm_fault(vma, addr & PAGE_MASK, flags, regs);
  309. /* If we need to retry but a fatal signal is pending, handle the
  310. * signal first. We do not need to release the mmap_lock because
  311. * it would already be released in __lock_page_or_retry in
  312. * mm/filemap.c. */
  313. if (fault_signal_pending(fault, regs)) {
  314. if (!user_mode(regs))
  315. goto no_context;
  316. return 0;
  317. }
  318. /* The fault is fully completed (including releasing mmap lock) */
  319. if (fault & VM_FAULT_COMPLETED)
  320. return 0;
  321. if (!(fault & VM_FAULT_ERROR)) {
  322. if (fault & VM_FAULT_RETRY) {
  323. flags |= FAULT_FLAG_TRIED;
  324. goto retry;
  325. }
  326. }
  327. mmap_read_unlock(mm);
  328. done:
  329. /* Handle the "normal" case first */
  330. if (likely(!(fault & VM_FAULT_ERROR)))
  331. return 0;
  332. code = SEGV_MAPERR;
  333. bad_area:
  334. /*
  335. * If we are in kernel mode at this point, we
  336. * have no context to handle this fault with.
  337. */
  338. if (!user_mode(regs))
  339. goto no_context;
  340. if (fault & VM_FAULT_OOM) {
  341. /*
  342. * We ran out of memory, call the OOM killer, and return to
  343. * userspace (which will retry the fault, or kill us if we
  344. * got oom-killed)
  345. */
  346. pagefault_out_of_memory();
  347. return 0;
  348. }
  349. if (fault & VM_FAULT_SIGBUS) {
  350. /*
  351. * We had some memory, but were unable to
  352. * successfully fix up this page fault.
  353. */
  354. sig = SIGBUS;
  355. code = BUS_ADRERR;
  356. } else {
  357. /*
  358. * Something tried to access memory that
  359. * isn't in our memory map..
  360. */
  361. sig = SIGSEGV;
  362. }
  363. __do_user_fault(addr, fsr, sig, code, regs);
  364. return 0;
  365. no_context:
  366. __do_kernel_fault(mm, addr, fsr, regs);
  367. return 0;
  368. }
  369. #else /* CONFIG_MMU */
  370. static int
  371. do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  372. {
  373. return 0;
  374. }
  375. #endif /* CONFIG_MMU */
  376. /*
  377. * First Level Translation Fault Handler
  378. *
  379. * We enter here because the first level page table doesn't contain
  380. * a valid entry for the address.
  381. *
  382. * If the address is in kernel space (>= TASK_SIZE), then we are
  383. * probably faulting in the vmalloc() area.
  384. *
  385. * If the init_task's first level page tables contains the relevant
  386. * entry, we copy the it to this task. If not, we send the process
  387. * a signal, fixup the exception, or oops the kernel.
  388. *
  389. * NOTE! We MUST NOT take any locks for this case. We may be in an
  390. * interrupt or a critical region, and should only copy the information
  391. * from the master page table, nothing more.
  392. */
  393. #ifdef CONFIG_MMU
  394. static int __kprobes
  395. do_translation_fault(unsigned long addr, unsigned int fsr,
  396. struct pt_regs *regs)
  397. {
  398. unsigned int index;
  399. pgd_t *pgd, *pgd_k;
  400. p4d_t *p4d, *p4d_k;
  401. pud_t *pud, *pud_k;
  402. pmd_t *pmd, *pmd_k;
  403. if (addr < TASK_SIZE)
  404. return do_page_fault(addr, fsr, regs);
  405. if (user_mode(regs))
  406. goto bad_area;
  407. index = pgd_index(addr);
  408. pgd = cpu_get_pgd() + index;
  409. pgd_k = init_mm.pgd + index;
  410. p4d = p4d_offset(pgd, addr);
  411. p4d_k = p4d_offset(pgd_k, addr);
  412. if (p4d_none(*p4d_k))
  413. goto bad_area;
  414. if (!p4d_present(*p4d))
  415. set_p4d(p4d, *p4d_k);
  416. pud = pud_offset(p4d, addr);
  417. pud_k = pud_offset(p4d_k, addr);
  418. if (pud_none(*pud_k))
  419. goto bad_area;
  420. if (!pud_present(*pud))
  421. set_pud(pud, *pud_k);
  422. pmd = pmd_offset(pud, addr);
  423. pmd_k = pmd_offset(pud_k, addr);
  424. #ifdef CONFIG_ARM_LPAE
  425. /*
  426. * Only one hardware entry per PMD with LPAE.
  427. */
  428. index = 0;
  429. #else
  430. /*
  431. * On ARM one Linux PGD entry contains two hardware entries (see page
  432. * tables layout in pgtable.h). We normally guarantee that we always
  433. * fill both L1 entries. But create_mapping() doesn't follow the rule.
  434. * It can create inidividual L1 entries, so here we have to call
  435. * pmd_none() check for the entry really corresponded to address, not
  436. * for the first of pair.
  437. */
  438. index = (addr >> SECTION_SHIFT) & 1;
  439. #endif
  440. if (pmd_none(pmd_k[index]))
  441. goto bad_area;
  442. copy_pmd(pmd, pmd_k);
  443. return 0;
  444. bad_area:
  445. do_bad_area(addr, fsr, regs);
  446. return 0;
  447. }
  448. #else /* CONFIG_MMU */
  449. static int
  450. do_translation_fault(unsigned long addr, unsigned int fsr,
  451. struct pt_regs *regs)
  452. {
  453. return 0;
  454. }
  455. #endif /* CONFIG_MMU */
  456. /*
  457. * Some section permission faults need to be handled gracefully.
  458. * They can happen due to a __{get,put}_user during an oops.
  459. */
  460. #ifndef CONFIG_ARM_LPAE
  461. static int
  462. do_sect_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  463. {
  464. do_bad_area(addr, fsr, regs);
  465. return 0;
  466. }
  467. #endif /* CONFIG_ARM_LPAE */
  468. /*
  469. * This abort handler always returns "fault".
  470. */
  471. static int
  472. do_bad(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  473. {
  474. return 1;
  475. }
  476. struct fsr_info {
  477. int (*fn)(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
  478. int sig;
  479. int code;
  480. const char *name;
  481. };
  482. /* FSR definition */
  483. #ifdef CONFIG_ARM_LPAE
  484. #include "fsr-3level.c"
  485. #else
  486. #include "fsr-2level.c"
  487. #endif
  488. void __init
  489. hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *),
  490. int sig, int code, const char *name)
  491. {
  492. if (nr < 0 || nr >= ARRAY_SIZE(fsr_info))
  493. BUG();
  494. fsr_info[nr].fn = fn;
  495. fsr_info[nr].sig = sig;
  496. fsr_info[nr].code = code;
  497. fsr_info[nr].name = name;
  498. }
  499. /*
  500. * Dispatch a data abort to the relevant handler.
  501. */
  502. asmlinkage void
  503. do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  504. {
  505. const struct fsr_info *inf = fsr_info + fsr_fs(fsr);
  506. if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs))
  507. return;
  508. pr_alert("8<--- cut here ---\n");
  509. pr_alert("Unhandled fault: %s (0x%03x) at 0x%08lx\n",
  510. inf->name, fsr, addr);
  511. show_pte(KERN_ALERT, current->mm, addr);
  512. arm_notify_die("", regs, inf->sig, inf->code, (void __user *)addr,
  513. fsr, 0);
  514. }
  515. void __init
  516. hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *),
  517. int sig, int code, const char *name)
  518. {
  519. if (nr < 0 || nr >= ARRAY_SIZE(ifsr_info))
  520. BUG();
  521. ifsr_info[nr].fn = fn;
  522. ifsr_info[nr].sig = sig;
  523. ifsr_info[nr].code = code;
  524. ifsr_info[nr].name = name;
  525. }
  526. asmlinkage void
  527. do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
  528. {
  529. const struct fsr_info *inf = ifsr_info + fsr_fs(ifsr);
  530. if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs))
  531. return;
  532. pr_alert("8<--- cut here ---\n");
  533. pr_alert("Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n",
  534. inf->name, ifsr, addr);
  535. arm_notify_die("", regs, inf->sig, inf->code, (void __user *)addr,
  536. ifsr, 0);
  537. }
  538. /*
  539. * Abort handler to be used only during first unmasking of asynchronous aborts
  540. * on the boot CPU. This makes sure that the machine will not die if the
  541. * firmware/bootloader left an imprecise abort pending for us to trip over.
  542. */
  543. static int __init early_abort_handler(unsigned long addr, unsigned int fsr,
  544. struct pt_regs *regs)
  545. {
  546. pr_warn("Hit pending asynchronous external abort (FSR=0x%08x) during "
  547. "first unmask, this is most likely caused by a "
  548. "firmware/bootloader bug.\n", fsr);
  549. return 0;
  550. }
  551. void __init early_abt_enable(void)
  552. {
  553. fsr_info[FSR_FS_AEA].fn = early_abort_handler;
  554. local_abt_enable();
  555. fsr_info[FSR_FS_AEA].fn = do_bad;
  556. }
  557. #ifndef CONFIG_ARM_LPAE
  558. static int __init exceptions_init(void)
  559. {
  560. if (cpu_architecture() >= CPU_ARCH_ARMv6) {
  561. hook_fault_code(4, do_translation_fault, SIGSEGV, SEGV_MAPERR,
  562. "I-cache maintenance fault");
  563. }
  564. if (cpu_architecture() >= CPU_ARCH_ARMv7) {
  565. /*
  566. * TODO: Access flag faults introduced in ARMv6K.
  567. * Runtime check for 'K' extension is needed
  568. */
  569. hook_fault_code(3, do_bad, SIGSEGV, SEGV_MAPERR,
  570. "section access flag fault");
  571. hook_fault_code(6, do_bad, SIGSEGV, SEGV_MAPERR,
  572. "section access flag fault");
  573. }
  574. return 0;
  575. }
  576. arch_initcall(exceptions_init);
  577. #endif