Page MenuHomeFreeBSD

fdt: fix panic in fdt_slicer/geom due to recent geom changes
ClosedPublic

Authored by adrian on Apr 6 2025, 11:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 6, 10:18 PM
Unknown Object (File)
Tue, May 6, 4:37 PM
Unknown Object (File)
May 5 2025, 6:24 PM
Unknown Object (File)
Apr 29 2025, 11:43 AM
Unknown Object (File)
Apr 22 2025, 8:04 AM
Unknown Object (File)
Apr 21 2025, 10:54 PM
Unknown Object (File)
Apr 21 2025, 10:01 AM
Unknown Object (File)
Apr 15 2025, 5:34 PM
Subscribers

Details

Summary

A recent change in GEOM ordering (c11b701915116bf512f3d77dfdac7a867f51ca0a -
"geom: Push GEOM sysinit ordering to after devctl" changed the GEOM init
ordering to SI_ORDER_THIRD. However, the FDT slicer / GEOM flash
slice code needs the GEOM subsystem to be initialised before it
starts loading in flash slices from FDT, and will panic because
the mutex isn't initialised.

So bump this now to SI_ORDER_FOURTH, so it occurs after the GEOM
initialisation.

Diff Detail

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