https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215883
Bug ID: 215883
Summary: If the Setattr operation for NFSv4.1 can erroneously
report EBADRPC
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Created attachment 178638
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=178638&action=edit
Patch to fix the NFSv4 Setattr RPC error return.
When the NFSv4 client receives a reply to a setattr where the error failure
is an operation before the Setattr, the code would erroneously try to
parse an attribute bitmap and fail with EBADRPC.
This patch adds a check for end of RPC message to avoid this and make it
reply the correct error.
The main case where this would happen is in a recovery from a
NFSERR_BADSESSION failure on the server, which is pretty rare.
The attached 1 line patch fixes this.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"