diff options
author | Kiyoshi Ueda <k-ueda@ct.jp.nec.com> | 2005-08-24 18:03:43 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-09-06 19:06:58 -0400 |
commit | 63028aa7f581d9d4e6889f9dc06ded2534250a76 (patch) | |
tree | 6167c2325aae1341161c41a1c9ce83e91fca2990 /arch/ia64 | |
parent | 4706df3d3c42af802597d82c8b1542c3d52eab23 (diff) |
[IA64] page_not_present fault in region 5 is normal
When copying data from user-space to kernel-space by __copy_user(),
a page_not_present fault sometimes occurs at vmalloced kernel address
because of VHPT pre-fetching.
Ignore the page_not_present fault in ia64_do_page_fault() before
jumping into exception handlers.
Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com>
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/mm/fault.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c index ff62551eb3a1..839d4f1234ee 100644 --- a/arch/ia64/mm/fault.c +++ b/arch/ia64/mm/fault.c | |||
@@ -229,9 +229,6 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re | |||
229 | return; | 229 | return; |
230 | } | 230 | } |
231 | 231 | ||
232 | if (ia64_done_with_exception(regs)) | ||
233 | return; | ||
234 | |||
235 | /* | 232 | /* |
236 | * Since we have no vma's for region 5, we might get here even if the address is | 233 | * Since we have no vma's for region 5, we might get here even if the address is |
237 | * valid, due to the VHPT walker inserting a non present translation that becomes | 234 | * valid, due to the VHPT walker inserting a non present translation that becomes |
@@ -242,6 +239,9 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re | |||
242 | if (REGION_NUMBER(address) == 5 && mapped_kernel_page_is_present(address)) | 239 | if (REGION_NUMBER(address) == 5 && mapped_kernel_page_is_present(address)) |
243 | return; | 240 | return; |
244 | 241 | ||
242 | if (ia64_done_with_exception(regs)) | ||
243 | return; | ||
244 | |||
245 | /* | 245 | /* |
246 | * Oops. The kernel tried to access some bad page. We'll have to terminate things | 246 | * Oops. The kernel tried to access some bad page. We'll have to terminate things |
247 | * with extreme prejudice. | 247 | * with extreme prejudice. |