Re: [PATCH] mm: list_lru: fix UAF for memory cgroup
From: Muchun Song
Date: Wed Jul 31 2024 - 22:55:53 EST
> On Aug 1, 2024, at 04:28, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, 18 Jul 2024 16:36:07 +0800 Muchun Song <songmuchun@xxxxxxxxxxxxx> 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.
>>
>
> Well I grabbed this, but the review led me to expect a v2.
Will do.
>
> Should it have cc:stable?
Yes.