From: "J. Bruce Fields" <bfields@fieldses.org>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: neilb@suse.de, nfs@lists.sourceforge.net, trond.myklebust@fys.uio.no
Subject: Re: [PATCH 0/8] XDR strings use an unsigned length
Date: Fri, 2 Nov 2007 18:06:07 -0400 [thread overview]
Message-ID: <20071102220607.GO15595@fieldses.org> (raw)
In-Reply-To: <20071101205057.5503.90636.stgit@manray.1015granger.net>
On Thu, Nov 01, 2007 at 04:56:41PM -0400, Chuck Lever wrote:
> Hi Trond, Neil, Bruce...
>
> The following patch series replaces
>
> [PATCH 06/27] SUNRPC: Fix xdr_decode_string_inplace() argument signage
>
> which I posted last week.
>
> XDR variable length strings use an unsigned length. This patch series
> offers a series of clean ups to make the treatment of file names and path
> names in the NFS and NLM server consistent with the XDR specification and
> other areas of the NFS client.
I guess I'm a little worried about these patches.
It's not inherently a bug to store a length in an int.
So if the point is to track down the causes of signed/unsigned
comparison warnings, so that they stand out more in the future and draw
attention to particular bugs, that's fine. But that's only helpful if
we do actually analyze each such case carefully to determine whether
there are bugs.
So, for example, if we're going to change the nfsd_lookup arguments to
take an unsigned int for a length, I'd be much reassured if that came
with an argument as to what exactly happens currently when we recieve a
"negative" length for the lookup argument off the wire. Otherwise we're
defeating the purpose of these warnings, aren't we?
--b.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
next prev parent reply other threads:[~2007-11-02 22:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 20:56 [PATCH 0/8] XDR strings use an unsigned length Chuck Lever
2007-11-02 22:06 ` J. Bruce Fields [this message]
2007-11-05 17:40 ` Chuck Lever
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=20071102220607.GO15595@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=neilb@suse.de \
--cc=nfs@lists.sourceforge.net \
--cc=trond.myklebust@fys.uio.no \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox