[PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread Andrew Banman
test_pages_in_a_zone does not account for the possibility of missing sections in the given pfn range. pfn_valid_within always returns 1 when CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing sections to pass the test, leading to a kernel oops. Wrap an additional pfn loop with

Re: [PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread andrew banman
On Fri, Dec 11, 2015 at 04:21:03PM -0600, Andrew Banman wrote: > test_pages_in_a_zone does not account for the possibility of missing > sections in the given pfn range. pfn_valid_within always returns 1 when > CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing > sections to pass

[PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread Andrew Banman
test_pages_in_a_zone does not account for the possibility of missing sections in the given pfn range. pfn_valid_within always returns 1 when CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing sections to pass the test, leading to a kernel oops. Wrap an additional pfn loop with

Re: [PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread andrew banman
On Fri, Dec 11, 2015 at 04:21:03PM -0600, Andrew Banman wrote: > test_pages_in_a_zone does not account for the possibility of missing > sections in the given pfn range. pfn_valid_within always returns 1 when > CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing > sections to pass

[PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread Andrew Banman
test_pages_in_a_zone does not account for the possibility of missing sections in the given pfn range. pfn_valid_within always returns 1 when CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing sections to pass the test, leading to a kernel oops. Wrap an additional pfn loop with

[PATCH] drivers: memory: check for missing sections in test_pages_in_a_zone

2015-12-11 Thread Andrew Banman
test_pages_in_a_zone does not account for the possibility of missing sections in the given pfn range. pfn_valid_within always returns 1 when CONFIG_HOLES_IN_ZONE is not set, allowing invalid pfns from missing sections to pass the test, leading to a kernel oops. Wrap an additional pfn loop with