Skip to content
Commit ca22354b authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA/rxe: Close a race after ib_register_device



Since rxe allows unregistration from other threads the rxe pointer can
become invalid any moment after ib_register_driver returns. This could
cause a user triggered use after free.

Add another driver callback to be called right after the device becomes
registered to complete any device setup required post-registration.  This
callback has enough core locking to prevent the device from becoming
unregistered.

Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 6cc2c8e5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment