HomeFreeBSD

nfsd: Reply NFSERR_SEQMISORDERED for bogus seqid argument

Description

nfsd: Reply NFSERR_SEQMISORDERED for bogus seqid argument

The ESXi NFSv4.1 client bogusly sends the wrong value
for the csa_sequence argument for a Create_session operation.
RFC8881 requires this value to be the same as the sequence
reply from the ExchangeID operation most recently done for
the client ID.

Without this patch, the server replies NFSERR_STALECLIENTID,
which is the correct response for an NFSv4.0 SetClientIDConfirm
but is not the correct error for NFSv4.1/4.2, which is
specified as NFSERR_SEQMISORDERED in RFC8881.
This patch fixes this.

This change does not fix the issue reported in the PR, where
the ESXi client loops, attempting ExchangeID/Create_session
repeatedly.

PR: 261291

(cherry picked from commit 17a56f3fabdfacb62f6d8858643cdb1861c8c1b5)

Details

Provenance
rmacklemAuthored on Feb 9 2022, 11:17 PM
Parents
rG59c8b54cc7c1: nfsd: Allow file owners to perform Open(Delegate_cur)
Branches
Unknown
Tags
Unknown