+3
−3
Loading
The commit fcf8dda8 ("arm64: pageattr: Explicitly bail out when changing permissions for vmalloc_huge mappings") made permission update for partial range more robust. But the linear mapping permission update still assumes update the whole range by iterating from the first page all the way to the last page of the area. Make it more robust by updating the linear mapping permission from the page mapped by start address, and update the number of numpages. Reviewed-by:Ryan Roberts <ryan.roberts@arm.com> Reviewed-by:
Dev Jain <dev.jain@arm.com> Signed-off-by:
Yang Shi <yang@os.amperecomputing.com> Signed-off-by:
Catalin Marinas <catalin.marinas@arm.com>