SOURCES (AC-branch): linux-2.4-grsecurity-norandombrk.patch - upda...
zbyniu
zbyniu at pld-linux.org
Thu Dec 6 15:14:55 CET 2007
Author: zbyniu Date: Thu Dec 6 14:14:55 2007 GMT
Module: SOURCES Tag: AC-branch
---- Log message:
- updated for grsecurity-2.1.11-2.4.35.4-200711301800.patch
---- Files affected:
SOURCES:
linux-2.4-grsecurity-norandombrk.patch (1.4 -> 1.4.2.1)
---- Diffs:
================================================================
Index: SOURCES/linux-2.4-grsecurity-norandombrk.patch
diff -u SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.4 SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.4.2.1
--- SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.4 Mon Feb 19 13:54:39 2007
+++ SOURCES/linux-2.4-grsecurity-norandombrk.patch Thu Dec 6 15:14:50 2007
@@ -1,6 +1,6 @@
---- linux-2.4.34/fs/binfmt_elf.c.orig 2007-02-19 13:44:56.338134000 +0100
-+++ linux-2.4.34/fs/binfmt_elf.c 2007-02-19 13:47:27.478134000 +0100
-@@ -1029,6 +1029,27 @@
+--- linux-2.4.35/fs/binfmt_elf.c~ 2007-12-06 12:44:21.666764000 +0000
++++ linux-2.4.35/fs/binfmt_elf.c 2007-12-06 12:58:40.056410000 +0000
+@@ -1035,9 +1035,31 @@ static int load_elf_binary(struct linux_
end_data += load_bias;
#ifdef CONFIG_PAX_RANDMMAP
@@ -25,14 +25,10 @@
+ * which leads to semi-random crashes.
+ */
+
-
- #ifdef CONFIG_PAX_SOFTMODE
- if (pax_aslr)
-@@ -1036,6 +1057,7 @@
-
if (current->mm->pax_flags & MF_PAX_RANDMMAP)
- elf_brk += PAGE_SIZE + pax_delta_mask(get_random_long(), 4, PAGE_SHIFT);
-+#endif
- #undef pax_delta_mask
+ elf_brk += PAGE_SIZE + ((net_random() & ~PAGE_MASK) << 4);
#endif
++#endif
+ /* Calling set_brk effectively mmaps the pages that we need
+ * for the bss and break sections. We must do this before
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/linux-2.4-grsecurity-norandombrk.patch?r1=1.4&r2=1.4.2.1&f=u
More information about the pld-cvs-commit
mailing list