diff options
| author | SeongJae Park <[email protected]> | 2025-06-19 18:36:07 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-06-25 22:55:03 +0000 |
| commit | 4f489fe6afb395dbc79840efa3c05440b760d883 (patch) | |
| tree | 288afa1b6ee5174c05a08f35436d915913348206 /tools/perf/scripts/python/gecko.py | |
| parent | mm/alloc_tag: fix the kmemleak false positive issue in the allocation of the ... (diff) | |
| download | kernel-4f489fe6afb395dbc79840efa3c05440b760d883.tar.gz kernel-4f489fe6afb395dbc79840efa3c05440b760d883.zip | |
mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
memcg_path_store() assigns a newly allocated memory buffer to
filter->memcg_path, without deallocating the previously allocated and
assigned memory buffer. As a result, users can leak kernel memory by
continuously writing a data to memcg_path DAMOS sysfs file. Fix the leak
by deallocating the previously set memory buffer.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 7ee161f18b5d ("mm/damon/sysfs-schemes: implement filter directory")
Signed-off-by: SeongJae Park <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: <[email protected]> [6.3.x]
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
