[Bug 215883] If the Setattr operation for NFSv4.1 can erroneously report EBADRPC
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jan 8 22:43:07 UTC 2017
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: freebsd-bugs at FreeBSD.org
Reporter: rmacklem at FreeBSD.org
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.
More information about the freebsd-bugs
mailing list