linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/1] mm/memory-failure: don't allow to unpoison hw corrupted page
@ 2022-06-15  2:00 zhenwei pi
  2022-06-15  2:00 ` [PATCH v5 1/1] mm/memory-failure: disable unpoison once hw error happens zhenwei pi
  0 siblings, 1 reply; 9+ messages in thread
From: zhenwei pi @ 2022-06-15  2:00 UTC (permalink / raw)
  To: pizhenwei, naoya.horiguchi, akpm
  Cc: linux-mm, linux-kernel, david, linmiaohe, gregkh

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-15  8:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15  2:00 [PATCH v5 0/1] mm/memory-failure: don't allow to unpoison hw corrupted page zhenwei pi
2022-06-15  2:00 ` [PATCH v5 1/1] mm/memory-failure: disable unpoison once hw error happens zhenwei pi
2022-06-15  4:23   ` Oscar Salvador
2022-06-15  5:18     ` zhenwei pi
2022-06-15  5:52       ` Oscar Salvador
2022-06-15  7:39         ` HORIGUCHI NAOYA(堀口 直也)
2022-06-15  8:15   ` HORIGUCHI NAOYA(堀口 直也)
2022-06-15  8:21     ` David Hildenbrand
2022-06-15  8:43       ` HORIGUCHI NAOYA(堀口 直也)

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).