linux-stable/arch/powerpc/platforms
Michael Ellerman 0d897255e7 powerpc/85xx: Fix virt_to_phys() off-by-one in smp_85xx_start_cpu()
In smp_85xx_start_cpu() we are passed an address but we're unsure if
it's a real or virtual address, so there's a check to determine that.

The check has an off-by-one in that it tests if the address is greater
than high_memory, but high_memory is the first address of high memory,
so the check should be greater-or-equal.

It seems this has never been a problem in practice, but it also triggers
the DEBUG_VIRTUAL checks in __pa() which we would like to avoid. We can
fix both issues by converting high_memory - 1 to a physical address and
testing against that.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220406145802.538416-3-mpe@ellerman.id.au
2022-04-27 21:57:36 +10:00
..
4xx powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
8xx powerpc: 8xx: fix a return value error in mpc8xx_pic_init 2022-03-09 21:46:55 +11:00
40x powerpc/4xx: Complete removal of MSI support 2021-12-09 11:52:20 +01:00
44x powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
52xx powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
82xx powerpc: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:41 +01:00
83xx powerpc/83xx/mpc8349emitx: Get rid of of_node assignment 2022-04-21 08:42:47 +10:00
85xx powerpc/85xx: Fix virt_to_phys() off-by-one in smp_85xx_start_cpu() 2022-04-27 21:57:36 +10:00
86xx powerpc/mpc86xx_hpcn: Remove obsolete statement 2022-02-07 21:03:09 +11:00
512x powerpc/512x: Add __init attribute to eligible functions 2021-12-23 22:33:19 +11:00
amigaone powerpc/amigaone: Make amigaone_discover_phbs() static 2021-02-11 23:28:51 +11:00
book3s powerpc/vas: Map paste address only if window is active 2022-03-08 00:04:55 +11:00
cell powerpc: declare unmodified attribute_group usages const 2022-03-08 22:15:32 +11:00
chrp powerpc/chrp: Add __init attribute to eligible functions 2021-12-23 22:33:13 +11:00
embedded6xx powerpc/embedded6xx: Add __init attribute to eligible functions 2021-12-23 22:33:17 +11:00
maple powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
microwatt powerpc/microwatt: add POWER9_CPU, clear PPC_64S_HASH_MMU 2021-12-09 22:41:16 +11:00
pasemi bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
powermac powerpc/machdep: Move sys_ctrler_t definition into pmac_feature.h 2022-02-07 21:02:20 +11:00
powernv powerpc/fadump: print start of preserved area 2022-04-26 22:38:19 +10:00
ps3 powerpc/ps3: remove unneeded semicolons 2022-03-09 14:26:35 +11:00
pseries powerpc/fadump: print start of preserved area 2022-04-26 22:38:19 +10:00
fsl_uli1575.c
Kconfig powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
Kconfig.cputype powerpc/64e: Tie PPC_BOOK3E_64 to PPC_FSL_BOOK3E 2022-03-08 22:07:41 +11:00
Makefile powerpc: Add Microwatt platform 2021-06-21 21:15:26 +10:00