Skip to content

mseal: Fix is_madv_discard()

Pedro Falcato linux-kselftest lkml stable 1 version Applied

Status from this message: [merged mm-stable] selftests-mm-add-mseal-test-for-no-discard-madvise.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mseal: Fix is_madv_discard()mm/mseal.c+11 -33 repliesApplied
2/2selftests/mm: Add mseal test for no-discard madvisetools/testing/selftests/mm/mseal_test.c+34 -01 replyApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mseal: Fix is_madv_discard()

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/[email protected]/

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(-)
Signature · 1 line
2.46.0