Received: by 10.192.165.148 with SMTP id m20csp1451244imm; Wed, 25 Apr 2018 19:26:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrPdlZT9O8U8eHVOux2xFsJj25JZ8GznRRZ+KeKf4s/yicxgsp94TnpAqmbd1McUgPp9vcG X-Received: by 10.98.215.81 with SMTP id v17mr8740160pfl.39.1524709597635; Wed, 25 Apr 2018 19:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524709597; cv=none; d=google.com; s=arc-20160816; b=zDErWlSbqlWcAjRJodeyiMDbv28MT/Y1k5YZ9SL/MLEZmAGtbCKN1ylJ3GoCgA7moy X6zzYnwUyqM7TgM93wT/L1mIs+hJCRLyt6Jyyp/WVov2OIgVPb6WfQzvLLop26V+bpwv BH5lB/J/e3pk7uO06R4zdLLDHUvXS6/q6sngU/G5oPaFUaLcK18RIRivehKXeLfWfCoD fe7Hp6TneK8N34LGtnJmstu0XdcWZHy5k821wr4aa+Uo7kjoyxleGHSr7zAJ+CJM0oj+ S5QYOklZl0k+zxTFV2UQtvxE7yDRqTaCa/ROwXELBI7xHgLFZrd8MYkakv6ua6R9so5A ZDGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=798KbdWqgaruRJvaZ+5p1rQAmwuaEzEjrmEANt1j7nY=; b=ruCEFWf8hG8wM9zKNLHuQ4kPvx8mqNO9TPPDFUq11mYXcNJtDYxzkwXaCIpDYwt2Ke YmLQpENRVu/OZOuzG4RsMA35EzQjT127Tx2Nc9vdATBros1MnhU1I0pCiU7WQP42en7B zSZKBzPrlfweOammVS1Tk1C9IoDEqMZXT60C6/0Th5XGWLvV+zqozzySa62yFDUdsMba oK3VQZPp5CSuC8tGJGw8uhmjp33hY5YsHAV4MB6gVEMAiJS2QPT8gr1z2iybEIwJVT1y jKrBPuFCs+1g0U8b8o/1KJDJjhS7pcvvAVPRKMWS0/sKX9RtzH6EWvRbq9QT3NoH07LT Oz/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I2QKabcE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si17367087plc.403.2018.04.25.19.26.23; Wed, 25 Apr 2018 19:26:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I2QKabcE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752823AbeDZCYq (ORCPT + 99 others); Wed, 25 Apr 2018 22:24:46 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:42310 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751528AbeDZCYm (ORCPT ); Wed, 25 Apr 2018 22:24:42 -0400 Received: by mail-yw0-f195.google.com with SMTP id h6-v6so3712072ywj.9 for ; Wed, 25 Apr 2018 19:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=798KbdWqgaruRJvaZ+5p1rQAmwuaEzEjrmEANt1j7nY=; b=I2QKabcEU7yYQiuf1CDiiO7SuKOws/umO0pw3bJ2T+ZaBNsZJYTGhQgl4EmJbLCPZC tiMbE46oMsqyZ8ZsaL9TYCDThZlkPkHd3A2Mu9bqaMyRciN1ASK9fDQXAMy5/4f1YuiA PVaTsC50t40MinsqtFZ2MQNUXKP8MoVSU/Qh1onBfrU6aK5kDBD0jguyYjR5SeDzUWSK WxZQngSRBSMF5qCvypxwIu/5WCfRlDhg7Gsoqi8gFkhP/rIgBU9UoQgwvKFdh1v0/kGu z99pnfZB6tVKA9jRl3my6uM090j+bl0Zwx4JroQIvVlEc0hLJBIbKvKd4AEw+UtGkm9b 50Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=798KbdWqgaruRJvaZ+5p1rQAmwuaEzEjrmEANt1j7nY=; b=tFTqLBUxczULW4mKYgGGCNk3g7RetvOAS4UBEtV1nvot7cT1chixYkKWBMYvQwFu8Q a9QqzxY6Ujw60QfZ2/OF32hr52MEsatzrzUzh4OcgKq1qnQMBCFe9/QzOT50RheZdgp4 7UrHslMTPbJna5ZDAf5tUvmsk+atYc5JNNZLdEVEPcCT0yt997GLK+I/Yhxb1XH6gnkO pm2JX0gh7YOKenrBayqbjBKCvuSvOmXhh+grY6SkfanuyvH6WfybARbeMOPawIlqnACT 0QulngOEJ7VcopNEfULlWWukyQDTNofkZg22YipDyOiD7RG91FokV8zcwPWcmSuTd/jD 1dUQ== X-Gm-Message-State: ALQs6tD05PDwjIxxLhEzmrtbBbDa9fNtgLTDX/35p+CVZIywGp/zua8j ppLLChEkQyRmiyjfvsoNRYezNmEQpKHBEqxZf2jq/A== X-Received: by 2002:a0d:c541:: with SMTP id h62-v6mr16084365ywd.464.1524709481073; Wed, 25 Apr 2018 19:24:41 -0700 (PDT) MIME-Version: 1.0 References: <20180425223424.207228-1-gthelen@google.com> <14810de7b209468bc36fdb696db639242bbad9f9.camel@wdc.com> In-Reply-To: <14810de7b209468bc36fdb696db639242bbad9f9.camel@wdc.com> From: Greg Thelen Date: Thu, 26 Apr 2018 02:24:30 +0000 Message-ID: Subject: Re: [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable To: Bart Van Assche Cc: Jason Gunthorpe , Doug Ledford , Christoph Hellwig , LKML , linux-rdma@vger.kernel.org, Tarick Bedeir Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 7:13 PM Bart Van Assche wrote: > On Wed, 2018-04-25 at 15:34 -0700, Greg Thelen wrote: > > Allow INFINIBAND without INFINIBAND_ADDR_TRANS because fuzzing has been > > finding fair number of CM bugs. So provide option to disable it. > > > > Signed-off-by: Greg Thelen > > Cc: Tarick Bedeir > > --- > > drivers/infiniband/Kconfig | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/infiniband/Kconfig b/drivers/infiniband/Kconfig > > index ee270e065ba9..2a972ed6851b 100644 > > --- a/drivers/infiniband/Kconfig > > +++ b/drivers/infiniband/Kconfig > > @@ -61,9 +61,12 @@ config INFINIBAND_ON_DEMAND_PAGING > > pages on demand instead. > > > > config INFINIBAND_ADDR_TRANS > > - bool > > + bool "RDMA/CM" > > depends on INFINIBAND > > default y > > + ---help--- > > + Support for RDMA communication manager (CM). > > + This allows for a generic connection abstraction over RDMA. > Hello Greg, > Please provide a cover letter when posting a patch series. Such a cover > letter is not only informative but also makes it easy for people who want > to comment on a patch series as a whole. I have a question that applies > to the entire patch series. The RDMA/CM code defines functions like > rdma_create_id() and rdma_create_qp(). If I search through the kernel tree > for callers of these functions then I find several more kernel modules than > the ones that are modified by this patch series: > $ git grep -lE '[[:blank:]](rdma_create_id|rdma_create_qp)\(' > drivers/infiniband/core/cma.c > drivers/infiniband/ulp/iser/iser_verbs.c > drivers/infiniband/ulp/isert/ib_isert.c > drivers/infiniband/ulp/srp/ib_srp.c > drivers/infiniband/ulp/srpt/ib_srpt.c > drivers/nvme/host/rdma.c > drivers/nvme/target/rdma.c > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c > drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.h > fs/cifs/smbdirect.c > include/rdma/rdma_cm.h > net/9p/trans_rdma.c > net/rds/ib.c > net/rds/ib_cm.c > net/rds/rdma_transport.c > net/sunrpc/xprtrdma/svc_rdma_transport.c > net/sunrpc/xprtrdma/verbs.c > Are you sure that this patch series is complete? I'll check your cited files. I'll resend with cover letter. FYI: I already rand this series through the 0-day builder, which presumably would've caught most config dep issues. But I'll research your list before reposting.