Skip to content

mm/damon/sysfs: fix commit test damon_ctx [de]allocation

SeongJae Park damon linux-mm lkml stable 1 version Applied

Status from this message: [merged mm-hotfixes-stable] mm-damon-sysfs-dealloc-commit-test-ctx-always.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm/damon/sysfs: catch commit test ctx alloc failuremm/damon/sysfs.c+2 -00 repliesApplied
2/2mm/damon/sysfs: dealloc commit test ctx alwaysmm/damon/sysfs.c+2 -30 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mm/damon/sysfs: fix commit test damon_ctx [de]allocation

DAMON sysfs interface dynamically allocates and uses a damon_ctx object for testing if given inputs for online DAMON parameters update is valid. The object is being used without an allocation failure check, and leaked when the test succeeds. Fix the two bugs.

SeongJae Park (2):
mm/damon/sysfs: catch commit test ctx alloc failure mm/damon/sysfs: dealloc commit test ctx always

 mm/damon/sysfs.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

base-commit: 3c39180d389ca58cf309b7aa58b6a3617151c226

Signature · 1 line
2.39.5