[Bug 260176] nfsrvd_verify() passes sfp=NULL to nfsv4_loadattr(), which can crash

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Dec 2021 01:21:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260176

Rick Macklem <rmacklem@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |Open
           Assignee|bugs@FreeBSD.org            |rmacklem@FreeBSD.org

--- Comment #1 from Rick Macklem <rmacklem@FreeBSD.org> ---
Created attachment 229867
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229867&action=edit
Just reply not same for verify of file system stats attributes

To correctly verify file system stats like FILESFREE is
somewhat involved and, since no crashes are being reported,
not being done by extant NFSv4 clients.

Also, I do not see how file system stats that change constantly
could be effectively used by VERIFY/NVERIFY.

As such, this patch changes the code to just return NFSERR_NOTSAME
for them.  If a case where the VERIFY needs to work for any of
these attributes, a patch for that could be created.

This should avoid the crashes.

Maybe the reporter can confirm that it fixes the problem for him?

-- 
You are receiving this mail because:
You are the assignee for the bug.