2021-07-21 06:51:51

by Muchun Song

[permalink] [raw]
Subject: Re: [PATCH] mm/mempolicy: Convert from atomic_t to refcount_t on mempolicy->refcnt

On Mon, Jul 19, 2021 at 4:34 PM Xiyu Yang <[email protected]> wrote:
>
> refcount_t type and corresponding API can protect refcounters from
> accidental underflow and overflow and further use-after-free situations.
>
> Signed-off-by: Xiyu Yang <[email protected]>
> Signed-off-by: Xin Tan <[email protected]>

Reviewed-by: Muchun Song <[email protected]>