Page MenuHomeFreeBSD

Fix nfscl_getmyip() so that it does not cause a crash post commit efe58855f3ea
ClosedPublic

Authored by rmacklem on Oct 14 2022, 11:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 8:33 AM
Unknown Object (File)
Dec 12 2023, 2:08 AM
Unknown Object (File)
Sep 6 2023, 5:16 AM
Unknown Object (File)
Sep 4 2023, 2:08 PM
Unknown Object (File)
Aug 14 2023, 9:34 AM
Unknown Object (File)
Feb 17 2023, 4:32 PM
Unknown Object (File)
Jan 8 2023, 4:31 PM
Unknown Object (File)
Jan 7 2023, 4:32 PM
Subscribers

Details

Summary

Commit efe58855f3ea modifies IN_LOOPBACK() so that it uses a VNET
variable. Without this patch, nfscl_getmyip() uses IN_LOOPBACK()
when the VNET is not set and crashes the system.

This patch re-organizes nfscl_getmyip() so that IN_LOOPBACK()
is before the CURVENT_RESTORE() macro, to avoid the crashes.

Test Plan

Tested by doing a NFSv4.0 mount and seeing it did
not crash the system.

Diff Detail

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