[Bug 278043] Diskless nfs root BOOTP/DHCP Broken

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 Mar 2024 05:50:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278043

            Bug ID: 278043
           Summary: Diskless nfs root BOOTP/DHCP Broken
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: richard@annexi-strayline.com

Commit 713264f6b8bc5f927dd52cf8ffcccfa397034fec (March 6 2023) has potentially
broken BOOTP/DHCP functionality for nfsroot diskless start-up.

This commit adds a check to the end of netinet/in_pcb.c:in_pcbladdr that checks
for a source address equivalent to INADDR_ANY.

Unfortunately as part of the diskless BOOTP/DHCP process (nfs/bootp_subr.c et
al), the interface's address is (effectively) set to INADDR_ANY, causing this
check to fail, and therefore the DHCP search and the rest of the diskless nfs
root process to fail as well.

Tested/discovered and analyzed on ARM64/RPI4, 14.0-RELEASE.

Not yet verified for other platforms.

-- 
You are receiving this mail because:
You are the assignee for the bug.