Re: [PATCH] rmap: validate pointer in anon_vma_clone

From: Jianyu Zhan
Date: Wed May 07 2014 - 00:29:00 EST


On Wed, May 7, 2014 at 10:32 AM, Leon Ma <xindong.ma@xxxxxxxxx> wrote:
> If memory allocation failed in first loop, root will be NULL and
> will lead to kernel panic.

Hello, Leon,

I am afraid not. unlock_anon_vma_root() has a sanity check NULLness of root,
so it is impossible to panic for a dangling root pointer.



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