]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv3: fix rpc receive buffer size for MOUNT call
authorOlga Kornievskaia <olga.kornievskaia@gmail.com>
Thu, 14 May 2020 20:09:40 +0000 (16:09 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 14 May 2020 22:42:44 +0000 (18:42 -0400)
commit923d1e450c70751fbaedc7ae8582988bd0d9ec03
tree28fedc170d82a118f0fb9c24c3619b747f5b55e7
parent3218c038a23b898e82d854e0aa651b223add9bcc
NFSv3: fix rpc receive buffer size for MOUNT call

Prior to commit e3d3ab64dd66 ("SUNRPC: Use au_rslack when
computing reply buffer size"), there was enough slack in the reply
buffer to commodate filehandles of size 60bytes. However, the real
problem was that the reply buffer size for the MOUNT operation was
not correctly calculated. Received buffer size used the filehandle
size for NFSv2 (32bytes) which is much smaller than the allowed
filehandle size for the v3 mounts.

Fix the reply buffer size (decode arguments size) for the MNT command.

Fixes: f2dbea87fa6c ("SUNRPC: Use au_rslack when computing reply buffer size")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/mount_clnt.c