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)
Tue, Apr 21, 8:22 AM
Unknown Object (File)
Tue, Apr 21, 4:57 AM
Unknown Object (File)
Mon, Apr 20, 8:08 PM
Unknown Object (File)
Mon, Apr 20, 8:05 PM
Unknown Object (File)
Sun, Apr 19, 8:36 PM
Unknown Object (File)
Sun, Apr 19, 2:46 AM
Unknown Object (File)
Sat, Apr 18, 9:17 PM
Unknown Object (File)
Sat, Apr 18, 9:13 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