Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbdHATkE (ORCPT ); Tue, 1 Aug 2017 15:40:04 -0400 Received: from ale.deltatee.com ([207.54.116.67]:33587 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbdHATkD (ORCPT ); Tue, 1 Aug 2017 15:40:03 -0400 To: Jason Gunthorpe Cc: Matan Barak , Matan Barak , Yishai Hadas , Doug Ledford , "linux-rdma@vger.kernel.org" , Sean Hefty , Hal Rosenstock , Stephen Bates , "linux-kernel@vger.kernel.org" , Potnuri Bharat Teja References: <216b770e-fc08-68a6-c1bf-be96d52e325e@deltatee.com> <5866fa2e-d3d9-cdaf-bcb4-806f938aef83@deltatee.com> <20170801192907.GB31205@obsidianresearch.com> From: Logan Gunthorpe Message-ID: <0049cf5e-b2cc-0f55-438d-80e407edbbd8@deltatee.com> Date: Tue, 1 Aug 2017 13:39:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170801192907.GB31205@obsidianresearch.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: bharat@chelsio.com, linux-kernel@vger.kernel.org, sbates@raithlin.com, hal.rosenstock@gmail.com, sean.hefty@intel.com, linux-rdma@vger.kernel.org, dledford@redhat.com, yishaih@mellanox.com, matanb@mellanox.com, matanb@dev.mellanox.co.il, jgunthorpe@obsidianresearch.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: BUG: NULL pointer dereference at ib_uverbs_comp_handler+0x20 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1262 Lines: 37 On 01/08/17 01:29 PM, Jason Gunthorpe wrote: > On Tue, Aug 01, 2017 at 12:32:57PM -0600, Logan Gunthorpe wrote: >> Couldn't create rdma QP - Invalid argument >> Unable to create QP. >> Failed to create QP. > > Failing to create a QP makes me wonder if you have have this patch? > > 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 Oh, oops, I forgot about that. I mentioned the fix for that in my original email and it seems I wasn't testing apples to apples for my testing today. During my testing today, the branch with the reverted commits had the fix for that commit while the branch with Bharat's patch didn't. I just did a test with both Bharat's patch and 5a7a88f1b4, and everything is working correctly again. So that's great, we just need these patches to be picked up by the stable kernels. Thanks, Logan