• Olga Kornievskaia's avatar
    NFSv3: fix rpc receive buffer size for MOUNT call · 8eed292b
    Olga Kornievskaia authored
    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: 2c94b8ec ("SUNRPC: Use au_rslack when computing reply buffer size")
    Signed-off-by: default avatarOlga Kornievskaia <kolga@netapp.com>
    Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
    8eed292b
mount_clnt.c 12.4 KB