Files
linux/drivers
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>
2018-01-02 20:31:04 +01:00
..
2017-12-14 09:53:13 +01:00
2017-11-03 09:02:30 -07:00
2017-12-29 17:53:49 +01:00
2017-12-29 17:53:46 +01:00
2017-08-29 13:46:35 +02:00
2017-11-03 09:02:30 -07:00
2017-12-17 15:07:56 +01:00