From: Andrew Morton <akpm@linux-foundation.org>
To: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Subject: Re: [PATCH] mm/memory-failure: fix race with compound page split/merge
Date: Thu, 21 Apr 2016 16:44:54 -0700 [thread overview]
Message-ID: <20160421164454.3da1afe01cc4f5adb6b9772c@linux-foundation.org> (raw)
In-Reply-To: <20160418231551.GA18493@hori1.linux.bs1.fc.nec.co.jp>
On Mon, 18 Apr 2016 23:15:52 +0000 Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> wrote:
> # CCed Andrew,
Thanks.
> On Mon, Apr 18, 2016 at 02:43:45PM +0300, Konstantin Khlebnikov wrote:
> > Get_hwpoison_page() must recheck relation between head and tail pages.
> >
> > Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
>
> Looks good to me. Without this recheck, the race causes kernel to pin
> an irrelevant page, and finally makes kernel crash for refcount mismcach...
Thanks. I'll add the above (important!) info to the changelog and
cc:stable.
> > - return get_page_unless_zero(head);
> > + if (get_page_unless_zero(head)) {
> > + if (head == compound_head(page))
> > + return 1;
> > +
> > + pr_info("MCE: %#lx cannot catch tail\n", page_to_pfn(page));
>
> Recently Chen Yucong replaced the label "MCE:" with "Memory failure:",
> but the resolution is trivial, I think.
Yup, that patch is in my (large) backlog. Away at conferences for
seven days, receiving 100 actionable emails per day. Give me a few
days ;)
--
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:[~2016-04-21 23:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-18 11:43 [PATCH] mm/memory-failure: fix race with compound page split/merge Konstantin Khlebnikov
2016-04-18 23:15 ` Naoya Horiguchi
2016-04-19 5:54 ` Konstantin Khlebnikov
2016-04-21 23:44 ` Andrew Morton [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=20160421164454.3da1afe01cc4f5adb6b9772c@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=khlebnikov@yandex-team.ru \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=n-horiguchi@ah.jp.nec.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;
as well as URLs for NNTP newsgroup(s).