From: Jianyu Zhan <nasa4836@gmail.com>
To: Leon Ma <xindong.ma@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
iamjoonsoo.kim@lge.com,
Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>,
kirill.shutemov@linux.intel.com, gorcunov@gmail.com,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] rmap: validate pointer in anon_vma_clone
Date: Wed, 7 May 2014 12:28:14 +0800 [thread overview]
Message-ID: <CAHz2CGUo2SevOPXw7PqNyUroc4xD2Z4fOHEFUeJ+FQU-6rib0g@mail.gmail.com> (raw)
In-Reply-To: <1399429930-5073-1-git-send-email-xindong.ma@intel.com>
On Wed, May 7, 2014 at 10:32 AM, Leon Ma <xindong.ma@intel.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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2014-05-07 4:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 2:32 Leon Ma
2014-05-07 2:58 ` Ma, Xindong
2014-05-07 4:28 ` Jianyu Zhan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHz2CGUo2SevOPXw7PqNyUroc4xD2Z4fOHEFUeJ+FQU-6rib0g@mail.gmail.com \
--to=nasa4836@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=gorcunov@gmail.com \
--cc=iamjoonsoo.kim@lge.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.com \
--cc=xindong.ma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox