Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm32/arm32 When handling a page fault, panic if th...



details:   https://anonhg.NetBSD.org/src/rev/b33d535af1d4
branches:  trunk
changeset: 471626:b33d535af1d4
user:      mark <mark%NetBSD.org@localhost>
date:      Tue Apr 06 06:35:03 1999 +0000

description:
When handling a page fault, panic if the map is NULL so that we don't
dereference it when doing handled or modified emulation. This can happen
if fault are taken during early parts of the bootstrap, resulting in
recursive faulting.

diffstat:

 sys/arch/arm32/arm32/fault.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b9b5379f643d -r b33d535af1d4 sys/arch/arm32/arm32/fault.c
--- a/sys/arch/arm32/arm32/fault.c      Tue Apr 06 06:16:07 1999 +0000
+++ b/sys/arch/arm32/arm32/fault.c      Tue Apr 06 06:35:03 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.41 1999/03/26 22:00:24 mycroft Exp $       */
+/*     $NetBSD: fault.c,v 1.42 1999/04/06 06:35:03 mark Exp $  */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -368,6 +368,9 @@
                        printf("vmmap=%p ", map);
 #endif
 
+               if (map == NULL)
+                       panic("No map for fault address\n");
+
                /*
                 * We need to know whether the page should be mapped
                 * as R or R/W. The MMU does not give us the info as



Home | Main Index | Thread Index | Old Index