[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHz2CGUo2SevOPXw7PqNyUroc4xD2Z4fOHEFUeJ+FQU-6rib0g@mail.gmail.com>
Date: Wed, 7 May 2014 12:28:14 +0800
From: Jianyu Zhan <nasa4836@...il.com>
To: Leon Ma <xindong.ma@...el.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, iamjoonsoo.kim@....com,
Naoya Horiguchi <n-horiguchi@...jp.nec.com>,
kirill.shutemov@...ux.intel.com, gorcunov@...il.com,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] rmap: validate pointer in anon_vma_clone
On Wed, May 7, 2014 at 10:32 AM, Leon Ma <xindong.ma@...el.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists