[PATCH] arm64: kasan: avoid pfn_to_nid() before page array is initialized

Catalin Marinas catalin.marinas at arm.com
Tue Apr 17 08:17:58 PDT 2018


On Mon, Apr 16, 2018 at 02:44:41PM +0100, Mark Rutland wrote:
> In arm64's kasan_init(), we use pfn_to_nid() to find the NUMA node a
> span of memory is in, hoping to allocate shadow from the same NUMA node.
> However, at this point, the page array has not been initialized, and
> thus this is bogus.

Queued for 4.17-rc2. Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list