Re: [PATCH 1/5] mm: Trigger bug on if a section is not found in __section_nr

2019-06-17 Thread Mike Rapoport
On Mon, Jun 17, 2019 at 02:36:27PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > If a memory section comes in where the physical address is greater than > that which is managed by the kernel, this function would not trigger the > bug and instead return a bogus section number. > >

[PATCH 1/5] mm: Trigger bug on if a section is not found in __section_nr

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva If a memory section comes in where the physical address is greater than that which is managed by the kernel, this function would not trigger the bug and instead return a bogus section number. This patch tracks whether the section was actually found, and triggers the bug