From: Chuck Lever <chuck.lever@xxxxxxxxxx> Build out the patch series to address the longstanding bug pointed out by J David and Rick Macklem. At least during NFSv4 COMPOUND encoding, using write_bytes_to_xdr_buf() seems less brittle than saving a pointer into the XDR encoding buffer. I have one more patch to add (not yet included) that addresses the issue in the NFSv4 READ and READ_PLUS encoders. Changes since RFC: - Document the guarantees around pointer returned by xdr_reserve_space() - Use write_bytes_to_xdr_buf() instead Chuck Lever (2): NFSD: Encode COMPOUND operation status on page boundaries SUNRPC: Document validity guarantees of the pointer returned by reserve_space fs/nfsd/nfs4xdr.c | 20 ++++++++++---------- net/sunrpc/xdr.c | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) -- 2.47.0