1.0.23.39: Red Hat Enterprise 3 mmap randomization workaround
authorNikodemus Siivola <nikodemus@random-state.net>
Fri, 12 Dec 2008 15:51:28 +0000 (15:51 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Fri, 12 Dec 2008 15:51:28 +0000 (15:51 +0000)
 * Patch by Thomas Burdick: RHEL 3 suffers from the randomized mmap
   nonesense, and reports kernel version 2.4.21. With the attached
   patch, it SBCL runs correctly on these machines.

NEWS
src/runtime/linux-os.c
version.lisp-expr

diff --git a/NEWS b/NEWS
index 2150957..ac86ff2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@
   * new feature: the system now signals a continuable error if standard
     readtable modification is attempted.
   * optimization: faster generic arithmetic dispatch on x86 and x86-64.
+  * bug fix: Red Hat Enterprise 3 mmap randomization workaround. (thanks
+    to Thomas Burdick)
   * bug fix: DEFCLASS and ENSURE-CLASS-USING-CLASS are now expected to
     be thread safe.
   * bug fix: lexical type declarations are now correctly reported by
index f50b7b1..388e7af 100644 (file)
@@ -216,7 +216,9 @@ os_init(char *argv[], char *envp[])
          /* Some old kernels will apparently lose unsupported personality flags
           * on exec() */
          && ((minor_version == 6 && patch_version >= 11)
-             || (minor_version > 6)))
+             || (minor_version > 6)
+             /* This is what RHEL 3 reports */
+             || (minor_version == 4 && patch_version > 20)))
         || major_version >= 3)
     {
         int pers = personality(0xffffffffUL);
index 4cff592..298df66 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.23.38"
+"1.0.23.39"