diff options
| author | Shakeel Butt <shakeel.butt@linux.dev> | 2025-12-24 16:29:04 -0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-01-14 22:16:21 -0800 |
| commit | a38be546269073bf8edc3c49eaf18cdfce905777 (patch) | |
| tree | eafc373d4320d2cd347ff43e08ec8073cfb34c20 /scripts/include/git@git.tavy.me:linux.git | |
| parent | 582f0f3864110e1c6e4af3af768e1c2453ba2306 (diff) | |
mm/damon/core: get memcg reference before access
The commit b74a120bcf507 ("mm/damon/core: implement
DAMOS_QUOTA_NODE_MEMCG_USED_BP") added accesses to memcg structure without
getting reference to it. This is unsafe. Let's get the reference before
accessing the memcg.
Link: https://lkml.kernel.org/r/20251225002904.139543-1-shakeel.butt@linux.dev
Fixes: b74a120bcf507 ("mm/damon/core: implement DAMOS_QUOTA_NODE_MEMCG_USED_BP")
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/include/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
