Files
linux/mm
SeongJae Park 04a06b139e mm/damon/sysfs: use dynamically allocated repeat mode damon_call_control
DAMON sysfs interface is using a single global repeat mode
damon_call_control variable for refresh_ms handling, for all DAMON
contexts.  As a result, when there are more than one context, the single
global damon_call_control is unexpectedly over-written (corrupted). 
Particularly the ->link field is overwritten by the multiple contexts and
this can cause a user hangup, and/or a kernel crash.  Fix it by using
dynamically allocated damon_call_control object per DAMON context.

Link: https://lkml.kernel.org/r/20250908201513.60802-3-sj@kernel.org
Link: https://lore.kernel.org/20250904011738.930-1-yunjeong.mun@sk.com [1]
Link: https://lore.kernel.org/20250905035411.39501-1-sj@kernel.org [2]
Fixes: d809a7c64b ("mm/damon/sysfs: implement refresh_ms file internal work")
Signed-off-by: SeongJae Park <sj@kernel.org>
Reported-by: Yunjeong Mun <yunjeong.mun@sk.com>
Closes: https://lore.kernel.org/20250904011738.930-1-yunjeong.mun@sk.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-09-13 13:05:36 -07:00
..
2025-07-23 11:55:22 +02:00
2025-06-05 22:02:25 -07:00
2025-07-24 19:12:36 -07:00
2025-07-24 19:12:35 -07:00
2024-11-03 01:28:06 -05:00
2025-08-02 12:06:10 -07:00
2025-08-02 12:06:09 -07:00
2025-08-02 12:06:10 -07:00
2025-08-02 12:06:09 -07:00
2024-07-10 12:14:54 -07:00
2025-06-18 13:06:26 +02:00
2025-08-27 22:45:43 -07:00
2025-07-24 19:12:35 -07:00
2025-08-02 12:06:09 -07:00