Skip to content

Commit 398e67e

Browse files
webgeek1234thierryreding
authored andcommitted
ARM: tegra: Use I/O memcpy to write to IRAM
Kasan crashes the kernel trying to check boundaries when using the normal memcpy. Signed-off-by: Aaron Kling <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thierry Reding <[email protected]>
1 parent 19272b3 commit 398e67e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-tegra/reset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void __init tegra_cpu_reset_handler_enable(void)
6363
BUG_ON(is_enabled);
6464
BUG_ON(tegra_cpu_reset_handler_size > TEGRA_IRAM_RESET_HANDLER_SIZE);
6565

66-
memcpy(iram_base, (void *)__tegra_cpu_reset_handler_start,
66+
memcpy_toio(iram_base, (void *)__tegra_cpu_reset_handler_start,
6767
tegra_cpu_reset_handler_size);
6868

6969
err = call_firmware_op(set_cpu_boot_addr, 0, reset_address);

0 commit comments

Comments
 (0)