Skip to contentSkip to conversation

mm-memcg-slab-fix-return-child-memcg-objcg-for-root-memcg.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: memcg/slab: fix return of child memcg objcg for root memcg
has been removed from the -mm tree. Its filename was
mm-memcg-slab-fix-return-child-memcg-objcg-for-root-memcg.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Muchun Song <[email protected]>
Subject: mm: memcg/slab: fix return of child memcg objcg for root memcg

Consider the following memcg hierarchy.

                    root
                   /    \
                  A      B

If we failed to get the reference on objcg of memcg A, the get_obj_cgroup_from_current can return the wrong objcg for the root memcg.

Fixes bf4f059954dc ("mm: memcg/slab: obj_cgroup API")
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc Yafang Shao <[email protected]>
Cc Chris Down <[email protected]>
Cc Christian Brauner <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Kees Cook <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Eugene Syromiatnikov <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Adrian Reber <[email protected]>
Cc Marco Elver <[email protected]>

---

 mm/memcontrol.c |    1 +
 1 file changed, 1 insertion(+)
mm/memcontrol.c renamed from mm/memcontrol.c~mm-memcg-slab-fix-return-child-memcg-objcg-for-root-memcg +1 -0
@@ -2975,6 +2975,7 @@ __always_inline struct obj_cgroup *get_o
 		objcg = rcu_dereference(memcg->objcg);
 		if (objcg && obj_cgroup_tryget(objcg))
 			break;
+		objcg = NULL;
 	}
 	rcu_read_unlock();
 

_

Patches currently in -mm which might be from [email protected] are