projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa55b7d
)
ARM: rockchip: Use memcpy_toio instead of memcpy on smp bring-up
author
Ivan T. Ivanov
<iivanov@suse.de>
Tue, 16 Nov 2021 08:46:16 +0000
(10:46 +0200)
committer
Heiko Stuebner
<heiko@sntech.de>
Sun, 21 Nov 2021 17:24:31 +0000
(18:24 +0100)
This fixes a potential kernel panic on memcpy when FORTIFY_SOURCE
is enabled. Because memory is iomem use appropriate function for
accessing it.
Signed-off-by: Ivan T. Ivanov <iivanov@suse.de>
Link:
https://lore.kernel.org/r/20211116084616.24811-1-iivanov@suse.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/platsmp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/platsmp.c
b/arch/arm/mach-rockchip/platsmp.c
index d60856898d97acaa51912e6097a5d968200b45bd..5ec58d004b7de85793fbbe9a01febf7dd0e399f6 100644
(file)
--- a/
arch/arm/mach-rockchip/platsmp.c
+++ b/
arch/arm/mach-rockchip/platsmp.c
@@
-189,7
+189,7
@@
static int __init rockchip_smp_prepare_sram(struct device_node *node)
rockchip_boot_fn = __pa_symbol(secondary_startup);
/* copy the trampoline to sram, that runs during startup of the core */
- memcpy(sram_base_addr, &rockchip_secondary_trampoline, trampoline_sz);
+ memcpy
_toio
(sram_base_addr, &rockchip_secondary_trampoline, trampoline_sz);
flush_cache_all();
outer_clean_range(0, trampoline_sz);