Skip to content

Mount XDR rewrite, and parser bugfix, take 2

Chuck Lever linux-nfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8NFS: Use xdr_stream-based XDR encoder for MNT's dirpath argumentfs/nfs/mount_clnt.c+44 -50 replies
2/8NFS: remove unused function in fs/nfs/mount_clnt.cfs/nfs/mount_clnt.c+0 -80 replies
3/8NFS: Add separate mountd status code decoders for each mountd versionfs/nfs/mount_clnt.c+116 -00 replies
4/8NFS: add new file handle decoders to in-kernel mountd clientfs/nfs/mount_clnt.c+39 -00 replies
5/8NFS: add XDR decoder for mountd version 3 auth-flavor listsfs/nfs/internal.h fs/nfs/mount_clnt.c+43 -00 replies
6/8NFS: Update MNT and MNT3 reply decoding functionsfs/nfs/internal.h fs/nfs/mount_clnt.c fs/nfs/nfsroot.c +1 more+55 -140 replies
7/8NFS: Remove unused XDR decoder functionsfs/nfs/mount_clnt.c+0 -290 replies
8/8NFS: Invalid mount option values should always fail, even with "sloppy"fs/nfs/super.c+61 -960 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Mount XDR rewrite, and parser bugfix, take 2

Hi Trond-

Redriven based on your review comments. The patches start with the enc_dirpath patch, for reference.

The parser fix patch is larger now, but the resulting parser is simpler. There's no need to actually count errors; simply raise a flag whenever an invalid option is encountered. Invalid values cause parsing to stop immediately.

---

Chuck Lever (8):
NFS: Invalid mount option values should always fail, even with "sloppy"
NFS: Remove unused XDR decoder functions
NFS: Update MNT and MNT3 reply decoding functions
NFS: add XDR decoder for mountd version 3 auth-flavor lists
NFS: add new file handle decoders to in-kernel mountd client
NFS: Add separate mountd status code decoders for each mountd version
NFS: remove unused function in fs/nfs/mount_clnt.c
NFS: Use xdr_stream-based XDR encoder for MNT's dirpath argument

 fs/nfs/internal.h   |    8 +
 fs/nfs/mount_clnt.c |  305 +++++++++++++++++++++++++++++++++++++++++++++------
 fs/nfs/nfsroot.c    |    2 
 fs/nfs/super.c      |  159 +++++++++++----------------
 4 files changed, 340 insertions(+), 134 deletions(-)
Signature · 1 line
Chuck Lever <[email protected]>