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, Apr 17, 9:29 AM
Unknown Object (File)
Sun, Apr 14, 12:16 AM
Unknown Object (File)
Dec 20 2023, 6:38 AM
Unknown Object (File)
Dec 11 2023, 11:06 PM
Unknown Object (File)
Dec 11 2023, 12:24 AM
Unknown Object (File)
Oct 28 2023, 9:28 PM
Unknown Object (File)
Oct 10 2023, 8:02 PM
Unknown Object (File)
Sep 6 2023, 4:34 AM
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