From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33033 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751963AbdHCWlw (ORCPT ); Thu, 3 Aug 2017 18:41:52 -0400 Date: Thu, 3 Aug 2017 15:41:49 -0700 From: Greg KH To: Mustafa Ismail Cc: linux-rdma@vger.kernel.org, e1000-rdma@lists.sourceforge.net, chien.tin.tung@intel.com, shiraz.saleem@intel.com, "# v4 . 2-v4 . 9" , security@kernel.org, Doug Ledford , Steve Wise , Mike Marciniszyn Subject: Re: [PATCH] RDMA/uverbs: Fix the check for port number Message-ID: <20170803224149.GF2396@kroah.com> References: <1501085686-12916-1-git-send-email-mustafa.ismail@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1501085686-12916-1-git-send-email-mustafa.ismail@intel.com> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Jul 26, 2017 at 11:14:46AM -0500, Mustafa Ismail wrote: > 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: # v4.2-v4.9 > Cc: > Cc: Doug Ledford > Cc: Steve Wise > Cc: Mike Marciniszyn > > Signed-off-by: Mustafa Ismail > > Upstream commit 5a7a88f1b488("Fix the check for port number") > Modified from upstream commit: helper function rdma_is_port_valid does not > exist in these kernel versions. Note, you sent this 3 times for some reason, why? Also, it was hard to figure out what to do with it, I think it was ment for me to apply to the 4.4 and 4.9-stable trees, right? If so, I've done that, if not, please let me know. thanks, greg k-h