]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFSv4.2: fix COPY_NOTIFY xdr buf size calculation
authorOlga Kornievskaia <okorniev@redhat.com>
Fri, 13 Dec 2024 16:52:00 +0000 (11:52 -0500)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 21 Jan 2025 16:34:50 +0000 (11:34 -0500)
We need to include sequence size in the compound.

Fixes: 0491567b51ef ("NFS: add COPY_NOTIFY operation")
Signed-off-by: Olga Kornievskaia <okorniev@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/nfs42xdr.c

index ef5730c5e704f0c5e1e012d68e5eabe87e889178..5072d7ea72e9e865f1f9f83f11a5deefb051b601 100644 (file)
                                         decode_putfh_maxsz + \
                                         decode_offload_cancel_maxsz)
 #define NFS4_enc_copy_notify_sz                (compound_encode_hdr_maxsz + \
+                                        encode_sequence_maxsz + \
                                         encode_putfh_maxsz + \
                                         encode_copy_notify_maxsz)
 #define NFS4_dec_copy_notify_sz                (compound_decode_hdr_maxsz + \
+                                        decode_sequence_maxsz + \
                                         decode_putfh_maxsz + \
                                         decode_copy_notify_maxsz)
 #define NFS4_enc_deallocate_sz         (compound_encode_hdr_maxsz + \