From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: BUG: NULL pointer dereference at ib_uverbs_comp_handler+0x20 Date: Tue, 1 Aug 2017 13:29:07 -0600 Message-ID: <20170801192907.GB31205@obsidianresearch.com> References: <216b770e-fc08-68a6-c1bf-be96d52e325e@deltatee.com> <5866fa2e-d3d9-cdaf-bcb4-806f938aef83@deltatee.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <5866fa2e-d3d9-cdaf-bcb4-806f938aef83-OTvnGxWRz7hWk0Htik3J/w@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Logan Gunthorpe Cc: Matan Barak , Matan Barak , Yishai Hadas , Doug Ledford , "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Sean Hefty , Hal Rosenstock , Stephen Bates , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Potnuri Bharat Teja List-Id: linux-rdma@vger.kernel.org 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 Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html