public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kris Kennaway <kris@freebsd.org>
To: linux-kernel@vger.kernel.org
Subject: NFS Locking violates protocol spec (incompatible with FreeBSD)
Date: Thu, 6 Nov 2003 20:10:51 -0800	[thread overview]
Message-ID: <20031107041051.GA4065@rot13.obsecurity.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

Hello,

In http://lxr.linux.no/source/include/linux/lockd/xdr.h?v=2.6.0-test7
can be found the following comment:

35 /*
36  *      NLM cookies. Technically they can be 1K, Nobody uses over 8 bytes
37  *      however.
38  */
39  
40 struct nlm_cookie
41 {
42         unsigned char data[8];
43         unsigned int len;
44 };

Unfortunately, this is incorrect: FreeBSD 5.x's rpc.lockd uses a 16
byte cookie, and therefore FreeBSD 5.x NFS clients cannot interoperate
with Linux when NFS locking is enabled.

  http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/56461

contains more details about this problem, including a workaround for
FreeBSD to limit the cookie size to 8 bytes.  Obviously, it would be
better for this bug to be fixed in Linux, since Linux is
non-conformant to the protocol.

Kris



[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

             reply	other threads:[~2003-11-07  4:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-07  4:10 Kris Kennaway [this message]
2003-11-07  4:46 ` NFS Locking violates protocol spec (incompatible with FreeBSD) Trond Myklebust
2003-11-07  4:53   ` Kris Kennaway
2003-11-07  6:13     ` Trond Myklebust
2003-11-07  6:32       ` Kris Kennaway

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=20031107041051.GA4065@rot13.obsecurity.org \
    --to=kris@freebsd.org \
    --cc=linux-kernel@vger.kernel.org \
    /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