[Bug 297233] nfs: panic: general protection fault

[email protected] Tue, 04 Aug 2026 15:57:39 +0000
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D297233

--- Comment #13 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3D8f20299b473af6132e0f146d7f6346409=
93aeb81

commit 8f20299b473af6132e0f146d7f634640993aeb81
Author:     Rick Macklem <[email protected]>
AuthorDate: 2026-08-04 15:55:24 +0000
Commit:     Rick Macklem <[email protected]>
CommitDate: 2026-08-04 15:55:24 +0000

    nfs_commonkrpc.c: Get rid of NFSv4.0 delegation cruft

    Delegations in NFSv4.0 never worked well and, since
    the NFSv4.0 protocol is now deprecated, use of delegations
    for NFSv4.0 is disabled as far as the client can do so.

    It turns out that some Illumos NFSv4.0 server issues
    delegations anyhow (even when the callback path is
    specified as 0.0.0.0) and this can cause use after free
    problems.

    This patch deleted some cruft that did an nfsrpc_openrpc()
    call recursively when an NFSv4.0 server failed to issue
    a delegation when it had previously done so.
    This code was only meant to be an optimization and
    would have been rarely exercised.  Since this recursive
    call of nfsrpc_openrpc() is in some of the backtraces
    in the bugzilla PR, getting rid of the cruft makes sense.

    It is not known if this helps w.r.t. the use after free
    problems at this time.

    PR:     297233
    MFC after:      3 days

 sys/fs/nfsclient/nfs_clrpcops.c | 27 ---------------------------
 1 file changed, 27 deletions(-)

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