kernel_optimize_test/include
Jason Gunthorpe 8bdf9dd984 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>
2020-01-13 16:17:18 -04:00
..
acpi
asm-generic
clocksource
crypto
drm
dt-bindings
keys
kunit
kvm
linux Merge branch 'mlx5_vdpa' into rdma.git for-next 2020-01-12 19:48:54 -04:00
math-emu
media
misc
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-12-22 09:54:33 -08:00
pcmcia
ras
rdma RDMA/uverbs: Remove needs_kfree_rcu from uverbs_obj_type_class 2020-01-13 16:17:18 -04:00
scsi
soc
sound ASoC: Fixes for v5.5 2019-12-17 14:18:32 +01:00
target
trace RDMA/core: Add trace points to follow MR allocation 2020-01-07 16:10:53 -04:00
uapi IB/mlx5: Introduce VAR object and its alloc/destroy methods 2020-01-12 19:49:13 -04:00
vdso
video
xen xen/interface: re-define FRONT/BACK_RING_ATTACH() 2019-12-20 13:44:42 +01:00