1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00
freebsd/sys/i386/include
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
..
pc smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
xen xen/privcmd: implement the dm op ioctl 2021-01-11 16:33:27 +01:00
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h
acpica_machdep.h
apm_bios.h
apm_segments.h
asm.h Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
asmacros.h x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
atomic.h
bootinfo.h
bus_dma.h
bus.h
clock.h timer_restore is now unused, remove it 2020-10-08 20:56:11 +00:00
counter.h
cpu.h
cpufunc.h x86: Add rdtscp32() into cpufunc.h. 2021-01-10 04:42:34 +02:00
cputypes.h
cserial.h
db_machdep.h
dump.h
efi.h
elan_mmcr.h
elf.h
endian.h
exec.h
fdt.h
float.h
floatingpoint.h
fpu.h Add a <machine/fpu.h> for i386 that includes <machine/npx.h>. 2020-10-13 17:26:12 +00:00
frame.h
gdb_machdep.h gdb: report specific stop reason for watchpoints 2021-03-30 11:36:41 -03:00
ieeefp.h
in_cksum.h Remove support for intel compiler from i386 in_cksum 2020-10-24 23:21:27 +00:00
intr_machdep.h
iodev.h
iommu.h Add a per-each macro IOMMU_DOMAIN_UNLOAD_SLEEP which allows to sleep 2020-10-14 14:51:11 +00:00
kdb.h x86: implement kdb watchpoint functions 2021-03-29 12:05:43 -03:00
limits.h
md_var.h i386: Make setidt_disp a size_t instead of uintptr_t 2021-06-01 19:37:50 -04:00
memdev.h Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
metadata.h
minidump.h Sparsify the vm_page_dump bitmap 2020-09-21 22:21:59 +00:00
mp_watchdog.h
nexusvar.h
npx.h Add support for FPU_KERN_NOCTX. 2020-10-13 17:27:37 +00:00
ofw_machdep.h
param.h i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
pcb_ext.h
pcb.h Fix for mis-interpretation of PCB_KERNFPU. 2020-10-14 23:01:41 +00:00
pci_cfgreg.h
pcpu_aux.h
pcpu.h Remove PCPU_INC 2021-03-20 19:23:59 -07:00
perfmon.h i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
pmap_base.h
pmap_nopae.h
pmap_pae.h
pmap.h i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
pmc_mdep.h
ppireg.h
proc.h Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
procctl.h
profile.h x86: remove gcov kernel support 2021-04-02 15:41:51 +03:00
psl.h
ptrace.h
pvclock.h
reg.h
reloc.h
resource.h
runq.h
segments.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smapi.h i386: clean up empty lines in .c and .h files 2020-09-01 21:19:39 +00:00
smp.h
speaker.h
specialreg.h
stack.h
stdarg.h
sysarch.h
timerreg.h
trap.h
tss.h
ucontext.h
vdso.h
vm86.h
vm.h Create VM_MEMATTR_DEVICE on all architectures 2021-04-12 06:15:31 +00:00
vmparam.h Add a vmparam.h constant indicating pmap support for large pages. 2020-09-23 19:34:21 +00:00