Skip to content

Patchset for fixing poison failure of THP.

Jin Dongming lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Fix splitting poisoned THP.mm/memory-failure.c+28 -21 reply
2/3Fix the wrong reported address of poisoned THP.mm/huge_memory.c mm/memory-failure.c+28 -60 replies
3/3Fix unsuitable behavior for poisoned tail pages of THP.mm/memory-failure.c+15 -120 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchHidetoshi Seto
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v2 0/3] Patchset for fixing poison failure of THP.

I found the following problems while testing the poison of THP:
1. If the poisoned THP is failed to be split, the process could not be killed.
2. The reported address with sigbus is the address of the head page. This will make that the unexpected process on Guest OS(running on KVM) to be killed.
3. The test of poisoned tail page always fails. This is because the lru check of THP is done always, though the tail page is not set with PG_lru flag.

To resolve the above problems, I made the following patches.

Jin Dongming (3):
[PATCH 1/3] Fix splitting poisoned THP.
[PATCH 2/3] Fix the wrong reported address of poisoned THP. [PATCH 3/3] Fix unsuitable behavior for poisoned tail pages of THP.

 mm/huge_memory.c    |    7 ++++-
 mm/memory-failure.c |   84 +++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 71 insertions(+), 20 deletions(-)