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
F153478055: D15610.id43112.diff
Tue, Apr 21, 9:35 AM
F153384196: D15610.id43230.diff
Mon, Apr 20, 8:31 PM
F153370734: D15610.diff
Mon, Apr 20, 6:40 PM
Unknown Object (File)
Wed, Apr 15, 1:38 AM
Unknown Object (File)
Wed, Apr 1, 4:18 AM
Unknown Object (File)
Fri, Mar 27, 5:23 AM
Unknown Object (File)
Thu, Mar 26, 9:41 PM
Unknown Object (File)
Thu, Mar 26, 1:13 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