diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-13 15:33:10 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-13 21:17:18 +0100 |
commit | 8bdf9dd984c18375d1090ddeb1792511f619c5c1 (patch) | |
tree | f5fe75a0e22cc09ccb4518668d5525dddc60f796 /mm/swap_cgroup.c | |
parent | IB/mlx5: Add mmap support for VAR (diff) | |
download | linux-8bdf9dd984c18375d1090ddeb1792511f619c5c1.tar.xz linux-8bdf9dd984c18375d1090ddeb1792511f619c5c1.zip |
RDMA/uverbs: Remove needs_kfree_rcu from uverbs_obj_type_class
After device disassociation the uapi_objects are destroyed and freed,
however it is still possible that core code can be holding a kref on the
uobject. When it finally goes to uverbs_uobject_free() via the kref_put()
it can trigger a use-after-free on the uapi_object.
Since needs_kfree_rcu is a micro optimization that only benefits file
uobjects, just get rid of it. There is no harm in using kfree_rcu even if
it isn't required, and the number of involved objects is small.
Link: https://lore.kernel.org/r/20200113143306.GA28717@ziepe.ca
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'mm/swap_cgroup.c')
0 files changed, 0 insertions, 0 deletions