Date: Sun, 08 Jan 2017 22:43:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 215883] If the Setattr operation for NFSv4.1 can erroneously report EBADRPC Message-ID: <bug-215883-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215883 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@FreeBSD.org Reporter: rmacklem@FreeBSD.org Created attachment 178638 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178638&action= =3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215883-8>