Re: [PATCH] zsmalloc: move LRU update from zs_map_object() to zs_malloc()

From: Andrew Morton
Date: Fri May 05 2023 - 15:14:10 EST


On Fri, 5 May 2023 11:50:54 -0700 Nhat Pham <nphamcs@xxxxxxxxx> wrote:

> Under memory pressure, we sometimes observe the following crash:
>
> [ 5694.832838] ------------[ cut here ]------------
> [ 5694.842093] list_del corruption, ffff888014b6a448->next is LIST_POISON1 (dead000000000100)
>
> ...
>
> Suggested-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>
> Signed-off-by: Nhat Pham <nphamcs@xxxxxxxxx>

Am I correct in believing that we should backport this fix into earlier
kernels?

And that a suitable Fixes: target is 64f768c6b32e ("zsmalloc: add a LRU
to zs_pool to keep track of zspages in LRU order)"?