On Tue, Nov 21, 2017 at 12:26:17PM +0200, Leon Romanovsky wrote: > From: Daniel Jurgens > > For now the only LSM security enforcement mechanism available is > specific to InfiniBand. Bypass enforcement for non-IB link types. > This fixes a regression where modify_qp fails for iWARP because > querying the PKEY returns -EINVAL. > > Cc: Paul Moore > Cc: Don Dutile > Cc: stable@vger.kernel.org > Reported-by: Potnuri Bharat Teja > Fixes: d291f1a65232("IB/core: Enforce PKey security on QPs") > Fixes: 47a2b338fe63("IB/core: Enforce security on management datagrams") > Signed-off-by: Daniel Jurgens > Reviewed-by: Parav Pandit > Tested-by: Potnuri Bharat Teja > Signed-off-by: Leon Romanovsky > --- > drivers/infiniband/core/security.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Please drop this patch, I mistakenly cut it. It doesn't contain the whole fix now, I'll respin. Thanks