fault_32.c (8a2094d679d921d104d3296528d4fa419702ce1c) fault_32.c (36ef159f4408b08eae7f2af6d62bedd3f4343758)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * fault.c: Page fault handlers for the Sparc.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
7 * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 */

--- 186 unchanged lines hidden (view full) ---

195 goto out_of_memory;
196 else if (fault & VM_FAULT_SIGSEGV)
197 goto bad_area;
198 else if (fault & VM_FAULT_SIGBUS)
199 goto do_sigbus;
200 BUG();
201 }
202
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * fault.c: Page fault handlers for the Sparc.
4 *
5 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
6 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
7 * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 */

--- 186 unchanged lines hidden (view full) ---

195 goto out_of_memory;
196 else if (fault & VM_FAULT_SIGSEGV)
197 goto bad_area;
198 else if (fault & VM_FAULT_SIGBUS)
199 goto do_sigbus;
200 BUG();
201 }
202
203 if (flags & FAULT_FLAG_ALLOW_RETRY) {
204 if (fault & VM_FAULT_RETRY) {
205 flags |= FAULT_FLAG_TRIED;
203 if (fault & VM_FAULT_RETRY) {
204 flags |= FAULT_FLAG_TRIED;
206
205
207 /* No need to mmap_read_unlock(mm) as we would
208 * have already released it in __lock_page_or_retry
209 * in mm/filemap.c.
210 */
206 /* No need to mmap_read_unlock(mm) as we would
207 * have already released it in __lock_page_or_retry
208 * in mm/filemap.c.
209 */
211
210
212 goto retry;
213 }
211 goto retry;
214 }
215
216 mmap_read_unlock(mm);
217 return;
218
219 /*
220 * Something tried to access memory that isn't in our memory map..
221 * Fix it, but check if it's kernel or user first..

--- 172 unchanged lines hidden ---
212 }
213
214 mmap_read_unlock(mm);
215 return;
216
217 /*
218 * Something tried to access memory that isn't in our memory map..
219 * Fix it, but check if it's kernel or user first..

--- 172 unchanged lines hidden ---