Re: [PATCH] z3fold: claim page in the beginning of free

From: Andrew Morton
Date: Thu Sep 26 2019 - 18:48:37 EST


On Thu, 26 Sep 2019 10:48:44 +0200 Vitaly Wool <vitalywool@xxxxxxxxx> wrote:

> There's a really hard to reproduce race in z3fold between
> z3fold_free() and z3fold_reclaim_page(). z3fold_reclaim_page()
> can claim the page after z3fold_free() has checked if the page
> was claimed and z3fold_free() will then schedule this page for
> compaction which may in turn lead to random page faults (since
> that page would have been reclaimed by then). Fix that by
> claiming page in the beginning of z3fold_free().
>

I take it from the email headers that a

Cc: <stable@xxxxxxxxxxxxxxx>

was intended?