linux_dsm_epyc7002/arch/arm/kernel
Will Deacon 42309ab450 ARM: 8087/1: ptrace: reload syscall number after secure_computing() check
On the syscall tracing path, we call out to secure_computing() to allow
seccomp to check the syscall number being attempted. As part of this, a
SIGTRAP may be sent to the tracer and the syscall could be re-written by
a subsequent SET_SYSCALL ptrace request. Unfortunately, this new syscall
is ignored by the current code unless TIF_SYSCALL_TRACE is also set on
the current thread.

This patch slightly reworks the enter path of the syscall tracing code
so that we always reload the syscall number from
current_thread_info()->syscall after the potential ptrace traps.

Acked-by: Kees Cook <keescook@chromium.org>
Tested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-06-29 10:29:35 +01:00
..
.gitignore
arch_timer.c
armksyms.c
arthur.c
asm-offsets.c
atags_compat.c
atags_parse.c
atags_proc.c
atags.h
bios32.c
calls.S
cpuidle.c
crash_dump.c
debug.S
devtree.c
dma-isa.c
dma.c
early_printk.c
elf.c
entry-armv.S
entry-common.S
entry-header.S
entry-v7m.S
etm.c
fiq.c
fiqasm.S
ftrace.c
head-common.S
head-nommu.S
head.S
hibernate.c
hw_breakpoint.c
hyp-stub.S
insn.c
insn.h
io.c
irq.c
isa.c arm: convert use of typedef ctl_table to struct ctl_table 2014-06-06 16:08:15 -07:00
iwmmxt.S
jump_label.c
kgdb.c
kprobes-arm.c
kprobes-common.c
kprobes-test-arm.c
kprobes-test-thumb.c
kprobes-test.c
kprobes-test.h
kprobes-thumb.c
kprobes.c
kprobes.h
machine_kexec.c
Makefile
module.c
opcodes.c
patch.c
patch.h
perf_event_cpu.c Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-06-12 19:18:49 -07:00
perf_event_v6.c
perf_event_v7.c ARM: perf: fix compiler warning with gcc 4.6.4 (and tidy code) 2014-06-19 11:29:39 +01:00
perf_event_xscale.c
perf_event.c
perf_regs.c
pj4-cp0.c
probes-arm.c
probes-arm.h
probes-thumb.c
probes-thumb.h
probes.c
probes.h
process.c
psci_smp.c
psci.c
ptrace.c ARM: 8087/1: ptrace: reload syscall number after secure_computing() check 2014-06-29 10:29:35 +01:00
relocate_kernel.S
return_address.c
setup.c
signal.c
sigreturn_codes.S
sleep.S
smp_scu.c
smp_tlb.c
smp_twd.c
smp.c
stacktrace.c
suspend.c
swp_emulate.c
sys_arm.c
sys_oabi-compat.c
tcm.c
thumbee.c
time.c
topology.c Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-06-12 19:42:15 -07:00
traps.c
unwind.c arm, unwind, LLVMLinux: Enable clang to be used for unwinding the stack 2014-06-07 11:44:39 -07:00
uprobes-arm.c
uprobes.c
uprobes.h
v7m.c
vmlinux.lds.S
xscale-cp0.c