SOURCES: linux-2.4-grsecurity-norandombrk.patch - updated for 2.4....
qboosh
qboosh at pld-linux.org
Mon Feb 19 13:54:44 CET 2007
Author: qboosh Date: Mon Feb 19 12:54:44 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- updated for 2.4.34.1 + grsec 2.1.10
---- Files affected:
SOURCES:
linux-2.4-grsecurity-norandombrk.patch (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SOURCES/linux-2.4-grsecurity-norandombrk.patch
diff -u SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.3 SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.4
--- SOURCES/linux-2.4-grsecurity-norandombrk.patch:1.3 Fri Dec 31 10:00:49 2004
+++ SOURCES/linux-2.4-grsecurity-norandombrk.patch Mon Feb 19 13:54:39 2007
@@ -1,9 +1,9 @@
---- linux-2.4.28/fs/binfmt_elf.c.orig 2004-12-29 17:32:18.000000000 +0100
-+++ linux-2.4.28/fs/binfmt_elf.c 2004-12-29 17:35:54.000000000 +0100
-@@ -1074,6 +1074,26 @@
+--- 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 @@
end_data += load_bias;
- #ifdef CONFIG_GRKERNSEC_PAX_RANDMMAP
+ #ifdef CONFIG_PAX_RANDMMAP
+#if 0
+/*
+ * randomly changing initial brk randomly breaks existing programs,
@@ -24,12 +24,13 @@
+ * If initial brk is not equal _end, the last page is not reserved,
+ * which leads to semi-random crashes.
+ */
++
- #ifdef CONFIG_GRKERNSEC_PAX_SOFTMODE
+ #ifdef CONFIG_PAX_SOFTMODE
if (pax_aslr)
-@@ -1081,6 +1101,7 @@
+@@ -1036,6 +1057,7 @@
- if (current->flags & PF_PAX_RANDMMAP)
+ 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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/linux-2.4-grsecurity-norandombrk.patch?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list