linux_dsm_epyc7002/arch/arm64/kernel
Will Deacon 59ee987ea4 arm64: ptrace: Add a comment describing our syscall entry/exit trap ABI
Our tracehook logic for syscall entry/exit raises a SIGTRAP back to the
tracer following a ptrace request such as PTRACE_SYSCALL. As part of this
procedure, we clobber the reported value of one of the tracee's general
purpose registers (x7 for native tasks, r12 for compat) to indicate
whether the stop occurred on syscall entry or exit. This is a slightly
unfortunate ABI, as it prevents the tracer from accessing the real
register value and is at odds with other similar stops such as seccomp
traps.

Since we're stuck with this ABI, expand the comment in our tracehook
logic to acknowledge the issue and describe the behaviour in more detail.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Luis Machado <luis.machado@linaro.org>
Reported-by: Keno Fischer <keno@juliacomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>
2020-07-16 11:41:41 +01:00
..
probes
vdso arm64: vdso: Don't use gcc plugins for building vgettimeofday.c 2020-06-24 14:04:44 +01:00
vdso32 arm64: compat: Remove 32-bit sigreturn code from the vDSO 2020-06-23 14:56:39 +01:00
.gitignore
acpi_numa.c
acpi_parking_protocol.c
acpi.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
alternative.c arm64/alternatives: don't patch up internal branches 2020-07-09 14:57:59 +01:00
armv8_deprecated.c
asm-offsets.c
cacheinfo.c
cpu_errata.c arm64: Add missing sentinel to erratum_1463225 2020-07-09 09:42:24 +01:00
cpu_ops.c
cpu-reset.h
cpu-reset.S
cpufeature.c arm64: Add KRYO4XX silver CPU cores to erratum list 1530923 and 1024718 2020-07-03 16:39:16 +01:00
cpuidle.c
cpuinfo.c
crash_core.c
crash_dump.c
debug-monitors.c arm64: ptrace: Override SPSR.SS when single-stepping is enabled 2020-07-16 11:41:21 +01:00
efi-entry.S
efi-header.S
efi-rt-wrapper.S
efi.c
entry-common.c arm64: entry: Fix the typo in the comment of el1_dbg() 2020-07-08 21:44:40 +01:00
entry-fpsimd.S
entry-ftrace.S
entry.S arm64: entry: Tidy up block comments and label numbers 2020-07-08 22:13:33 +01:00
fpsimd.c arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n 2020-06-16 18:29:11 +01:00
ftrace.c
head.S mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
hibernate-asm.S
hibernate.c mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
hw_breakpoint.c arm64: hw_breakpoint: Don't invoke overflow handler on uaccess watchpoints 2020-06-18 11:10:00 +01:00
hyp-stub.S
image-vars.h
image.h
insn.c
io.c
irq.c
jump_label.c
kaslr.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
kexec_image.c
kgdb.c arm64: kgdb: Fix single-step exception handling oops 2020-07-08 22:18:54 +01:00
kuser32.S
machine_kexec_file.c arm64: kexec_file: Use struct_size() in kmalloc() 2020-06-18 10:45:20 +01:00
machine_kexec.c
Makefile arm64: compat: Allow 32-bit vdso and sigpage to co-exist 2020-06-23 14:47:03 +01:00
module-plts.c
module.c
module.lds
paravirt.c
pci.c
perf_callchain.c
perf_event.c
perf_regs.c arm64: perf: Report the PC value in REGS_ABI_32 mode 2020-06-25 14:47:04 +01:00
pointer_auth.c
process.c arm64: add loglvl to dump_backtrace() 2020-06-09 09:39:11 -07:00
psci.c
ptrace.c arm64: ptrace: Add a comment describing our syscall entry/exit trap ABI 2020-07-16 11:41:41 +01:00
reloc_test_core.c
reloc_test_syms.S
relocate_kernel.S
return_address.c
scs.c
sdei.c
setup.c arm64: warn on incorrect placement of the kernel by the bootloader 2020-06-11 14:13:13 +01:00
signal32.c arm64: compat: Always use sigpage for sigreturn trampoline 2020-06-23 14:56:24 +01:00
signal.c arm64: ptrace: Consistently use pseudo-singlestep exceptions 2020-07-16 11:41:07 +01:00
sigreturn32.S
sleep.S
smccc-call.S
smp_spin_table.c
smp.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
ssbd.c
stacktrace.c
suspend.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
sys32.c
sys_compat.c
sys.c
syscall.c arm64: compat: Ensure upper 32 bits of x0 are zero on syscall return 2020-07-16 11:41:31 +01:00
time.c
topology.c
trace-events-emulation.h
traps.c arm64: traps: Dump registers prior to panic() in bad_mode() 2020-06-15 16:58:13 +01:00
vdso.c arm64: compat: Allow 32-bit vdso and sigpage to co-exist 2020-06-23 14:47:03 +01:00
vmlinux.lds.S arm64/alternatives: use subsections for replacement sequences 2020-07-02 12:57:17 +01:00