Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752035AbdHASdN (ORCPT ); Tue, 1 Aug 2017 14:33:13 -0400 Received: from ale.deltatee.com ([207.54.116.67]:33350 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbdHASdL (ORCPT ); Tue, 1 Aug 2017 14:33:11 -0400 To: Matan Barak Cc: Matan Barak , Yishai Hadas , Doug Ledford , "linux-rdma@vger.kernel.org" , Sean Hefty , Hal Rosenstock , Jason Gunthorpe , Stephen Bates , "linux-kernel@vger.kernel.org" , Potnuri Bharat Teja References: <216b770e-fc08-68a6-c1bf-be96d52e325e@deltatee.com> From: Logan Gunthorpe Message-ID: <5866fa2e-d3d9-cdaf-bcb4-806f938aef83@deltatee.com> Date: Tue, 1 Aug 2017 12:32:57 -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: Content-Type: multipart/mixed; boundary="------------F3E860BB690A66CB1BD19BD1" Content-Language: en-US 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, jgunthorpe@obsidianresearch.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 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: 5761 Lines: 115 This is a multi-part message in MIME format. --------------F3E860BB690A66CB1BD19BD1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hey, The patch Bharat provided fixes the kernel panic but RDMA in userspace still does not work at all. Reverting the commits I mentioned still fixes everything. To answer your questions: * I see the iwpm_register_pid message even when things are working so I don't think it's related. * All clients I've tried fail. I've attached a log of all the error messages I see with various clients. (This was with Bharat's patch so there was no kernel panic and I saw no dmesgs during these runs). The same runs with the commits I mentioned reverted work fine. * I retested everything with the CX4 cards as well and they have a similar problem but produce different error messages. I've attached a log of client runs as well. The CX4 also works once I revert those patches. However, by memory, I don't think the CX4s ever suffered from the kernel panic, and I guess it was just luck that the patches I reverted caused all these problems. On 01/08/17 05:08 AM, Matan Barak wrote: > PS, e0fcc61113c isn't a bug fix, it's just a simple refactor. If it's not a bug fix I don't think it should have a fixes tag. It probably didn't mater in this case but you don't want refactor commits to accidentally reach a stable kernel. Thanks, Logan --------------F3E860BB690A66CB1BD19BD1 Content-Type: text/plain; charset=UTF-8; name="cxgb4-client-errors.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cxgb4-client-errors.txt" Z3VudGhvcnBAY2d5MS1kb25hcmQ6fiQgaWJfd3JpdGVfYncgLVIKCioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKgoqIFdhaXRpbmcgZm9yIGNsaWVudCB0byBjb25uZWN0 Li4uICoKKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiBDb3VsZG4ndCBj cmVhdGUgcmRtYSBRUCAtIEludmFsaWQgYXJndW1lbnQKVW5hYmxlIHRvIGNyZWF0ZSBRUC4K RmFpbGVkIHRvIGNyZWF0ZSBRUC4KIFVuYWJsZSB0byBjcmVhdGUgdGhlIHJlc291cmNlcyBu ZWVkZWQgYnkgY29tbSBzdHJ1Y3QKIFVuYWJsZSB0byBwZXJmb3JtIHJkbWFfc2VydmVyIGZ1 bmN0aW9uCiBVbmFibGUgdG8gaW5pdCB0aGUgc29ja2V0IGNvbm5lY3Rpb24KZ3VudGhvcnBA Y2d5MS1kb25hcmQ6fiQgaWJfd3Jpd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fiQgaWJ2X3JjX3Bpbmdwb25nIAogIGxvY2FsIGFkZHJlc3M6ICBMSUQgMHgwMDAw LCBRUE4gMHgwMDA0MzAsIFBTTiAweGVmOWY4ZSwgR0lEIDo6CkZhaWxlZCB0byBtb2RpZnkg UVAgdG8gUlRSCkNvdWxkbid0IGNvbm5lY3QgdG8gcmVtb3RlIFFQCmd1bnRob3JwQGNneTEt ZG9uYXJkOn4kIGlidl9yY19waW5ncG9uZyBmbGFzaC1jeGdiCiAgbG9jYWwgYWRkcmVzczog IExJRCAweDAwMDAsIFFQTiAweDAwMDQzOCwgUFNOIDB4OWUwMGM4LCBHSUQgOjoKY2xpZW50 IHJlYWQ6IFN1Y2Nlc3MKQ291bGRuJ3QgcmVhZCByZW1vdGUgYWRkcmVzcwo= --------------F3E860BB690A66CB1BD19BD1 Content-Type: text/plain; charset=UTF-8; name="mlx5-client-errors.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="mlx5-client-errors.txt" Z3VudGhvcnBAY2d5MS1kb25hcmQ6fiQgaWJfd3JpdGVfYncgLVIgLWQgbWx4NV8wIGZsYXNo LXJkbWEKVW5leHBlY3RlZCBDTSBldmVudCBibCBibGthIDYKIFVuYWJsZSB0byBwZXJmb3Jt IHJkbWFfY2xpZW50IGZ1bmN0aW9uCiBVbmFibGUgdG8gaW5pdCB0aGUgc29ja2V0IGNvbm5l Y3Rpb24KZ3VudGhvcnBAY2d5MS1kb25hcmQ6fiQgaWJfd3JpdGVfYncgLVIgLWQgbWx4NV8w IAoKKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiogV2FpdGluZyBmb3Ig Y2xpZW50IHRvIGNvbm5lY3QuLi4gKgoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioKRnVuY3Rpb24gcmRtYV9hY2NlcHQgZmFpbGVkCiBVbmFibGUgdG8gcGVyZm9ybSBy ZG1hX3NlcnZlciBmdW5jdGlvbgogVW5hYmxlIHRvIGluaXQgdGhlI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