From eb30d8959a1448ff7a7b73c410533fd80508f0af Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 24 Jun 2008 21:24:04 +0000 Subject: On user/kernel shared page table machines, do not let processes map their own page 0, as discussed with miod (and many others previously, including art and toby). On sparc, make this __LDPGSZ because PAGE_SIZE is non-constant ok miod tedu --- sys/arch/amd64/include/vmparam.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64/include') diff --git a/sys/arch/amd64/include/vmparam.h b/sys/arch/amd64/include/vmparam.h index c083cb68e23..3822f13d557 100644 --- a/sys/arch/amd64/include/vmparam.h +++ b/sys/arch/amd64/include/vmparam.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmparam.h,v 1.8 2008/06/10 02:55:39 weingart Exp $ */ +/* $OpenBSD: vmparam.h,v 1.9 2008/06/24 21:24:03 deraadt Exp $ */ /* $NetBSD: vmparam.h,v 1.1 2003/04/26 18:39:49 fvdl Exp $ */ /*- @@ -88,7 +88,7 @@ */ /* user/kernel map constants */ -#define VM_MIN_ADDRESS 0 +#define VM_MIN_ADDRESS PAGE_SIZE #define VM_MAXUSER_ADDRESS 0x00007f7fffffc000 #define VM_MAX_ADDRESS 0x00007fbfdfeff000 #define VM_MIN_KERNEL_ADDRESS 0xffff800000000000 -- cgit v1.2.3