From: zhenwei pi <pizhenwei@bytedance.com>
To: pizhenwei@bytedance.com, naoya.horiguchi@nec.com,
akpm@linux-foundation.org
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
david@redhat.com, linmiaohe@huawei.com,
gregkh@linuxfoundation.org
Subject: [PATCH v6 0/1] mm/memory-failure: don't allow to unpoison hw corrupted page
Date: Wed, 15 Jun 2022 17:32:08 +0800 [thread overview]
Message-ID: <20220615093209.259374-1-pizhenwei@bytedance.com> (raw)
v5 -> v6:
- Suggested by Naoya, declare 'hw_memory_failure' with initial value
explicitly, also add __read_mostly. Thanks to Naoya&David!
Leave 'Cc stable' or not to Andrew to decide.
v4 -> v5:
- Add mf_flags 'MF_SW_SIMULATED' to distinguish SW/HW memory failure,
and use a global variable to record HW memory failure, once HW
memory failure happens, disable unpoison.
v3 -> v4:
- Add debug entry "hwpoisoned-pages" to show the number of hwpoisoned
pages.
- Disable unpoison when a read HW memory failure occurs.
v2 -> v3:
- David pointed out that virt_to_kpte() is broken(no pmd_large() test
on a PMD), so drop this API in this patch, walk kmap instead.
v1 -> v2:
- this change gets protected by mf_mutex
- use -EOPNOTSUPP instead of -EPERM
v1:
- check KPTE to avoid to unpoison hardware corrupted page
zhenwei pi (1):
mm/memory-failure: disable unpoison once hw error happens
Documentation/vm/hwpoison.rst | 3 ++-
drivers/base/memory.c | 2 +-
include/linux/mm.h | 1 +
mm/hwpoison-inject.c | 2 +-
mm/madvise.c | 2 +-
mm/memory-failure.c | 12 ++++++++++++
6 files changed, 18 insertions(+), 4 deletions(-)
--
2.20.1
next reply other threads:[~2022-06-15 9:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-15 9:32 zhenwei pi [this message]
2022-06-15 9:32 ` [PATCH v6 1/1] mm/memory-failure: disable unpoison once hw error happens zhenwei pi
2022-06-15 10:34 ` HORIGUCHI NAOYA(堀口 直也)
2022-06-15 20:49 ` Andrew Morton
2022-06-15 22:58 ` HORIGUCHI NAOYA(堀口 直也)
2022-06-16 4:01 ` Oscar Salvador
2022-06-16 8:30 ` Miaohe Lin
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=20220615093209.259374-1-pizhenwei@bytedance.com \
--to=pizhenwei@bytedance.com \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=linmiaohe@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=naoya.horiguchi@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