aboutsummaryrefslogtreecommitdiff
path: root/fs/nls/nls_cp866.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-12-10 12:31:14 -0500
committerAK <andi@firstfloor.org>2011-02-06 11:03:26 -0800
commitcdda0cb15d14a9c49c337e0bb9b69a392290016d (patch)
tree645654192745e678ad444b76ebd22aba45117d97 /fs/nls/nls_cp866.c
parent8a1e3d609bb1b445e34b8bc05ac87de89c4483e8 (diff)
NFS: Fix panic after nfs_umount()
commit 5b362ac3799ff4225c40935500f520cad4d7ed66 upstream. After a few unsuccessful NFS mount attempts in which the client and server cannot agree on an authentication flavor both support, the client panics. nfs_umount() is invoked in the kernel in this case. Turns out nfs_umount()'s UMNT RPC invocation causes the RPC client to write off the end of the rpc_clnt's iostat array. This is because the mount client's nrprocs field is initialized with the count of defined procedures (two: MNT and UMNT), rather than the size of the client's proc array (four). The fix is to use the same initialization technique used by most other upper layer clients in the kernel. Introduced by commit 0b524123, which failed to update nrprocs when support was added for UMNT in the kernel. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=24302 BugLink: http://bugs.launchpad.net/bugs/683938 Reported-by: Stefan Bader <stefan.bader@canonical.com> Tested-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'fs/nls/nls_cp866.c')
0 files changed, 0 insertions, 0 deletions