summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/grsec-sources/files')
-rw-r--r--sys-kernel/grsec-sources/files/2.4.28-grsec-2.1.0-pax-mmap-pgtables.patch44
-rw-r--r--sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.0.2-r32
-rw-r--r--sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r13
-rw-r--r--sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r23
-rw-r--r--sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r3 (renamed from sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0)0
5 files changed, 44 insertions, 8 deletions
diff --git a/sys-kernel/grsec-sources/files/2.4.28-grsec-2.1.0-pax-mmap-pgtables.patch b/sys-kernel/grsec-sources/files/2.4.28-grsec-2.1.0-pax-mmap-pgtables.patch
new file mode 100644
index 000000000000..baf4907aba34
--- /dev/null
+++ b/sys-kernel/grsec-sources/files/2.4.28-grsec-2.1.0-pax-mmap-pgtables.patch
@@ -0,0 +1,44 @@
+--- mm/mmap.c.orig 2005-03-05 13:29:06.000000000 -0500
++++ mm/mmap.c 2005-03-05 13:33:51.000000000 -0500
+@@ -1014,7 +1014,7 @@
+ * we just free'd - but there's no telling how much before.
+ */
+ static void free_pgtables(struct mm_struct * mm, struct vm_area_struct *prev,
+- unsigned long start, unsigned long end)
++ struct vm_area_struct *mpnt, unsigned long start, unsigned long end)
+ {
+ unsigned long first = start & PGDIR_MASK;
+ unsigned long last = end + PGDIR_SIZE - 1;
+@@ -1046,6 +1046,14 @@
+ break;
+ }
+ no_mmaps:
++ while (mpnt && first < last) {
++ if ((mpnt->vm_end > first) &&(last > mpnt->vm_start)) {
++ first = mpnt->vm_end + PGDIR_SIZE - 1;
++ last = mpnt->vm_start;
++ }
++ mpnt = mpnt->vm_next;
++ }
++
+ if (last < first)
+ return;
+ /*
+@@ -1106,7 +1114,7 @@
+ extra = unmap_vma(mm, addr, len, mpnt, extra);
+ }
+
+- free_pgtables(mm, prev, addr, addr+len);
++ free_pgtables(mm, prev, NULL, addr, addr+len);
+
+ return extra;
+ }
+@@ -1130,7 +1138,7 @@
+ find_vma_prev(mm, mpnt->vm_start, &prev);
+ extra_m = unmap_vma(mm, addr_m, len, mpnt, extra_m);
+
+- free_pgtables(mm, prev, start, end);
++ free_pgtables(mm, prev, free_m, start, end);
+ }
+
+ return extra_m;
diff --git a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.0.2-r3 b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.0.2-r3
deleted file mode 100644
index 04b30398565d..000000000000
--- a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.0.2-r3
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 2f2e5e29772fdacd04129ba16a24afcf grsecurity-2.0.2-2.4.28.patch.gz 141933
-MD5 ac7735000d185bc7778c08288760a8a3 linux-2.4.28.tar.bz2 31064046
diff --git a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r1 b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r1
deleted file mode 100644
index c85fde9d5a55..000000000000
--- a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r1
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 afbd071ae702af4668b2aea32868a698 grsecurity-2.1.0-2.4.28-200501051112.patch 691305
-MD5 ac7735000d185bc7778c08288760a8a3 linux-2.4.28.tar.bz2 31064046
-MD5 3fa09a0d8ea8def546b840bde027d61b linux-2.4.28-CAN-2004-0814.patch 145009
diff --git a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r2 b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r2
deleted file mode 100644
index c85fde9d5a55..000000000000
--- a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r2
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 afbd071ae702af4668b2aea32868a698 grsecurity-2.1.0-2.4.28-200501051112.patch 691305
-MD5 ac7735000d185bc7778c08288760a8a3 linux-2.4.28.tar.bz2 31064046
-MD5 3fa09a0d8ea8def546b840bde027d61b linux-2.4.28-CAN-2004-0814.patch 145009
diff --git a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0 b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r3
index c85fde9d5a55..c85fde9d5a55 100644
--- a/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0
+++ b/sys-kernel/grsec-sources/files/digest-grsec-sources-2.4.28.2.1.0-r3