You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix min_low_pfn counting. For ARCv3 explicit use of __pa() modifies address
which cause to bad min_low_pfn value. For configurations where
CONFIG_LINUX_RAM_BASE is not equal to PAGE_OFFSET we should consider
CONFIG_LINUX_RAM_BASE as physical address.
This patch fixes min_low_pfn value counting. This variable is used to check
virt address by virt_addr_valid() macro to determine that the address resides
in the kernel "direct mapping area".
Without this patch some unexpected kernel crashes can be observed, for
example in __check_object_size() function because of incorrect
check of virt_addr_valid() macro, virt_to_page() macro can be called with
virt address from VMALLOC area and return bad pointer to page struct object.
This change is actual for ARCv3 not affect behavior of ARCv2.
Signed-off-by: Pavel Kozlov <pavel.kozlov@synopsys.com>
0 commit comments