[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cb4b1dbf-67b3-1dea-8f67-43b22c7ace06@cornelisnetworks.com>
Date: Wed, 21 Jul 2021 14:09:44 -0400
From: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>
To: Xiyu Yang <xiyuyang19@...an.edu.cn>,
Mike Marciniszyn <mike.marciniszyn@...nelisnetworks.com>,
Doug Ledford <dledford@...hat.com>,
Jason Gunthorpe <jgg@...pe.ca>, linux-rdma@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: yuanxzhang@...an.edu.cn, Xin Tan <tanxin.ctf@...il.com>
Subject: Re: [PATCH] RDMA/hfi1: Convert from atomic_t to refcount_t on
hfi1_devdata->user_refcount
On 7/19/21 2:00 AM, Xiyu Yang 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>
Tested-by: Josh Fisher <josh.fisher@...nelisnetworks.com>
Acked-by: Dennis Dalessandro <dennis.dalessandro@...nelisnetworks.com>
Powered by blists - more mailing lists