Skip to content

Commit ad0b40f

Browse files
committed
Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Just one fix for a -fstack-protector-strong problem from Kees Cook, and adding the new copy_file_range syscall" * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: ARM: wire up copy_file_range() syscall ARM: 8500/1: fix atags_to_fdt with stack-protector-strong
2 parents ec1cc55 + 03590cb commit ad0b40f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

arch/arm/boot/compressed/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ ORIG_CFLAGS := $(KBUILD_CFLAGS)
106106
KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS))
107107
endif
108108

109+
# -fstack-protector-strong triggers protection checks in this code,
110+
# but it is being used too early to link to meaningful stack_chk logic.
111+
nossp_flags := $(call cc-option, -fno-stack-protector)
112+
CFLAGS_atags_to_fdt.o := $(nossp_flags)
113+
CFLAGS_fdt.o := $(nossp_flags)
114+
CFLAGS_fdt_ro.o := $(nossp_flags)
115+
CFLAGS_fdt_rw.o := $(nossp_flags)
116+
CFLAGS_fdt_wip.o := $(nossp_flags)
117+
109118
ccflags-y := -fpic -mno-single-pic-base -fno-builtin -I$(obj)
110119
asflags-y := -DZIMAGE
111120

arch/arm/include/uapi/asm/unistd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@
417417
#define __NR_userfaultfd (__NR_SYSCALL_BASE+388)
418418
#define __NR_membarrier (__NR_SYSCALL_BASE+389)
419419
#define __NR_mlock2 (__NR_SYSCALL_BASE+390)
420+
#define __NR_copy_file_range (__NR_SYSCALL_BASE+391)
420421

421422
/*
422423
* The following SWIs are ARM private.

arch/arm/kernel/calls.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@
400400
CALL(sys_userfaultfd)
401401
CALL(sys_membarrier)
402402
CALL(sys_mlock2)
403+
CALL(sys_copy_file_range)
403404
#ifndef syscalls_counted
404405
.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
405406
#define syscalls_counted

0 commit comments

Comments
 (0)