HomeFreeBSD

powerpc64: Avoid overwriting initrd area

Description

powerpc64: Avoid overwriting initrd area

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.

Approved by: jhibbits
Differential Revision: https://reviews.freebsd.org/D15610

Details

Committed
leitaoJun 1 2018, 12:43 PM
Differential Revision
D15610: powerpc64: Avoid overwriting initrd area
Parents
rS334484: Implement the __sg_alloc_table_from_pages() function based on the existing
Branches
Unknown
Tags
Unknown