X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpatches%2Fsuse-2.6.27.25%2Fpatches.xen%2Fxen3-silent-stack-overflow;fp=src%2Fpatches%2Fsuse-2.6.27.25%2Fpatches.xen%2Fxen3-silent-stack-overflow;h=0000000000000000000000000000000000000000;hb=38e2b028de682e6c22e4249acadbdddd4d8b4b8a;hp=693def31a71afe23b2fbdbae1cd8289ac03ebc51;hpb=3a87c0dd202ab6cd1546ce56fca50ef45f561e54;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/src/patches/suse-2.6.27.25/patches.xen/xen3-silent-stack-overflow b/src/patches/suse-2.6.27.25/patches.xen/xen3-silent-stack-overflow deleted file mode 100644 index 693def31a..000000000 --- a/src/patches/suse-2.6.27.25/patches.xen/xen3-silent-stack-overflow +++ /dev/null @@ -1,39 +0,0 @@ -From: Andrea Arcangeli -Subject: avoid silent stack overflow over the heap -Patch-mainline: no -References: SUSE44807 - -x - -Signed-off-by: Andrea Arcangeli - -Automatically created from "patches.suse/silent-stack-overflow" by xen-port-patches.py - -Index: head-2008-10-13/arch/x86/mm/fault-xen.c -=================================================================== ---- head-2008-10-13.orig/arch/x86/mm/fault-xen.c 2008-10-13 15:28:47.000000000 +0200 -+++ head-2008-10-13/arch/x86/mm/fault-xen.c 2008-10-13 15:32:57.000000000 +0200 -@@ -598,7 +598,7 @@ void __kprobes do_page_fault(struct pt_r - { - struct task_struct *tsk; - struct mm_struct *mm; -- struct vm_area_struct *vma; -+ struct vm_area_struct *vma, *prev_vma; - unsigned long address; - int write, si_code; - int fault; -@@ -748,7 +748,13 @@ again: - if (address + 65536 + 32 * sizeof(unsigned long) < regs->sp) - goto bad_area; - } -- if (expand_stack(vma, address)) -+ /* -+ * find_vma_prev is just a bit slower, because it cannot -+ * use the mmap_cache, so we run it only in the growsdown -+ * slow path and we leave find_vma in the fast path. -+ */ -+ find_vma_prev(current->mm, address, &prev_vma); -+ if (expand_stack(vma, address, prev_vma)) - goto bad_area; - /* - * Ok, we have a good vm_area for this memory access, so