From: "J. Bruce Fields" <bfields@fieldses.org>
To: Tom Tucker <tom@opengridcomputing.com>
Cc: thomas.talpey@netapp.com, linux-nfs@vger.kernel.org
Subject: Re: [PATCH 11/12] svcrdma: Add a message log string to indicate if FastReg is being used
Date: Thu, 9 Oct 2008 12:26:23 -0400 [thread overview]
Message-ID: <20081009162623.GD28785@fieldses.org> (raw)
In-Reply-To: <48EDA691.9080108@opengridcomputing.com>
On Thu, Oct 09, 2008 at 01:37:05AM -0500, Tom Tucker wrote:
> J. Bruce Fields wrote:
>> On Fri, Oct 03, 2008 at 04:33:48PM -0500, Tom Tucker wrote:
>>
>>> Add a log message that allows the administrator to determine if server memory
>>> is exposed on a particular client connection. This message can be disabled
>>> by writing 0 to the /proc/sys/sunrpc/svc_rdma/show_conn_info file.
>>>
>>
>> I could grudgingly live with the idea of a log message here as a
>> temporary fix while we figure out something better, but I'm not happy
>> about making it bigger and adding a sysctl.
>>
>>
> I would happily remove all of this. I believed you thought it important
> that we actively informed the administrator.
> Maybe I over-reacted.
Well, I was probably unclear and/or confused, apologies. What I think
would make sense for now would be just be some easy way we an
administrator could answer the question "what kind of security model are
my rdma interfaces using"?
A cautious administrator will want to answer these questions before
turning on nfs over rdma, so a log message on client connect isn't as
useful. Also, messages to the log are fine for debugging, for notices
about exceptional events, etc., but they aren't reliable for this kind
of use (they get stored in distro-specific locations for varying amounts
of time; wording may change across kernel versions, making them harder
to grep for; etc).
So these log messages might serve as a stopgap, but I'd prefer something
that could be queried reliably at any time.
If in addition we wanted to warn about the riskier case, maybe we could
print a message *just* in that case (and print it only once), but I
don't feel strongly about that.
>> If we just want a hack for now, I'd be inclined to leave this printk a
>> dprintk, add the extra information to the dprintk, and tell people to
>> turn on transport debugging and watch a client connect. Ugly, but at
>> least it'll be obvious it's not an api that's going to stick around.
>>
>>
> Id' love to get rid of it...
>> Beyond the short-term: is there some other way of getting this
>> information from userspace? Since this is a property of the interface
>> device, it'd seem natural to communicate the information in something
>> like a sysfs file for the device, or whatever's used to query properties
>> of network interfaces.
>>
>> I'm a bit surprised the information isn't already there. Aren't
>> userspace applications eventually also supposed to be able to use rdma?
>> Don't they need to query network interfaces for their capabilities?
>>
>>
> All of this information is available from a full-function user-mode API.
Oh, cool. So would it be difficult to write a C program that just
printed out some basic information about the rdma-capable interfaces on
the system? If it didn't have a lot of dependencies, we could even
consider adding it to nfs-utils.
The one drawback is that it wouldn't be able to tell whether the
currently running kernel actually supported fast registration. Do you
think a guess based on kernel version would be good enough for that?
> This code makes devices more secure than they used to be. So there is no
> negative security regression here. This patchset simply improves the
> security for newer devices that support the new features.
Yes, agreed. Just to be clear, I *have* queued up all but these last
two patches (the printk and documentation patches) for 2.6.28.
--b.
next prev parent reply other threads:[~2008-10-09 16:26 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-03 21:33 [PATCH 00/12] svcrdma: Fast memory registration support Tom Tucker
2008-10-03 21:33 ` [PATCH 01/12] svcrdma: Add Fast Reg MR Data Types Tom Tucker
2008-10-03 21:33 ` [PATCH 02/12] svcrdma: Add FRMR get/put services Tom Tucker
2008-10-03 21:33 ` [PATCH 03/12] svcrdma: Query device for Fast Reg support during connection setup Tom Tucker
2008-10-03 21:33 ` [PATCH 04/12] svcrdma: Add a service to register a Fast Reg MR with the device Tom Tucker
2008-10-03 21:33 ` [PATCH 05/12] svcrdma: Modify post recv path to use local dma key Tom Tucker
2008-10-03 21:33 ` [PATCH 06/12] svcrdma: Add support to svc_rdma_send to handle chained WR Tom Tucker
2008-10-03 21:33 ` [PATCH 07/12] svcrdma: Modify the RPC recv path to use FRMR when available Tom Tucker
2008-10-03 21:33 ` [PATCH 08/12] svcrdma: Modify the RPC reply " Tom Tucker
2008-10-03 21:33 ` [PATCH 09/12] svcrdma: Update svc_rdma_send_error to use DMA LKEY Tom Tucker
2008-10-03 21:33 ` [PATCH 10/12] svcrdma: Fix IRD/ORD polarity Tom Tucker
2008-10-03 21:33 ` [PATCH 11/12] svcrdma: Add a message log string to indicate if FastReg is being used Tom Tucker
2008-10-03 21:33 ` [PATCH 12/12] svcrdma: Documentation update for the FastReg memory model Tom Tucker
2008-10-08 22:48 ` [PATCH 11/12] svcrdma: Add a message log string to indicate if FastReg is being used J. Bruce Fields
2008-10-09 6:37 ` Tom Tucker
2008-10-09 16:26 ` J. Bruce Fields [this message]
2008-10-09 18:46 ` Tom Tucker
2008-10-10 21:02 ` J. Bruce Fields
2008-10-13 2:18 ` Tom Tucker
2008-10-13 2:20 ` Tom Tucker
2008-10-22 20:23 ` J. Bruce Fields
2008-10-22 21:37 ` Tom Tucker
2008-10-04 1:05 ` [PATCH 02/12] svcrdma: Add FRMR get/put services Tom Tucker
2008-10-06 20:02 ` Tom Tucker
2008-10-08 22:26 ` [PATCH 00/12] svcrdma: Fast memory registration support J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081009162623.GD28785@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=thomas.talpey@netapp.com \
--cc=tom@opengridcomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.