Re: [PATCH] mm: zswap: fix objcg use-after-free in entry destruction

From: Yosry Ahmed
Date: Mon Jan 29 2024 - 20:47:25 EST


On Mon, Jan 29, 2024 at 08:34:38PM -0500, Johannes Weiner wrote:
> In the per-memcg LRU universe, LRU removal uses entry->objcg to
> determine which list count needs to be decreased. Drop the objcg
> reference after updating the LRU, to fix a possible use-after-free.
>
> Fixes: a65b0e7607cc ("zswap: make shrinking memcg-aware")

Lots of hotfixes for zswap in v6.8 these couple of days :)

> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>

Acked-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>

Thanks!