public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable
@ 2018-04-25 22:34 Greg Thelen
  2018-04-26  2:13 ` Bart Van Assche
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Thelen @ 2018-04-25 22:34 UTC (permalink / raw)
  To: Doug Ledford, Bart Van Assche, Jason Gunthorpe
  Cc: Christoph Hellwig, linux-rdma, linux-kernel, Greg Thelen,
	Tarick Bedeir

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 <gthelen@google.com>
Cc: Tarick Bedeir <tarick@google.com>
---
 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.
 
 config INFINIBAND_ADDR_TRANS_CONFIGFS
 	bool
-- 
2.17.0.441.gb46fe60e1d-goog

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable
  2018-04-25 22:34 [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
@ 2018-04-26  2:13 ` Bart Van Assche
  2018-04-26  2:24   ` Greg Thelen
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2018-04-26  2:13 UTC (permalink / raw)
  To: jgg@ziepe.ca, gthelen@google.com, dledford@redhat.com
  Cc: hch@lst.de, linux-kernel@vger.kernel.org,
	linux-rdma@vger.kernel.org, tarick@google.com

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 <gthelen@google.com>
> Cc: Tarick Bedeir <tarick@google.com>
> ---
>  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?

Thanks,

Bart.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable
  2018-04-26  2:13 ` Bart Van Assche
@ 2018-04-26  2:24   ` Greg Thelen
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Thelen @ 2018-04-26  2:24 UTC (permalink / raw)
  To: Bart Van Assche
  Cc: Jason Gunthorpe, Doug Ledford, Christoph Hellwig, LKML,
	linux-rdma, Tarick Bedeir

On Wed, Apr 25, 2018 at 7:13 PM Bart Van Assche <Bart.VanAssche@wdc.com>
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 <gthelen@google.com>
> > Cc: Tarick Bedeir <tarick@google.com>
> > ---
> >  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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-26  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-25 22:34 [PATCH 5/5] IB: make INFINIBAND_ADDR_TRANS configurable Greg Thelen
2018-04-26  2:13 ` Bart Van Assche
2018-04-26  2:24   ` Greg Thelen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox