On Thu, Jul 18, 2024 at 04:36:07PM GMT, Muchun Song wrote: > The mem_cgroup_from_slab_obj() is supposed to be called under rcu > lock or cgroup_mutex or others which could prevent returned memcg > from being freed. Fix it by adding missing rcu read lock. > > Fixes: 0a97c01cd20bb ("list_lru: allow explicit memcg and NUMA node selection) > Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx> Yup I noticed these as well while reviewing Kairui's patches. Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>