summaryrefslogtreecommitdiffstats
path: root/linux-2.6-i386-nx-emulation.patch
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-08-27 13:27:38 -0400
committerDave Jones <davej@redhat.com>2011-08-27 13:27:38 -0400
commitacf0fc7b147a8873f4bd61b47d3073e03e692532 (patch)
tree9ead736d383ab96518d660f70bba3ac791d9dfda /linux-2.6-i386-nx-emulation.patch
parent96b3b74649f2fb29684482b98195d7ba4cd09acd (diff)
downloadkernel-acf0fc7b147a8873f4bd61b47d3073e03e692532.tar.gz
kernel-acf0fc7b147a8873f4bd61b47d3073e03e692532.tar.xz
kernel-acf0fc7b147a8873f4bd61b47d3073e03e692532.zip
NX emulation fixes
Fix get_gate_vma usage in i386 NX emulation Fix up dependancy on the dropped randomization patch.
Diffstat (limited to 'linux-2.6-i386-nx-emulation.patch')
-rw-r--r--linux-2.6-i386-nx-emulation.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-2.6-i386-nx-emulation.patch b/linux-2.6-i386-nx-emulation.patch
index 856b9b95a..33a343747 100644
--- a/linux-2.6-i386-nx-emulation.patch
+++ b/linux-2.6-i386-nx-emulation.patch
@@ -249,7 +249,7 @@
+ for (vma = current->mm->mmap; vma; vma = vma->vm_next)
+ if ((vma->vm_flags & VM_EXEC) && (vma->vm_end > limit))
+ limit = vma->vm_end;
-+ vma = get_gate_vma(current);
++ vma = get_gate_vma(current->mm);
+ if (vma && (vma->vm_flags & VM_EXEC) && (vma->vm_end > limit))
+ limit = vma->vm_end;
+ spin_unlock(&current->mm->page_table_lock);
@@ -606,7 +606,7 @@ index 57d1868..29c0c35 100644
+ /* in the case of NX emulation, shove the brk segment way out of the
+ way of the exec randomization area, since it can collide with
+ future allocations if not. */
-+ if ( (mm->get_unmapped_exec_area == arch_get_unmapped_exec_area) &&
++ if ( (mm->get_unmapped_exec == arch_get_unmapped_exec_area) &&
+ (mm->brk < 0x08000000) ) {
+ bump = (TASK_SIZE/6);
+ }