Page MenuHomeFreeBSD

powerpc64: Avoid overwriting initrd area

Authored by on May 29 2018, 9:17 PM.



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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhibbits accepted this revision.May 31 2018, 4:46 AM

Looks good

This revision is now accepted and ready to land.May 31 2018, 4:46 AM
This revision was automatically updated to reflect the committed changes.