Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/damon/sysfs-schemes: fix wrong directories put orders in error paths
@ 2026-06-18  0:56 SeongJae Park
  2026-06-18  0:56 ` [PATCH 1/2] mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs() SeongJae Park
  2026-06-18  0:56 ` [PATCH 2/2] mm/damon/sysfs-schemes: put stats for scheme_add_dirs() internal error SeongJae Park
  0 siblings, 2 replies; 3+ messages in thread
From: SeongJae Park @ 2026-06-18  0:56 UTC (permalink / raw)
  To: Andrew Morton; +Cc: SeongJae Park, # 5 . 18 . x, damon, linux-kernel, linux-mm

Error paths of damon_sysfs_access_pattern_add_dirs() and
damon_sysfs_scheme_add_dirs() functions put references to directories in
wrong orders.  As a result, uninitialized memory dereference and/or
memory leak can happen.  Fix those.

Changes from RFC v1.1
- RFC v1.1: https://lore.kernel.org/20260617135551.86013-1-sj@kernel.org
- Drop RFC tag.
- Rebase to latest mm-new.
Changes from RFC v1
- RFC v1: https://lore.kernel.org/20260617053308.83200-1-sj@kernel.org
- Add damon_sysfs_access_pattern_add_dirs() fix.

SeongJae Park (2):
  mm/damon/sysfs-schemes: fix dir put orders in
    access_pattern_add_dirs()
  mm/damon/sysfs-schemes: put stats for scheme_add_dirs() internal error

 mm/damon/sysfs-schemes.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)


base-commit: d20942f0d52b1cfa54931e00eeaaa2350ee46169
-- 
2.47.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-18  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18  0:56 [PATCH 0/2] mm/damon/sysfs-schemes: fix wrong directories put orders in error paths SeongJae Park
2026-06-18  0:56 ` [PATCH 1/2] mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs() SeongJae Park
2026-06-18  0:56 ` [PATCH 2/2] mm/damon/sysfs-schemes: put stats for scheme_add_dirs() internal error SeongJae Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox