0b7623bdf8
A DAMON sysfs user could start DAMON with a scheme, remove the sysfs
directory for the scheme, and then ask stats or schemes tried regions
update. The related logic were not aware of the already removed directory
situation, so it was able to results in invalid memory accesses. The fix
has made with commit 8468b48661
("mm/damon/sysfs-schemes: skip stats
update if the scheme directory is removed"), though. Add a selftest to
prevent such kinds of bugs from being introduced again.
Link: https://lkml.kernel.org/r/20221201170834.62823-1-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
15 lines
509 B
Makefile
15 lines
509 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Makefile for damon selftests
|
|
|
|
TEST_GEN_FILES += huge_count_read_write
|
|
|
|
TEST_FILES = _chk_dependency.sh _debugfs_common.sh
|
|
TEST_PROGS = debugfs_attrs.sh debugfs_schemes.sh debugfs_target_ids.sh
|
|
TEST_PROGS += debugfs_empty_targets.sh debugfs_huge_count_read_write.sh
|
|
TEST_PROGS += debugfs_duplicate_context_creation.sh
|
|
TEST_PROGS += debugfs_rm_non_contexts.sh
|
|
TEST_PROGS += sysfs.sh sysfs_update_removed_scheme_dir.sh
|
|
TEST_PROGS += reclaim.sh lru_sort.sh
|
|
|
|
include ../lib.mk
|