Subject: PR/34186 CVS commit: [netbsd-4] src/sys/arch/i386/i386
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Scheler <tron@netbsd.org>
List: netbsd-bugs
Date: 02/07/2007 12:55:02
The following reply was made to PR port-i386/34186; it has been noted by GNATS.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/34186 CVS commit: [netbsd-4] src/sys/arch/i386/i386
Date: Wed, 7 Feb 2007 12:51:45 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Wed Feb 7 12:51:45 UTC 2007
Modified Files:
src/sys/arch/i386/i386 [netbsd-4]: machdep.c pmap.c
Log Message:
Pull up following revision(s) (requested by pavel in ticket #397):
sys/arch/i386/i386/machdep.c: revision 1.589
sys/arch/i386/i386/pmap.c: revision 1.195
PR port-i386/34186 by Wolfgang Stukenbrock:
mapping of msgbuf during startup may map invalid physical adresses
"If the last available physical memory segment on a system is less 16k,
than the startup code that will map the kernel message buffer, will fail
and map physical pages behind the last segment. This may either only lead
to a message buffer without physical memory behind it, or to an
overlapping message buffer with something else."
Fix by allowing multiple physical memory segments to be used for msgbuf.
Also remove some leftover msgbuf manipulation from pmap.c.
Fix supplied by Wolfgang Stukenbrock in the PR, with some modifications
from me, mainly to use the already existing constant VM_PHYSSEG_MAX as the
static limit of number of msgbuf segments.
To generate a diff of this commit:
cvs rdiff -r1.586 -r1.586.2.1 src/sys/arch/i386/i386/machdep.c
cvs rdiff -r1.194 -r1.194.2.1 src/sys/arch/i386/i386/pmap.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.