Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-27 Thread Kani, Toshimitsu
On Fri, 2017-01-27 at 08:48 +0100, gre...@linuxfoundation.org wrote: > On Thu, Jan 26, 2017 at 10:26:23PM +, Kani, Toshimitsu wrote: > > On Thu, 2017-01-26 at 13:52 -0800, Andrew Morton wrote: > > > On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani > > > > > > wrote: > > > > > > > Reading a sysfs

Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread gre...@linuxfoundation.org
On Thu, Jan 26, 2017 at 10:26:23PM +, Kani, Toshimitsu wrote: > On Thu, 2017-01-26 at 13:52 -0800, Andrew Morton wrote: > > On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani > > wrote: > > > > > Reading a sysfs memoryN/valid_zones file leads to the following > > > oops when the first page of a ra

Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread Kani, Toshimitsu
On Thu, 2017-01-26 at 13:52 -0800, Andrew Morton wrote: > On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani > wrote: > > > Reading a sysfs memoryN/valid_zones file leads to the following > > oops when the first page of a range is not backed by struct page. > > show_valid_zones() assumes that 'start_p

Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread Andrew Morton
On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani wrote: > Reading a sysfs memoryN/valid_zones file leads to the following > oops when the first page of a range is not backed by struct page. > show_valid_zones() assumes that 'start_pfn' is always valid for > page_zone(). > > BUG: unable to handle k

[PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread Toshi Kani
Reading a sysfs memoryN/valid_zones file leads to the following oops when the first page of a range is not backed by struct page. show_valid_zones() assumes that 'start_pfn' is always valid for page_zone(). BUG: unable to handle kernel paging request at ea017a00 IP: show_valid_zones+0x6f