mm-damon-tests-sysfs-kunit-fix-use-after-free-on-error-path.patch removed from -mm tree
The quilt patch titled
Subject: mm/damon/tests/sysfs-kunit: fix use after free on error path
has been removed from the -mm tree. Its filename was
mm-damon-tests-sysfs-kunit-fix-use-after-free-on-error-path.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: Dan Carpenter <[email protected]>
Subject: mm/damon/tests/sysfs-kunit: fix use after free on error path
Date: Fri, 21 Nov 2025 16:36:38 +0300
Re-order these frees to avoid dereferencing "sysfs_target" after it has been freed.
Fixes ee131696794c ("mm/damon/tests/sysfs-kunit: handle alloc failures on damon_sysfs_test_add_targets()")
Signed-off-by Dan Carpenter <[email protected]>
Reviewed-by SeongJae Park <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/damon/tests/sysfs-kunit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/damon/tests/sysfs-kunit.h renamed from mm/damon/tests/sysfs-kunit.h~mm-damon-tests-sysfs-kunit-fix-use-after-free-on-error-path +1 -1
@@ -76,8 +76,8 @@ static void damon_sysfs_test_add_targetsif (!ctx) {kfree (sysfs_targets->targets_arr);kfree (sysfs_targets); -kfree (sysfs_target);kfree (sysfs_target->regions); +kfree (sysfs_target);kunit_skip (test,"ctx alloc fail" ); }
_
Patches currently in -mm which might be from [email protected] are