[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <3AA53CB7-1E21-4B79-8BA9-B1F40D3E15DF@linux.dev>
Date: Thu, 1 Aug 2024 10:42:02 +0800
From: Muchun Song <muchun.song@...ux.dev>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Muchun Song <songmuchun@...edance.com>,
Johannes Weiner <hannes@...xchg.org>,
Nhat Pham <nphamcs@...il.com>,
Linux Memory Management List <linux-mm@...ck.org>,
LKML <linux-kernel@...r.kernel.org>,
Vlastimil Babka <vbabka@...e.cz>,
Shakeel Butt <shakeel.butt@...ux.dev>
Subject: Re: [PATCH] mm: list_lru: fix UAF for memory cgroup
> On Aug 1, 2024, at 04:28, Andrew Morton <akpm@...ux-foundation.org> wrote:
>
> On Thu, 18 Jul 2024 16:36:07 +0800 Muchun Song <songmuchun@...edance.com> 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.
Powered by blists - more mailing lists