]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFSD: Insulate nfsd4_encode_secinfo() from page boundaries in the encode buffer
authorChuck Lever <chuck.lever@oracle.com>
Tue, 31 Dec 2024 00:28:59 +0000 (19:28 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 11 Jan 2025 04:42:20 +0000 (23:42 -0500)
commitb786caa65d4baa73257487e27ebab9004dc768d1
tree1bbf85d3a83ff26871be283ca81e58269883bf2e
parent825562bc7d5948723511046686217829dbeb067f
NFSD: Insulate nfsd4_encode_secinfo() 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