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
F169962808: D15610.diff
Thu, Sep 3, 3:02 AM
F169863162: D15610.diff
Wed, Sep 2, 7:47 PM
Unknown Object (File)
Mon, Aug 24, 4:51 AM
Unknown Object (File)
Wed, Aug 19, 3:31 PM
Unknown Object (File)
Wed, Aug 19, 1:34 PM
Unknown Object (File)
Tue, Aug 18, 8:34 PM
Unknown Object (File)
Tue, Aug 18, 4:34 PM
Unknown Object (File)
Mon, Aug 17, 1:30 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