aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorChuck Lever <[email protected]>2022-06-07 20:47:52 +0000
committerChuck Lever <[email protected]>2022-06-08 16:39:37 +0000
commit6c254bf3b637dd4ef4f78eb78c7447419c0161d7 (patch)
treef213e843c444adac740d4506c31bc9824de17a6c /scripts/clang-tools/gen_compile_commands.py
parentSUNRPC: Trap RDMA segment overflows (diff)
downloadkernel-6c254bf3b637dd4ef4f78eb78c7447419c0161d7.tar.gz
kernel-6c254bf3b637dd4ef4f78eb78c7447419c0161d7.zip
SUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()
I found that NFSD's new NFSv3 READDIRPLUS XDR encoder was screwing up right at the end of the page array. xdr_get_next_encode_buffer() does not compute the value of xdr->end correctly: * The check to see if we're on the final available page in xdr->buf needs to account for the space consumed by @nbytes. * The new xdr->end value needs to account for the portion of @nbytes that is to be encoded into the previous buffer. Fixes: 2825a7f90753 ("nfsd4: allow encoding across page boundaries") Signed-off-by: Chuck Lever <[email protected]> Reviewed-by: NeilBrown <[email protected]> Reviewed-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions