Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751419AbdGQTKV convert rfc822-to-8bit (ORCPT ); Mon, 17 Jul 2017 15:10:21 -0400 Received: from mga04.intel.com ([192.55.52.120]:56555 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751373AbdGQTKR (ORCPT ); Mon, 17 Jul 2017 15:10:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,375,1496127600"; d="scan'208";a="1152430783" From: "Marciniszyn, Mike" To: "Ismail, Mustafa" , "linux-rdma@vger.kernel.org" , "dledford@redhat.com" CC: "swise@opengridcomputing.com" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "e1000-rdma@lists.sourceforge.net" , "Saleem, Shiraz" Subject: RE: [PATCH v2 1/2] RDMA/uverbs: Fix the check for port number Thread-Topic: [PATCH v2 1/2] RDMA/uverbs: Fix the check for port number Thread-Index: AQHS/K90lCAOX5XiE0aMxub1237BZ6JYZwZQ Date: Mon, 17 Jul 2017 19:10:15 +0000 Message-ID: <32E1700B9017364D9B60AED9960492BC34341CBF@fmsmsx120.amr.corp.intel.com> References: <1500043291-19768-1-git-send-email-mustafa.ismail@intel.com> <1500043291-19768-2-git-send-email-mustafa.ismail@intel.com> In-Reply-To: <1500043291-19768-2-git-send-email-mustafa.ismail@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDIyMzM3MDMtYjE2NS00OGRhLTg3OTctZGQ5Mjg3YTdjNDQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InpaN0gxNTN3QlV3d2l3eWVmakh4Q1daTzNoMXB5Z2gzaExETHdTWW9HTUU9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.1.200.108] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 537 Lines: 12 > Subject: [PATCH v2 1/2] RDMA/uverbs: Fix the check for port number > > The port number is only valid if IB_QP_PORT is set in the mask. > So only check port number if it is valid to prevent modify_qp from > failing due to an invalid port number. > > Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds") > Cc: # v2.6.14+ > Reviewed-by: Steve Wise > Signed-off-by: Mustafa Ismail Tested-by: Mike Marciniszyn