Skip to content

Commit 1f28b0c

Browse files
committed
NFSv4.2: fix COPY_NOTIFY xdr buf size calculation
JIRA: https://issues.redhat.com/browse/RHEL-108616 commit e8380c2 Author: Olga Kornievskaia <okorniev@redhat.com> Date: Fri Dec 13 11:52:00 2024 -0500 NFSv4.2: fix COPY_NOTIFY xdr buf size calculation We need to include sequence size in the compound. Fixes: 0491567 ("NFS: add COPY_NOTIFY operation") Signed-off-by: Olga Kornievskaia <okorniev@redhat.com> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
1 parent 6f8b025 commit 1f28b0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/nfs42xdr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@
144144
decode_putfh_maxsz + \
145145
decode_offload_cancel_maxsz)
146146
#define NFS4_enc_copy_notify_sz (compound_encode_hdr_maxsz + \
147+
encode_sequence_maxsz + \
147148
encode_putfh_maxsz + \
148149
encode_copy_notify_maxsz)
149150
#define NFS4_dec_copy_notify_sz (compound_decode_hdr_maxsz + \
151+
decode_sequence_maxsz + \
150152
decode_putfh_maxsz + \
151153
decode_copy_notify_maxsz)
152154
#define NFS4_enc_deallocate_sz (compound_encode_hdr_maxsz + \

0 commit comments

Comments
 (0)