Skip to content

Commit 3d135f5

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: - allow use of ARMv8 arch timer in 32-bit VDSO - rename missed .fixup section - fix kbuild issue with stack protector GCC plugin * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 8961/2: Fix Kbuild issue caused by per-task stack protector GCC plugin ARM: 8958/1: rename missed uaccess .fixup section ARM: 8957/1: VDSO: Match ARMv8 timer in cntvct_functional()
2 parents fb33c65 + 8960452 commit 3d135f5

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

arch/arm/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,15 @@ endif
307307
ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y)
308308
prepare: stack_protector_prepare
309309
stack_protector_prepare: prepare0
310-
$(eval KBUILD_CFLAGS += \
310+
$(eval SSP_PLUGIN_CFLAGS := \
311311
-fplugin-arg-arm_ssp_per_task_plugin-tso=$(shell \
312312
awk '{if ($$2 == "THREAD_SZ_ORDER") print $$3;}'\
313313
include/generated/asm-offsets.h) \
314314
-fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \
315315
awk '{if ($$2 == "TI_STACK_CANARY") print $$3;}'\
316316
include/generated/asm-offsets.h))
317+
$(eval KBUILD_CFLAGS += $(SSP_PLUGIN_CFLAGS))
318+
$(eval GCC_PLUGINS_CFLAGS += $(SSP_PLUGIN_CFLAGS))
317319
endif
318320

319321
all: $(notdir $(KBUILD_IMAGE))

arch/arm/boot/compressed/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ clean-files += piggy_data lib1funcs.S ashldi3.S bswapsdi2.S \
101101
$(libfdt) $(libfdt_hdrs) hyp-stub.S
102102

103103
KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
104-
KBUILD_CFLAGS += $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
105104

106105
ifeq ($(CONFIG_FUNCTION_TRACER),y)
107106
ORIG_CFLAGS := $(KBUILD_CFLAGS)
@@ -117,7 +116,8 @@ CFLAGS_fdt_ro.o := $(nossp-flags-y)
117116
CFLAGS_fdt_rw.o := $(nossp-flags-y)
118117
CFLAGS_fdt_wip.o := $(nossp-flags-y)
119118

120-
ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj)
119+
ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin \
120+
-I$(obj) $(DISABLE_ARM_SSP_PER_TASK_PLUGIN)
121121
asflags-y := -DZIMAGE
122122

123123
# Supply kernel BSS size to the decompressor via a linker symbol.

arch/arm/kernel/vdso.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ static bool __init cntvct_functional(void)
9494
* this.
9595
*/
9696
np = of_find_compatible_node(NULL, NULL, "arm,armv7-timer");
97+
if (!np)
98+
np = of_find_compatible_node(NULL, NULL, "arm,armv8-timer");
9799
if (!np)
98100
goto out_put;
99101

arch/arm/lib/copy_from_user.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ENTRY(arm_copy_from_user)
118118

119119
ENDPROC(arm_copy_from_user)
120120

121-
.pushsection .fixup,"ax"
121+
.pushsection .text.fixup,"ax"
122122
.align 0
123123
copy_abort_preamble
124124
ldmfd sp!, {r1, r2, r3}

0 commit comments

Comments
 (0)