Files
Centos-kernel-stream-9/mm
CKI KWF Bot 0e1f1139b6 Merge: mm/damon/sysfs: cleanup attrs subdirs on context dir setup failure
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/5669

JIRA: https://issues.redhat.com/browse/RHEL-150478
CVE: CVE-2026-23144

This patch is a backport of the following upstream commit:
commit 9814cc832b88bd040fc2a1817c2b5469d0f7e862
Author: SeongJae Park <sj@kernel.org>
Date:   Wed Dec 24 18:30:35 2025 -0800

    mm/damon/sysfs: cleanup attrs subdirs on context dir setup failure

    When a context DAMON sysfs directory setup is failed after setup of attrs/
    directory, subdirectories of attrs/ directory are not cleaned up.  As a
    result, DAMON sysfs interface is nearly broken until the system reboots,
    and the memory for the unremoved directory is leaked.

    Cleanup the directories under such failures.

    Link: https://lkml.kernel.org/r/20251225023043.18579-3-sj@kernel.org
    Fixes: c951cd3b8901 ("mm/damon: implement a minimal stub for sysfs-based DAMON interface")
    Signed-off-by: SeongJae Park <sj@kernel.org>
    Cc: chongjiapeng <jiapeng.chong@linux.alibaba.com>
    Cc: <stable@vger.kernel.org> # 5.18.x
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Audra Mitchell <audra@redhat.com>

Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: Herton R. Krzesinski <herton@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2026-03-27 05:09:48 +00:00
..
2025-04-29 18:49:26 -03:00
2025-04-28 19:13:10 +01:00
2025-04-28 19:12:47 +01:00
2025-11-04 10:13:02 -05:00
2026-02-03 18:08:37 -05:00
2025-11-04 10:13:02 -05:00