mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
NFSD: Budget the CB_RECALL_ANY opcode
NFS4_enc_cb_recall_any_sz counts the objects-to-keep field, the bitmap array length, and the bitmap word. encode_cb_recallany4args() emits an opcode ahead of all three, so the macro falls one XDR word short. This macro sizes p_arglen and nothing else. rq_callsize pads that with two credential slacks, so the shortfall has never reached the send buffer. No backport is needed. Link: https://patch.msgid.link/20260802-nfsd-deleg-destroy-badhandle-v1-6-323aa7196055@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
59b4d6011b
commit
193a78c4b5
|
|
@ -67,7 +67,7 @@
|
|||
op_dec_sz)
|
||||
#define NFS4_enc_cb_recall_any_sz (cb_compound_enc_hdr_sz + \
|
||||
cb_sequence_enc_sz + \
|
||||
1 + 1 + 1)
|
||||
op_enc_sz + 1 + 1 + 1)
|
||||
#define NFS4_dec_cb_recall_any_sz (cb_compound_dec_hdr_sz + \
|
||||
cb_sequence_dec_sz + \
|
||||
op_dec_sz)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user