Page MenuHomeFreeBSD

powerpc64: Avoid overwriting initrd area
ClosedPublic

Authored by breno.leitao_gmail.com on May 29 2018, 9:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 8, 6:05 PM
Unknown Object (File)
Tue, Aug 5, 11:51 PM
Unknown Object (File)
Tue, Jul 22, 7:28 AM
Unknown Object (File)
Tue, Jul 15, 3:30 AM
Unknown Object (File)
Jul 7 2025, 5:42 AM
Unknown Object (File)
Jun 26 2025, 5:01 PM
Unknown Object (File)
Jun 25 2025, 1:54 PM
Unknown Object (File)
Jun 24 2025, 4:31 PM
Subscribers

Details

Summary

Currently kexec loads an initrd file into the main memory but does not
mark that region as reserved, thus the area is not protected.

If any initrd/md file is loaded from kexec/petitboot, the region might become
corarupted/overwritten since FreeBSD does not know the region is 'reserved'.

This patch simply adds the initrd area as a reserved memory region.

Test Plan
  • Tested on both pseries and POWER9

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16902
Build 16779: arc lint + arc unit