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
F163832087: D49692.id153227.diff
Sun, Jul 26, 11:49 AM
Unknown Object (File)
Sat, Jul 25, 12:45 AM
Unknown Object (File)
Thu, Jul 23, 8:17 AM
Unknown Object (File)
Thu, Jul 23, 5:20 AM
Unknown Object (File)
Wed, Jul 22, 6:28 PM
Unknown Object (File)
Tue, Jul 21, 10:36 AM
Unknown Object (File)
Tue, Jul 21, 8:49 AM
Unknown Object (File)
Sat, Jul 11, 7:36 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