]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nfsd4: reserve head space for krb5 integ/priv info
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 21 Jan 2014 16:06:52 +0000 (11:06 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 May 2014 13:03:47 +0000 (09:03 -0400)
commit1802a67894fab3ff90a3ef4f484e97a5b4515426
tree0624e92555a98611c4216805261e7f0d3aefac20
parent2d124dfaad08733077d2c46755716b2873af65a3
nfsd4: reserve head space for krb5 integ/priv info

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: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c