aboutsummaryrefslogtreecommitdiff
path: root/arch/parisc/kernel/cache.c
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2022-03-27 13:18:52 +0800
committerLinus Torvalds <[email protected]>2022-03-27 18:47:00 -0700
commitae085d7f9365de7da27ab5c0d16b12d51ea7fca9 (patch)
tree30c8132fb43e67b2cb216fe7ff2ff0cdccbf0e80 /arch/parisc/kernel/cache.c
parentf82da161ea75dc4db21b2499e4b1facd36dab275 (diff)
mm: kfence: fix missing objcg housekeeping for SLAB
The objcg is not cleared and put for kfence object when it is freed, which could lead to memory leak for struct obj_cgroup and wrong statistics of NR_SLAB_RECLAIMABLE_B or NR_SLAB_UNRECLAIMABLE_B. Since the last freed object's objcg is not cleared, mem_cgroup_from_obj() could return the wrong memcg when this kfence object, which is not charged to any objcgs, is reallocated to other users. A real word issue [1] is caused by this bug. Link: https://lore.kernel.org/all/[email protected]/ [1] Reported-by: [email protected] Fixes: d3fb45f370d9 ("mm, kfence: insert KFENCE hooks for SLAB") Signed-off-by: Muchun Song <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/parisc/kernel/cache.c')
0 files changed, 0 insertions, 0 deletions