• J. Bruce Fields's avatar
    nfsd4: reserve head space for krb5 integ/priv info · 1802a678
    J. Bruce Fields authored
    Currently if the nfs-level part of a reply would be too large, we'll
    return an error to the client.  But if the nfs-level part fits and
    leaves no room for krb5p or krb5i stuff, then we just drop the request
    entirely.
    
    That's no good.  Instead, reserve some slack space at the end of the
    buffer and make sure we fail outright if we'd come close.
    
    The slack space here is a massive overstimate of what's required, we
    should probably try for a tighter limit at some point.
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    1802a678
nfs4proc.c 54.6 KB