Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205462

Re: [PATCH] mm/hwpoison: fix panic due to split huge zero page

From Wanpeng Li <wanpeng.li@hotmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] mm/hwpoison: fix panic due to split huge zero page
Date 2015-08-12 00:30 +0200
Message-ID <pWqds-1LO-5@gated-at.bofh.it> (permalink)
References <pWfL3-3t4-1@gated-at.bofh.it> <pWp7H-eZ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



On 8/12/15 5:14 AM, Andrew Morton wrote:
> On Tue, 11 Aug 2015 18:47:57 +0800 Wanpeng Li <wanpeng.li@hotmail.com> wrote:
>
>> ...
>>
>> Huge zero page is allocated if page fault w/o FAULT_FLAG_WRITE flag.
>> The get_user_pages_fast() which called in madvise_hwpoison() will get
>> huge zero page if the page is not allocated before. Huge zero page is
>> a tranparent huge page, however, it is not an anonymous page. memory_failure
>> will split the huge zero page and trigger BUG_ON(is_huge_zero_page(page));
>> After commit (98ed2b0: mm/memory-failure: give up error handling for
>> non-tail-refcounted thp), memory_failure will not catch non anon thp
>> from madvise_hwpoison path and this bug occur.
> So I'm assuming this patch is needed for 4.2 but not in earlier
> kernels.

I think so. :-)  Btw, how about my other hwpoison patches?

Regards,
Wanpeng Li

>

--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm/hwpoison: fix panic due to split huge zero page Wanpeng Li <wanpeng.li@hotmail.com> - 2015-08-11 13:20 +0200
  Re: [PATCH] mm/hwpoison: fix panic due to split huge zero page Andrew Morton <akpm@linux-foundation.org> - 2015-08-11 23:20 +0200
    Re: [PATCH] mm/hwpoison: fix panic due to split huge zero page Wanpeng Li <wanpeng.li@hotmail.com> - 2015-08-12 00:30 +0200
  Re: [PATCH] mm/hwpoison: fix panic due to split huge zero page Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2015-08-12 11:20 +0200

csiph-web