linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mm: Fixes on pte markers
@ 2022-12-14 20:04 Peter Xu
  2022-12-14 20:04 ` [PATCH 1/2] mm/uffd: Fix pte marker when fork() without fork event Peter Xu
  2022-12-14 20:04 ` [PATCH 2/2] mm: Fix a few rare cases of using swapin error pte marker Peter Xu
  0 siblings, 2 replies; 15+ messages in thread
From: Peter Xu @ 2022-12-14 20:04 UTC (permalink / raw)
  To: linux-kernel, linux-mm
  Cc: Andrea Arcangeli, Pengfei Xu, peterx, Nadav Amit,
	David Hildenbrand, Andrew Morton, Miaohe Lin, Huang Ying

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

-- 
2.37.3



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

end of thread, other threads:[~2022-12-17  2:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-14 20:04 [PATCH 0/2] mm: Fixes on pte markers Peter Xu
2022-12-14 20:04 ` [PATCH 1/2] mm/uffd: Fix pte marker when fork() without fork event Peter Xu
2022-12-16  9:04   ` David Hildenbrand
2022-12-16 14:54     ` Peter Xu
2022-12-16 15:57       ` David Hildenbrand
2022-12-16 16:24         ` Peter Xu
2022-12-16 16:37           ` David Hildenbrand
2022-12-17  2:59   ` Miaohe Lin
2022-12-14 20:04 ` [PATCH 2/2] mm: Fix a few rare cases of using swapin error pte marker Peter Xu
2022-12-15  7:12   ` Huang, Ying
2022-12-15 14:05     ` Peter Xu
2022-12-16  0:06       ` Huang, Ying
2022-12-16 16:01   ` David Hildenbrand
2022-12-16 16:04   ` David Hildenbrand
2022-12-17  2:59   ` Miaohe Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox