Re: Oops on 2.5.40, flush_tlb_mm

From: Zwane Mwaikambo (zwane@linuxpower.ca)
Date: Wed Oct 02 2002 - 19:58:51 EST


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/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:36 EST