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, Mar 26, 8:43 PM
Unknown Object (File)
Tue, Mar 11, 11:41 AM
Unknown Object (File)
Feb 10 2025, 9:27 AM
Unknown Object (File)
Feb 9 2025, 2:55 PM
Unknown Object (File)
Jan 26 2025, 6:37 AM
Unknown Object (File)
Jan 24 2025, 11:02 PM
Unknown Object (File)
Jan 6 2025, 12:05 AM
Unknown Object (File)
Dec 15 2024, 4:39 AM
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