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