aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make_fit.py
diff options
context:
space:
mode:
authorSeongJae Park <[email protected]>2025-09-08 20:15:13 +0000
committerAndrew Morton <[email protected]>2025-09-13 20:05:36 +0000
commit04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d (patch)
treefb845a8d624f580e59c5904835ff1e52c0de70b4 /scripts/make_fit.py
parentmm/damon/core: introduce damon_call_control->dealloc_on_cancel (diff)
downloadkernel-04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d.tar.gz
kernel-04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d.zip
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/[email protected] Link: https://lore.kernel.org/[email protected] [1] Link: https://lore.kernel.org/[email protected] [2] Fixes: d809a7c64ba8 ("mm/damon/sysfs: implement refresh_ms file internal work") Signed-off-by: SeongJae Park <[email protected]> Reported-by: Yunjeong Mun <[email protected]> Closes: https://lore.kernel.org/[email protected] Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions