[PATCH] powerpc/powernv/prd: Validate whether address to be mapped is part of system RAM
Jeremy Kerr
jk at ozlabs.org
Thu Oct 3 11:47:31 AEST 2019
Hi Vasant,
> Add check to validate whether requested page is part of system RAM
> or not before mmap() and error out if its not part of system RAM.
opal_prd_range_is_valid() will return false if the reserved memory range
does not have an ibm,prd-label property. If this you're getting invalid
memory mapped through the PRD interface, that means the device tree is
incorrectly describing those ranges.
Or am I missing something?
Cheers,
Jeremy
More information about the Linuxppc-dev
mailing list