Re: [PATCH] mm: idle-page: fix oops because end_pfn is larger than max_pfn

2019-06-18 Thread Vladimir Davydov
On Tue, Jun 18, 2019 at 12:45:02PM -0700, Andrew Morton wrote: > On Tue, 18 Jun 2019 13:43:52 +0100 Colin King > wrote: > > > From: Colin Ian King > > > > Currently the calcuation of end_pfn can round up the pfn number to > > more than the actual maximum number of pfns, causing an Oops. Fix >

Re: [PATCH] mm: idle-page: fix oops because end_pfn is larger than max_pfn

2019-06-18 Thread Andrew Morton
On Tue, 18 Jun 2019 13:43:52 +0100 Colin King wrote: > From: Colin Ian King > > Currently the calcuation of end_pfn can round up the pfn number to > more than the actual maximum number of pfns, causing an Oops. Fix > this by ensuring end_pfn is never more than max_pfn. > > This can be easily t

[PATCH] mm: idle-page: fix oops because end_pfn is larger than max_pfn

2019-06-18 Thread Colin King
From: Colin Ian King Currently the calcuation of end_pfn can round up the pfn number to more than the actual maximum number of pfns, causing an Oops. Fix this by ensuring end_pfn is never more than max_pfn. This can be easily triggered when on systems where the end_pfn gets rounded up to more th