lkml.org 
[lkml]   [2002]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Oops on 2.5.40, flush_tlb_mm
On Wed, 2 Oct 2002, Andrew Morton wrote:

> You need Hugh's patch. Was sent to Linus yesterday...

Oh, thanks, sucks being in the dark like this :/

>
> Patch from Hugh Dickins
>
> Our earlier fix for mprotect_fixup was broken - passing an
> already-freed VMA to change_protection().
>
>
>
> mm/mprotect.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletion(-)
>
> --- 2.5.40/mm/mprotect.c~hugh-mprotect-fix Tue Oct 1 23:43:14 2002
> +++ 2.5.40-akpm/mm/mprotect.c Tue Oct 1 23:43:14 2002
> @@ -186,8 +186,10 @@ mprotect_fixup(struct vm_area_struct *vm
> /*
> * Try to merge with the previous vma.
> */
> - if (mprotect_attempt_merge(vma, *pprev, end, newflags))
> + if (mprotect_attempt_merge(vma, *pprev, end, newflags)) {
> + vma = *pprev;
> goto success;
> + }
> } else {
> error = split_vma(mm, vma, start, 1);
> if (error)
>
> .
>

--
function.linuxpower.ca

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.081 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site