Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Pasha Tatashin
On 8/28/18 7:25 AM, Michal Hocko wrote: > On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: >> Within show_valid_zones() the function test_pages_in_a_zone() should be >> called for online memory blocks only. Otherwise it might lead to the >> VM_BUG_ON due to uninitialized struct pages (when CONFI

Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Michal Hocko
[Fixup Pavel's email - the patch is here for your reference http://lkml.kernel.org/r/20180828090539.41491-1-zaslo...@linux.ibm.com] On Tue 28-08-18 13:25:43, Michal Hocko wrote: > On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: > > Within show_valid_zones() the function test_pages_in_a_zone() sh

Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Michal Hocko
On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: > Within show_valid_zones() the function test_pages_in_a_zone() should be > called for online memory blocks only. Otherwise it might lead to the > VM_BUG_ON due to uninitialized struct pages (when CONFIG_DEBUG_VM_PGFLAGS > kernel option is set): >