]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: update ksm inheritance tests for prctl fork/exec
authorxu xin <xu.xin16@zte.com.cn>
Tue, 7 Oct 2025 10:29:35 +0000 (18:29 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Nov 2025 01:27:55 +0000 (17:27 -0800)
commitbda7bf06840d4eb133abefa5a2fd75544277bd86
tree73f7a64bafac714d5664d97ad9d727630dfeb006
parent590c03ca6a3fbb114396673314e2aa483839608b
selftests: update ksm inheritance tests for prctl fork/exec

To reproduce the issue mentioned by [1], this add a setting of
pages_to_scan and sleep_millisecs at the start of test_prctl_fork_exec().
The main change is just raise the scanning frequency of ksmd.

[1] https://lore.kernel.org/all/202510012256278259zrhgATlLA2C510DMD3qI@zte.com.cn/

Link: https://lkml.kernel.org/r/20251007182935207jm31wCIgLpZg5XbXQY64S@zte.com.cn
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Cc: David Hildenbrand <david@redhat.com>
Cc: Jinjiang Tu <tujinjiang@huawei.com>
Cc: Stefan Roesch <shr@devkernel.io>
Cc: Wang Yaxin <wang.yaxin@zte.com.cn>
Cc: Yang Yang <yang.yang29@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/ksm_functional_tests.c