summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorMadhusudanan Kandasamy <kmadhu@linux.vnet.ibm.com>2014-07-10 20:45:13 +0530
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-05 16:34:06 +1000
commiteeb03a6eaa02e9171f91e385c52a69b159fc6117 (patch)
tree8325d4ab23b055571595fb2b1434d7378201dfca /tools/perf/scripts/python/sched-migration.py
parentdb97efffb80652f7f879bc1d4837cbc84dc32557 (diff)
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>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions