Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH 0/2] mseal: Fix is_madv_discard()
@ 2024-08-07 17:33 Pedro Falcato
  2024-08-07 17:33 ` [PATCH 1/2] " Pedro Falcato
  2024-08-07 17:33 ` [PATCH 2/2] selftests/mm: Add mseal test for no-discard madvise Pedro Falcato
  0 siblings, 2 replies; 7+ messages in thread
From: Pedro Falcato @ 2024-08-07 17:33 UTC (permalink / raw)
  To: Andrew Morton, Shuah Khan, Liam R. Howlett, Jeff Xu, Kees Cook,
	linux-mm
  Cc: linux-kernel, linux-kselftest, Pedro Falcato

This small series fixes is_madv_discard() and adds a small sanity check
test to selftests/mm/mseal_test. Without this patch, is_madv_discard()
erroneously thinks innocent ops like MADV_RANDOM are discard operations
(which they are not, and are supposed to be allowed, per the overall
design).

Based on Linus's tree and taken from my mseal depessimization series[1].
[1]: https://lore.kernel.org/all/20240806212808.1885309-1-pedro.falcato@gmail.com/

Pedro Falcato (2):
  mseal: Fix is_madv_discard()
  selftests/mm: Add mseal test for no-discard madvise

 mm/mseal.c                              | 14 +++++++---
 tools/testing/selftests/mm/mseal_test.c | 34 +++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 3 deletions(-)

-- 
2.46.0


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

end of thread, other threads:[~2024-08-07 20:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 17:33 [PATCH 0/2] mseal: Fix is_madv_discard() Pedro Falcato
2024-08-07 17:33 ` [PATCH 1/2] " Pedro Falcato
2024-08-07 18:58   ` Andrew Morton
2024-08-07 19:25     ` Pedro Falcato
2024-08-07 19:31       ` Andrew Morton
2024-08-07 17:33 ` [PATCH 2/2] selftests/mm: Add mseal test for no-discard madvise Pedro Falcato
2024-08-07 20:37   ` [PATCH] fixup! " Pedro Falcato

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