linux/arch/arm
Takashi Iwai 20a09c8b25 ARM: socfpga: Fix crash with CONFIG_FORTIRY_SOURCE
[ Upstream commit 187bea4726 ]

When CONFIG_FORTIFY_SOURCE is set, memcpy() checks the potential
buffer overflow and panics.  The code in sofcpga bootstrapping
contains the memcpy() calls are mistakenly translated as the shorter
size, hence it triggers a panic as if it were overflowing.

This patch changes the secondary_trampoline and *_end definitions
to arrays for avoiding the false-positive crash above.

Fixes: 9c4566a117 ("ARM: socfpga: Enable SMP for socfpga")
Suggested-by: Kees Cook <keescook@chromium.org>
Buglink: https://bugzilla.suse.com/show_bug.cgi?id=1192473
Link: https://lore.kernel.org/r/20211117193244.31162-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:04:47 +01:00
..
boot ARM: dts: bcm2711: Fix PCIe interrupts 2021-12-01 09:04:45 +01:00
common ARM: sharpsl_param: work around -Wstringop-overread warning 2021-10-05 15:44:56 +02:00
configs Driver core fixes for 5.15-rc6 2021-10-17 17:17:28 -10:00
crypto ARM: 9099/1: crypto: rename 'mod_init' & 'mod_exit' functions to be module-specific 2021-08-10 12:15:27 +01:00
include ARM: 9132/1: Fix __get_user_check failure with ARM KASAN images 2021-10-19 10:37:35 +01:00
kernel ARM: clang: Do not rely on lr register for stacktrace 2021-11-18 19:16:19 +01:00
lib ARM development updates for 5.15: 2021-09-09 13:25:49 -07:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: preload base address of controllers in tlb 2021-10-04 12:08:34 +02:00
mach-axxia
mach-bcm isystem: trim/fixup stdarg.h and other headers 2021-08-19 09:02:55 +09:00
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci
mach-digicolor
mach-dove ARM: dove: mark 'putc' as inline 2021-10-05 15:40:38 +02:00
mach-ep93xx
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: imx: register reset controller from a platform driver 2021-10-15 09:38:06 +08:00
mach-integrator
mach-iop32x
mach-ixp4xx ARM: SoC updates for 5.15 2021-09-01 15:19:43 -07:00
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: omap1: move omap15xx local bus handling to usb.c 2021-10-05 15:39:50 +02:00
mach-omap2 Driver core fixes for 5.15-rc6 2021-10-17 17:17:28 -10:00
mach-orion5x
mach-oxnas
mach-pxa ARM: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:39 +01:00
mach-qcom
mach-rda
mach-realtek
mach-realview
mach-rockchip
mach-rpc printk changes for 5.15 2021-09-01 18:41:13 -07:00
mach-s3c ARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc() 2021-11-18 19:16:46 +01:00
mach-s5pv210
mach-sa1100
mach-shmobile
mach-socfpga ARM: socfpga: Fix crash with CONFIG_FORTIRY_SOURCE 2021-12-01 09:04:47 +01:00
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tegra ARM: SoC drivers for 5.15 2021-09-01 15:25:28 -07:00
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-zynq
mm ARM: 9155/1: fix early early_iounmap() 2021-11-18 19:17:13 +01:00
net bpf, arm: Fix register clobbering in div/mod implementation 2021-09-29 16:04:50 +02:00
nwfpe
plat-omap
plat-orion
plat-pxa
plat-versatile
probes ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype 2021-10-19 10:39:50 +01:00
tools ARM development updates for 5.15: 2021-09-09 13:25:49 -07:00
vdso
vfp
xen
Kbuild
Kconfig kmap_local: don't assume kmap PTEs are linear arrays in memory 2021-11-25 09:48:43 +01:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile ARM: 9156/1: drop cc-option fallbacks for architecture selection 2021-11-18 19:17:13 +01:00