RE: [PATCH 2/2] mm: Add a bounds check in devm_memremap_pages()

2019-09-10 Thread Alastair D'Silva
Gunthorpe ; Logan Gunthorpe ; Ira > Weiny ; linux...@kvack.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH 2/2] mm: Add a bounds check in > devm_memremap_pages() > > On 10.09.19 04:52, Alastair D'Silva wrote: > > From: Alastair D'Silva > > >

Re: [PATCH 2/2] mm: Add a bounds check in devm_memremap_pages()

2019-09-10 Thread David Hildenbrand
On 10.09.19 04:52, Alastair D'Silva wrote: > From: Alastair D'Silva > > The call to check_hotplug_memory_addressable() validates that the memory > is fully addressable. > > Without this call, it is possible that we may remap pages that is > not physically addressable, resulting in bogus section

[PATCH 2/2] mm: Add a bounds check in devm_memremap_pages()

2019-09-09 Thread Alastair D'Silva
From: Alastair D'Silva The call to check_hotplug_memory_addressable() validates that the memory is fully addressable. Without this call, it is possible that we may remap pages that is not physically addressable, resulting in bogus section numbers being returned from __section_nr().