[PATCH V2] powerpc: Fail remap_4k_pfn() if PFN doesn't fit inside PTE

2014-07-10 Thread Madhusudanan Kandasamy
V2 : Rewritten to avoid helper function as suggested by Stephen Rothwell. remap_4k_pfn() silently truncates upper bits of input 4K PFN if it cannot be contained in PTE. This leads invalid memory mapping and could result in a system crash when the memory is accessed. This patch fails remap_4k_pfn()

Re: [PATCH V2] powerpc: Fail remap_4k_pfn() if PFN doesn't fit inside PTE

2014-07-10 Thread Brian W Hart
On Thu, Jul 10, 2014 at 02:12:19PM +0530, Madhusudanan Kandasamy wrote: V2 : Rewritten to avoid helper function as suggested by Stephen Rothwell. remap_4k_pfn() silently truncates upper bits of input 4K PFN if it cannot be contained in PTE. This leads invalid memory mapping and could result in