arm64: Add support for handling memory corruption
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 0 repliesNew
- v23 patches 11 repliesSuperseded
- v13 patches 5 repliesSuperseded
Changes in v3 from the cover letter
* Added a new patch to update the perf accounting for fault handling (patch 3)
* Added test and review tags
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | arm64: hugetlb: Fix huge_pte_offset to return poisoned page table entriesarch/ arch/ | +11 | 0 replies | |
| 2/4 | arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handlingarch/ | +19 | 0 replies | |
| 3/4 | arm64: mm: Update perf accounting to handle poison faultsarch/ | +36 | 0 replies | |
| 4/4 | arm64: kconfig: allow support for memory failure handlingarch/ | +1 | 0 replies |
Reviews trailers per patch
3 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Steve Capper | Catalin Marinas | Manoj Iyer |
|---|---|---|---|
| 1/4 | A-b | R-b | T-b |
| 2/4 | A-b | T-b | |
| 3/4 | |||
| 4/4 | A-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 0/4] arm64: Add support for handling memory corruption
Hi,
This series enables memory failure handling for arm64. Previous posting can be found at [0] and [1].
Changelog
v2 -> v3:
* Added a new patch to update the perf accounting for fault handling (patch 3)
* Added test and review tags
v1 -> v2:
* Reworked Patch 1 based on Catalin's feedbak to symmetrically deal with PUD and PMD hugepages in huge_pte_offset()
* Added Steve's acks
With support for contiguous hugepages being turned off[2], some of the problems arising from swap entries go away[3]. This simplifies the changes needed to enable memory corruption handling for arm64 (done in this seris).
In this series, we updates huge_pte_offset() to correctly deal with swap entries (Patch 1). This function will need to be updated when contiguous hugepages are re-enabled.
Patch 2 adds support to send SIGBUS to processes that have their memory corrupted.
Patch 3 updates the perf accounting for memory faults to exclude hwpoison faults.
With the prerequisites in place, enable memory corruption handling for arm64 (patch 4).
Thanks,
Punit
[0] https://www.mail-archive.com/linux-kernel at vger.kernel.org/msg1376052.html
[1] https://www.spinics.net/lists/arm-kernel/msg581657.html
[1] https://lkml.org/lkml/2017/4/7/486
[2] https://lkml.org/lkml/2017/4/5/402
Jonathan (Zhixiong) Zhang (2):
arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handling
arm64: kconfig: allow support for memory failure handling
Punit Agrawal (2):
arm64: hugetlb: Fix huge_pte_offset to return poisoned page table
entries
arm64: mm: Update perf accounting to handle poison faults
arch/arm64/Kconfig | 1 + arch/arm64/include/asm/pgtable.h | 2 +- arch/arm64/mm/fault.c | 90 ++++++++++++++++++++++++---------------- arch/arm64/mm/hugetlbpage.c | 29 +++++-------- 4 files changed, 67 insertions(+), 55 deletions(-)
Signature · 1 line
2.11.0