Skip to content

mm: Fixes on pte markers

Peter Xu linux-mm lkml stable 1 version Applied

Status from this message: [merged mm-hotfixes-stable] mm-fix-a-few-rare-cases-of-using-swapin-error-pte-marker.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/uffd: Fix pte marker when fork() without fork eventmm/memory.c+2 -66 repliesApplied
2/2mm: Fix a few rare cases of using swapin error pte markermm/hugetlb.c mm/memory.c mm/mprotect.c+16 -36 repliesApplied

Reviews trailers per patch

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

PatchDavid HildenbrandMiaohe Lin
1/2A-b R-b
2/2A-b R-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 0/2] mm: Fixes on pte markers

Patch 1 resolves the syzkiller report from Pengfei.

Patch 2 further harden pte markers when used with the recent swapin error markers. The major case is we should persist a swapin error marker after fork(), so child shouldn't read a corrupted page.

No report so far with patch 2, but it can be somehow tested with things like:
https://github.com/xzpeter/clibs/blob/master/misc/pageout.c
Plus some hacks.

Please have a look, thanks.

Peter Xu (2):
mm/uffd: Fix pte marker when fork() without fork event
mm: Fix a few rare cases of using swapin error pte marker

 mm/hugetlb.c  |  3 +++
 mm/memory.c   | 14 +++++++-------
 mm/mprotect.c |  8 +++++++-
 3 files changed, 17 insertions(+), 8 deletions(-)
Signature · 1 line
2.37.3