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)
Mon, Jan 6, 12:05 AM
Unknown Object (File)
Sun, Dec 15, 4:39 AM
Unknown Object (File)
Nov 3 2024, 12:33 AM
Unknown Object (File)
Oct 22 2024, 2:07 PM
Unknown Object (File)
Oct 16 2024, 4:58 AM
Unknown Object (File)
Oct 11 2024, 7:26 AM
Unknown Object (File)
Oct 11 2024, 7:10 AM
Unknown Object (File)
Oct 10 2024, 10:16 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