linux-stable/arch/arm
Fangrui Song aff69273af vdso: Improve cmd_vdso_check to check all dynamic relocations
The actual intention is that no dynamic relocation exists in the VDSO. For
this the VDSO build validates that the resulting .so file does not have any
relocations which are specified via $(ARCH_REL_TYPE_ABS) per architecture,
which is fragile as e.g. ARM64 lacks an entry for R_AARCH64_RELATIVE. Aside
of that ARCH_REL_TYPE_ABS is a misnomer as it checks for relative
relocations too.

However, some GNU ld ports produce unneeded R_*_NONE relocation entries. If
a port fails to determine the exact .rel[a].dyn size, the trailing zeros
become R_*_NONE relocations. E.g. ld's powerpc port recently fixed
https://sourceware.org/bugzilla/show_bug.cgi?id=29540). R_*_NONE are
generally a no-op in the dynamic loaders. So just ignore them.

Remove the ARCH_REL_TYPE_ABS defines and just validate that the resulting
.so file does not contain any R_* relocation entries except R_*_NONE.

Signed-off-by: Fangrui Song <maskray@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com> # for aarch64
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@arm.com> # for vDSO, aarch64
Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)
Link: https://lore.kernel.org/r/20230310190750.3323802-1-maskray@google.com
2023-03-21 21:15:34 +01:00
..
boot ARM: SoC fixes for 6.3, part 1 2023-02-27 10:09:40 -08:00
common
configs ARM: defconfigs for 6.3 2023-02-20 15:43:36 -08:00
crypto This update includes the following changes: 2023-02-21 18:10:50 -08:00
include TTY/Serial driver updates for 6.3-rc1 2023-02-24 12:17:14 -08:00
kernel - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
lib
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91
mach-axxia
mach-bcm ARM: BCM63xx: remove useless goto statement 2023-01-10 13:46:59 -08:00
mach-berlin
mach-clps711x
mach-davinci Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-digicolor
mach-dove ARM: orion: remove unused board files 2023-01-10 23:10:27 +01:00
mach-ep93xx ARM: SoC updates for 6.3 2023-02-20 15:36:37 -08:00
mach-exynos
mach-footbridge ARM: unused boardfile removal for 6.3 2023-02-20 15:28:57 -08:00
mach-gemini arch/idle: Change arch_cpu_idle() behavior: always exit with IRQs disabled 2023-01-13 11:48:15 +01:00
mach-highbank
mach-hisi
mach-hpe
mach-imx Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: mmp: remove old PM support 2023-01-16 09:26:05 +01:00
mach-moxart
mach-mstar
mach-mv78xx0 ARM: orion: remove unused board files 2023-01-10 23:10:27 +01:00
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: SoC updates for 6.3 2023-02-20 15:36:37 -08:00
mach-omap2 Scheduler updates in this cycle are: 2023-02-20 17:41:08 -08:00
mach-orion5x ARM: orion5x: remove dsa_chip_data references 2023-01-10 23:10:27 +01:00
mach-oxnas
mach-pxa ARM: pxa: restore mfp-pxa320.h 2023-02-08 22:10:39 +01:00
mach-qcom firmware: qcom_scm: Move qcom_scm.h to include/linux/firmware/qcom/ 2023-02-08 19:15:16 -08:00
mach-rda ARM: 9285/1: remove meaningless arch/arm/mach-rda/Makefile 2023-01-12 14:30:16 +00:00
mach-realtek
mach-rockchip
mach-rpc
mach-s3c Kbuild updates for v6.3 2023-02-26 11:53:25 -08:00
mach-s5pv210
mach-sa1100 ARM: sa1100: remove irda references 2023-01-16 09:25:48 +01:00
mach-shmobile
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunplus
mach-sunxi
mach-tegra power: remove pda_power supply driver 2023-02-01 17:23:38 +01:00
mach-uniphier
mach-ux500
mach-versatile
mach-vt8500
mach-zynq ARM: zynq: Fix refcount leak in zynq_early_slcr_init 2023-01-05 10:07:43 +01:00
mm IOMMU Updates for Linux v6.3: 2023-02-24 13:40:13 -08:00
net
nwfpe
plat-orion ARM: orion5x: remove dsa_chip_data references 2023-01-10 23:10:27 +01:00
probes
tools
vdso vdso: Improve cmd_vdso_check to check all dynamic relocations 2023-03-21 21:15:34 +01:00
vfp ARM: 9283/1: permit non-nested kernel mode NEON in softirq context 2023-01-11 16:21:21 +00:00
xen
Kbuild
Kconfig ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00
Makefile ARM udpates for 6.3-rc1 2023-02-21 15:21:29 -08:00