HomeFreeBSD

For the case where an NFSv4.1 ExchangeID operation has the client identifier

Description

For the case where an NFSv4.1 ExchangeID operation has the client identifier
that already has a confirmed ClientID, the nfsrv_setclient() function would
not fill in the clientidp being returned. As such, the value of ClientID
returned would be whatever garbage was on the stack.
An NFSv4.1 client would not normally do this, but it appears that it can
happen for certain Linux clients. When it happens, the client persistently
retries the ExchangeID and Create_session after Create_session fails when
it uses the bogus clientid. With this patch, the correct clientid is replied.
This problem was identified in a packet trace supplied by
Ahmed Kamal via email.

Reported by: email.ahmedkamal@googlemail.com
MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on
Parents
rS286789: MFC r285842: truss: follow pdfork()ed descendents with -f
Branches
Unknown
Tags
Unknown