]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSD: Insulate nfsd4_encode_readlink() from page boundaries in the encode buffer
authorChuck Lever <chuck.lever@oracle.com>
Tue, 31 Dec 2024 00:28:57 +0000 (19:28 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 11 Jan 2025 04:41:42 +0000 (23:41 -0500)
commit201cb2048a926b041f80cbd7331de77b87867940
treeaae5581b6d50d1474f3b10881c01c4863f2141af
parent26ea81638fa0fb9c02b76775301995722368356a
NFSD: Insulate nfsd4_encode_readlink() from page boundaries in the encode buffer

There's no guarantee that the pointer returned from
xdr_reserve_space() will still point to the correct reserved space
in the encode buffer after one or more intervening calls to
xdr_reserve_space(). It just happens to work with the current
implementation of xdr_reserve_space().

Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c