[Bug 297233] nfs: panic: general protection fault

[email protected]
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297233

--- Comment #16 from [email protected] ---
A commit in branch stable/14 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=bdea6e971844ac2e0a3dfab47fc6e678a11e5d19

commit bdea6e971844ac2e0a3dfab47fc6e678a11e5d19
Author:     Rick Macklem <[email protected]>
AuthorDate: 2026-08-04 15:55:24 +0000
Commit:     Rick Macklem <[email protected]>
CommitDate: 2026-08-06 19:52:36 +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

    (cherry picked from commit 8f20299b473af6132e0f146d7f634640993aeb81)

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.