Re: [PATCH v2] mm/hotplug: invalid PFNs from pfn_to_online_page()

2019-01-21 Thread Michal Hocko
On Mon 21-01-19 15:04:35, Qian Cai wrote: > On an arm64 ThunderX2 server, the first kmemleak scan would crash [1] > with CONFIG_DEBUG_VM_PGFLAGS=y due to page_to_nid() found a pfn that is > not directly mapped (MEMBLOCK_NOMAP). Hence, the page->flags is > uninitialized. > > This is due to the

[PATCH v2] mm/hotplug: invalid PFNs from pfn_to_online_page()

2019-01-21 Thread Qian Cai
On an arm64 ThunderX2 server, the first kmemleak scan would crash [1] with CONFIG_DEBUG_VM_PGFLAGS=y due to page_to_nid() found a pfn that is not directly mapped (MEMBLOCK_NOMAP). Hence, the page->flags is uninitialized. This is due to the commit 9f1eb38e0e11 ("mm, kmemleak: little optimization