Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-27 Thread Russ Anderson
On Mon, Aug 26, 2013 at 02:49:59PM -0700, Andrew Morton wrote: > On Fri, 23 Aug 2013 11:23:17 -0500 Russ Anderson wrote: > > > "cat /sys/devices/system/memory/memory*/removable" crashed the system. > > > > The problem is that show_mem_removable() is passing a > > bad pfn to

Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-27 Thread Russ Anderson
On Mon, Aug 26, 2013 at 02:49:59PM -0700, Andrew Morton wrote: On Fri, 23 Aug 2013 11:23:17 -0500 Russ Anderson r...@sgi.com wrote: cat /sys/devices/system/memory/memory*/removable crashed the system. The problem is that show_mem_removable() is passing a bad pfn to

Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-26 Thread Yasuaki Ishimatsu
(2013/08/24 1:23), Russ Anderson wrote: "cat /sys/devices/system/memory/memory*/removable" crashed the system. The problem is that show_mem_removable() is passing a bad pfn to is_mem_section_removable(), which causes if (!node_online(page_to_nid(page))) to blow up. Why is it passing in a bad

Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-26 Thread Andrew Morton
On Fri, 23 Aug 2013 11:23:17 -0500 Russ Anderson wrote: > "cat /sys/devices/system/memory/memory*/removable" crashed the system. > > The problem is that show_mem_removable() is passing a > bad pfn to is_mem_section_removable(), which causes > if (!node_online(page_to_nid(page))) to blow up. >

Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-26 Thread Andrew Morton
On Fri, 23 Aug 2013 11:23:17 -0500 Russ Anderson r...@sgi.com wrote: cat /sys/devices/system/memory/memory*/removable crashed the system. The problem is that show_mem_removable() is passing a bad pfn to is_mem_section_removable(), which causes if (!node_online(page_to_nid(page))) to blow

Re: [PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-26 Thread Yasuaki Ishimatsu
(2013/08/24 1:23), Russ Anderson wrote: cat /sys/devices/system/memory/memory*/removable crashed the system. The problem is that show_mem_removable() is passing a bad pfn to is_mem_section_removable(), which causes if (!node_online(page_to_nid(page))) to blow up. Why is it passing in a bad pfn?

[PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-23 Thread Russ Anderson
"cat /sys/devices/system/memory/memory*/removable" crashed the system. The problem is that show_mem_removable() is passing a bad pfn to is_mem_section_removable(), which causes if (!node_online(page_to_nid(page))) to blow up. Why is it passing in a bad pfn? show_mem_removable() will loop

[PATCH v2] [BUGFIX] drivers/base: fix show_mem_removable to handle missing sections

2013-08-23 Thread Russ Anderson
cat /sys/devices/system/memory/memory*/removable crashed the system. The problem is that show_mem_removable() is passing a bad pfn to is_mem_section_removable(), which causes if (!node_online(page_to_nid(page))) to blow up. Why is it passing in a bad pfn? show_mem_removable() will loop