HomeFreeBSD

Fix panic when using BOOTP to resolve root path.

Description

Fix panic when using BOOTP to resolve root path.

When loading a direct-boot kernel, a temporary route is being installed,
the NFS handle is acquired, and the temporary route is removed again.

This was being done inside a net epoch, but since the krpc code is written
using blocking APIs, we can't actually do that, because sleeping is not
allowed during a net epoch.

Exit and reenter the epoch so we are only in the epoch when doing the
routing table manipulation.

Fixes panic when booting my RB800 over NFS (where the kernel is loaded
using RouterBOOT directly.)

Reviewed by: melifaro
Sponsored by: Tag1 Consulting, Inc.
Differential Revision: https://reviews.freebsd.org/D29464

Details

Provenance
bdragonAuthored on Mar 28 2021, 12:18 AM
Reviewer
melifaro
Differential Revision
D29464: Fix panic when using BOOTP to resolve root path.
Parents
rGb218441ac074: gvinum: add deprecation notice
Branches
Unknown
Tags
Unknown