mm/ksm: test case for prctl fork/exec workflow
authorStefan Roesch <shr@devkernel.io>
Fri, 22 Sep 2023 21:11:41 +0000 (14:11 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 16 Oct 2023 22:44:38 +0000 (15:44 -0700)
commit0374af1da077573b2bea8ff70258d3537c5a1e79
tree78f70d54971be3a93b3040bc128a27019739b54a
parent3c6f33b7273a7e2f2b2497b62c8400bd957b2fbe
mm/ksm: test case for prctl fork/exec workflow

This adds a new test case to the ksm functional tests to make sure that
the KSM setting is inherited by the child process when doing a fork/exec.

Link: https://lkml.kernel.org/r/20230922211141.320789-3-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Carl Klemm <carl@uvos.xyz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/ksm_functional_tests.c