Re: [PATCH] RDMA/uverbs: Fix RCU annotation for radix slot deference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 28, 2018 at 04:28:02PM -0600, Jason Gunthorpe wrote:
> The uapi radix tree is a write-once data structure protected by kref.
> Once we get to the ioctl() fop it is not possible for anything else
> to be writing to it, so the access should use rcu_dereference_protected.
> 
> Reported-by: Matthew Wilcox <willy@xxxxxxxxxxxxx>
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/uverbs_ioctl.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)

Applied to for-next

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux