Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jul 2024 19:49:35 GMT
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 772ae9eddf87 - main - vm ASLR: Handle VM_NRESERV_LEVEL == 0
Message-ID:  <202407131949.46DJnZiE094132@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by alc:

URL: https://cgit.FreeBSD.org/src/commit/?id=772ae9eddf87d835279ea6aaaf08b8ca421101ff

commit 772ae9eddf87d835279ea6aaaf08b8ca421101ff
Author:     Alan Cox <alc@FreeBSD.org>
AuthorDate: 2024-07-13 19:40:43 +0000
Commit:     Alan Cox <alc@FreeBSD.org>
CommitDate: 2024-07-13 19:40:43 +0000

    vm ASLR: Handle VM_NRESERV_LEVEL == 0
    
    Some flavors of powerpc don't enable superpage reservations.
    
    Fixes: 3e00c11a4f43 ("arm64: Support the L3 ATTR_CONTIGUOUS page ...")
---
 sys/vm/vm_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index b9c27e14d1d0..77297a0e3957 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -1993,7 +1993,7 @@ out:
 	return (result);
 }
 
-#if VM_NRESERVLEVEL == 1
+#if VM_NRESERVLEVEL <= 1
 static const int aslr_pages_rnd_64[2] = {0x1000, 0x10};
 static const int aslr_pages_rnd_32[2] = {0x100, 0x4};
 #elif VM_NRESERVLEVEL == 2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407131949.46DJnZiE094132>