[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMZfGtXFsxj9b--ZcZgAdcebeeMzivpmJPamBqtn76k4m0d3ZA@mail.gmail.com>
Date: Wed, 21 Jul 2021 14:42:17 +0800
From: Muchun Song <songmuchun@...edance.com>
To: Xiyu Yang <xiyuyang19@...an.edu.cn>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Feng Tang <feng.tang@...el.com>,
Mike Kravetz <mike.kravetz@...cle.com>,
Ben Widawsky <ben.widawsky@...el.com>,
Yanfei Xu <yanfei.xu@...driver.com>,
LKML <linux-kernel@...r.kernel.org>,
Linux Memory Management List <linux-mm@...ck.org>,
yuanxzhang@...an.edu.cn, Xin Tan <tanxin.ctf@...il.com>
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 <xiyuyang19@...an.edu.cn> 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 <xiyuyang19@...an.edu.cn>
> Signed-off-by: Xin Tan <tanxin.ctf@...il.com>
Reviewed-by: Muchun Song <songmuchun@...edance.com>
Powered by blists - more mailing lists