Files
linux-stable-mirror/mm
SeongJae Park 4f489fe6af 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/20250619183608.6647-2-sj@kernel.org
Fixes: 7ee161f18b ("mm/damon/sysfs-schemes: implement filter directory")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>		[6.3.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-06-25 15:55:03 -07:00
..
2025-06-05 22:02:25 -07:00
2025-05-11 17:48:04 -07:00
2025-05-20 05:34:27 +02:00
2024-11-03 01:28:06 -05:00
2025-05-12 23:50:48 -07:00
2025-03-17 22:06:39 -07:00
2025-01-13 22:40:51 -08:00
2025-04-21 13:20:14 +02:00
2025-05-11 17:48:16 -07:00