opnsense-src/sys/amd64/amd64
David Chisnall cf98bc28d3 Pass the syscall number to capsicum permission-denied signals
The syscall number is stored in the same register as the syscall return
on amd64 (and possibly other architectures) and so it is impossible to
recover in the signal handler after the call has returned.  This small
tweak delivers it in the `si_value` field of the signal, which is
sufficient to catch capability violations and emulate them with a call
to a more-privileged process in the signal handler.

This reapplies 3a522ba1bc with a fix for
the static assertion failure on i386.

Approved by:	markj (mentor)

Reviewed by:	kib, bcr (manpages)

Differential Revision: https://reviews.freebsd.org/D29185
2021-07-16 18:06:44 +01:00
..
apic_vector.S x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
atpic_vector.S x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
bios.c amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
bpf_jit_machdep.c malloc: delegate M_EXEC handling to dedicacted routines 2020-10-30 20:02:32 +00:00
bpf_jit_machdep.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
copyout.c amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
cpu_switch.S amd64: Store full 64bit of FIP/FDP for 64bit processes when using XSAVE. 2020-10-03 23:17:29 +00:00
db_disasm.c amd64: clean up empty lines in .c and .h files 2020-09-01 21:16:54 +00:00
db_interface.c amd64: allow parallel shootdown IPIs 2020-07-14 20:37:50 +00:00
db_trace.c ddb: replace watchpoint set/clear functions 2021-03-29 12:05:44 -03:00
efirt_machdep.c amd64 efirt: initialize vm_pages backing EFI runtime memory 2021-06-17 16:58:51 +03:00
efirt_support.S amd64 ef_rt_arch_call: Preserve %rflags around call into EFI RT service. 2019-06-03 15:32:42 +00:00
elf_machdep.c Do not call FreeBSD-ABI specific code for all ABIs 2021-07-07 14:12:07 +03:00
exception.S x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
fpu.c x86: initialize initial FPU state earlier 2021-05-28 21:38:32 +03:00
gdb_machdep.c gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
genassym.c amd64 pmap: convert to counter(9), add PV and pagetable page counts 2021-03-09 09:27:10 -08:00
in_cksum.c spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
initcpu.c Limit workaround for errata E400 to appropriate AMD cpus. 2020-10-14 22:57:50 +00:00
io.c sys/amd64: further adoption of SPDX licensing ID tags. 2017-11-27 15:03:07 +00:00
locore.S amd64 locore.S: add FF copyright for LA57 work 2021-07-10 14:46:53 +03:00
machdep.c amd64: do not touch BIOS reset flag halfword, unless we boot through BIOS 2021-06-24 00:38:00 +03:00
mem.c Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
minidump_machdep.c Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
mp_machdep.c x86/xen: further PVHv1 removal cleanup 2021-05-18 10:43:31 +02:00
mpboot.S amd64 mpboot.S: fix typo in comment 2021-07-10 14:46:54 +03:00
pmap.c Clear the accessed bit when copying a managed superpage mapping 2021-07-14 13:06:10 -05:00
ptrace_machdep.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
sigtramp.S x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
support.S amd64: typo fix: memcmpy -> memcmp in a comment 2021-06-26 16:24:46 +00:00
sys_machdep.c amd64: Fix propagation of LDT updates 2021-06-14 17:32:18 -04:00
trap.c Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
uio_machdep.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
uma_machdep.c Tidy up the #includes. Recent changes, such as the introduction of 2020-11-02 19:20:06 +00:00
vm_machdep.c amd64: Clear the local TSS when creating a new thread 2021-06-01 19:38:22 -04:00
xen-locore.S xen: remove support for PVHv1 bootpath 2021-05-17 10:56:52 +02:00