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)
Wed, Jun 11, 7:08 PM
Unknown Object (File)
Tue, Jun 3, 8:22 AM
Unknown Object (File)
May 18 2025, 8:45 PM
Unknown Object (File)
May 7 2025, 6:54 PM
Unknown Object (File)
Apr 18 2025, 10:59 AM
Unknown Object (File)
Apr 17 2025, 5:45 PM
Unknown Object (File)
Apr 14 2025, 4:31 AM
Unknown Object (File)
Apr 9 2025, 7:00 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable