selftests-damon-test-removed-scheme-sysfs-dir-access-bug.patch removed from -mm tree
The quilt patch titled
Subject: selftests/damon: test removed scheme sysfs dir access bug
has been removed from the -mm tree. Its filename was
selftests-damon-test-removed-scheme-sysfs-dir-access-bug.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: selftests/damon: test removed scheme sysfs dir access bug
Date: Thu, 1 Dec 2022 17:08:34 +0000
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 8468b486612c ("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.
---
tools/testing/selftests/damon/Makefile | 2 tools/testing/selftests/damon/sysfs_update_removed_scheme_dir.sh | 58 ++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-)
tools/testing/selftests/damon/Makefile renamed from tools/testing/selftests/damon/Makefile~selftests-damon-test-removed-scheme-sysfs-dir-access-bug +1 -1
@@ -8,7 +8,7 @@ TEST_PROGS = debugfs_attrs.sh debugfs_sc 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 +TEST_PROGS += sysfs.sh sysfs_update_removed_scheme_dir.sh TEST_PROGS += reclaim.sh lru_sort.sh include ../lib.mk
tools/testing/selftests/damon/sysfs_update_removed_scheme_dir.sh new file +58 -0
58 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are