]> Git Repo - linux.git/commit
NFS: Fix security flavor negotiation with legacy binary mounts
authorChuck Lever <[email protected]>
Tue, 14 May 2013 18:37:56 +0000 (14:37 -0400)
committerTrond Myklebust <[email protected]>
Thu, 30 May 2013 20:31:34 +0000 (16:31 -0400)
commiteb54d43707c69340581940e1fcaecb4d7d17b814
tree8f4e728db4b758a18ae1fe241bd1275df416c214
parentf448badd34700ae728a32ba024249626d49c10e1
NFS: Fix security flavor negotiation with legacy binary mounts

Darrick J. Wong <[email protected]> reports:
> I have a kvm-based testing setup that netboots VMs over NFS, the
> client end of which seems to have broken somehow in 3.10-rc1.  The
> server's exports file looks like this:
>
> /storage/mtr/x64 192.168.122.0/24(ro,sync,no_root_squash,no_subtree_check)
>
> On the client end (inside the VM), the initrd runs the following
> command to try to mount the rootfs over NFS:
>
> # mount -o nolock -o ro -o retrans=10 192.168.122.1:/storage/mtr/x64/ /root
>
> (Note: This is the busybox mount command.)
>
> The mount fails with -EINVAL.

Commit 4580a92d44 "NFS: Use server-recommended security flavor by
default (NFSv3)" introduced a behavior regression for NFS mounts
done via a legacy binary mount(2) call.

Ensure that a default security flavor is specified for legacy binary
mount requests, since they do not invoke nfs_select_flavor() in the
kernel.

Busybox uses klibc's nfsmount command, which performs NFS mounts
using the legacy binary mount data format.  /sbin/mount.nfs is not
affected by this regression.

Reported-by: Darrick J. Wong <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Tested-by: Darrick J. Wong <[email protected]>
Acked-by: Weston Andros Adamson <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
fs/nfs/super.c
This page took 0.054293 seconds and 4 git commands to generate.