Page MenuHomeFreeBSD

Fix a panic that occurs when vrele() is called with a NULL ni_dvp
ClosedPublic

Authored by rmacklem on Jan 13 2023, 12:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 7:55 AM
Unknown Object (File)
Tue, Jun 9, 8:46 PM
Unknown Object (File)
May 1 2026, 1:32 AM
Unknown Object (File)
Apr 30 2026, 4:27 PM
Unknown Object (File)
Apr 27 2026, 7:13 PM
Unknown Object (File)
Apr 21 2026, 8:22 AM
Unknown Object (File)
Apr 21 2026, 4:57 AM
Unknown Object (File)
Apr 20 2026, 8:08 PM
Subscribers

Details

Summary

Commit 65127e982b94 removed a check for ni_startdir != NULL.
This allowed the vrele(ndp->ni_dvp) to be called with
a NULL argument.

This patch adds a new boolean argument to nfsvno_open()
that can be checked instead of ni_startdir, since mjg@ requested
that ni_startdir not be used. (Discussed in PR#268828.)

Test Plan

Tested by the reporter of PR#268828.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable