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
F166521434: D37008.id111827.diff
Fri, Aug 14, 12:01 AM
F166494201: D37008.id111819.diff
Thu, Aug 13, 8:27 PM
F166493768: D37008.id111827.diff
Thu, Aug 13, 8:25 PM
F166493682: D37008.diff
Thu, Aug 13, 8:25 PM
Unknown Object (File)
Sun, Aug 9, 2:18 PM
Unknown Object (File)
Thu, Aug 6, 6:43 PM
Unknown Object (File)
Wed, Aug 5, 9:04 PM
Unknown Object (File)
Mon, Aug 3, 11:17 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