Files
linux/arch/powerpc/include/asm
Madhusudanan Kandasamy eeb03a6eaa powerpc: Fail remap_4k_pfn() if PFN doesn't fit inside PTE
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() and returns -EINVAL if the input 4K PFN cannot be contained in
PTE.

V3 : Added parentheses to protect 'pfn' and entire macro as suggested by Brian.
V2 : Rewritten to avoid helper function as suggested by Stephen Rothwell.

Signed-off-by: Madhusudanan Kandasamy <kmadhu@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2014-08-05 16:34:06 +10:00
..
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2014-04-18 14:20:41 +02:00
2012-03-28 18:30:02 +01:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2014-05-28 13:35:35 +10:00
2013-04-18 13:03:53 +10:00
2014-08-05 15:41:43 +10:00
2014-04-09 12:53:28 +10:00
2012-03-28 18:30:02 +01:00
2014-01-23 16:36:54 -08:00
2011-11-08 14:51:46 +11:00
2014-06-25 18:49:40 -05:00
2012-03-20 21:48:30 +08:00
2008-08-18 21:40:03 +02:00
2011-12-08 14:02:23 +11:00
2011-05-22 08:47:53 -04:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2014-07-28 14:10:23 +10:00
2010-05-05 09:11:10 -04:00
2014-07-28 14:10:22 +10:00
2014-07-28 14:10:23 +10:00
2011-03-31 11:26:23 -03:00
2010-10-26 16:52:08 -07:00
2011-03-31 11:26:23 -03:00
2014-05-28 13:30:12 +10:00
2009-12-09 17:10:37 +11:00
2014-07-28 14:10:22 +10:00
2014-04-07 10:33:12 +10:00
2013-11-06 14:13:49 +11:00
2013-11-26 12:12:28 +01:00
2012-09-17 16:31:51 +10:00
2011-03-31 11:26:23 -03:00
2014-06-24 12:43:15 +10:00
2014-07-11 16:06:08 +10:00
2011-03-31 11:26:23 -03:00
2014-02-17 11:19:37 +11:00
2013-10-30 16:02:28 +11:00