Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752941AbdGNGsS (ORCPT ); Fri, 14 Jul 2017 02:48:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36794 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbdGNGsR (ORCPT ); Fri, 14 Jul 2017 02:48:17 -0400 Date: Fri, 14 Jul 2017 08:48:01 +0200 From: Greg KH To: Mustafa Ismail Cc: linux-rdma@vger.kernel.org, dledford@redhat.com, swise@opengridcomputing.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org, shiraz.saleem@intel.com Subject: Re: [PATCH 1/2] RDMA/uverbs: Fix the check for port number Message-ID: <20170714064801.GB16816@kroah.com> References: <1499974658-6180-1-git-send-email-mustafa.ismail@intel.com> <1499974658-6180-2-git-send-email-mustafa.ismail@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1499974658-6180-2-git-send-email-mustafa.ismail@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 19 On Thu, Jul 13, 2017 at 02:37:37PM -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") > Signed-off-by: Mustafa Ismail > --- > drivers/infiniband/core/uverbs_cmd.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.