linux/drivers/infiniband
Moni Shoua af0dc162f6 IB/core: Verify that QP is security enabled in create and destroy
commit 4a50881bba upstream.

The XRC target QP create flow sets up qp_sec only if there is an IB link with
LSM security enabled. However, several other related uAPI entry points blindly
follow the qp_sec NULL pointer, resulting in a possible oops.

Check for NULL before using qp_sec.

Fixes: d291f1a652 ("IB/core: Enforce PKey security on QPs")
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-01-02 20:31:04 +01:00
..
core IB/core: Verify that QP is security enabled in create and destroy 2018-01-02 20:31:04 +01:00
hw IB/mlx5: Serialize access to the VMA list 2018-01-02 20:31:04 +01:00
sw IB/rxe: check for allocation failure on elem 2017-12-25 14:26:26 +01:00
ulp IB/opa_vnic: Properly return the total MACs in UC MAC list 2017-12-25 14:26:30 +01:00
Kconfig IB/core: Expose ioctl interface through experimental Kconfig 2017-08-31 08:35:14 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00