freebsd-dev/sys/powerpc
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
..
aim Assert that valid PTEs are not overwritten when installing a new PTP 2021-07-15 12:17:33 -04:00
amigaone powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
booke Clean up a couple of MD warts in vm_fault_populate(): 2021-03-30 18:15:55 -07:00
conf sys/*/conf/*, docs: fix links to handbook 2021-05-20 09:27:10 +01:00
cpufreq powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
fpu powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
include Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
mambo Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
mikrotik powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
mpc85xx Rename ofwpci.c to ofw_pcib.c 2021-05-20 11:22:25 +02:00
ofw bus_child_pnpinfo: fix two stragglers 2021-06-22 22:10:31 -06:00
powermac newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
powernv newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
powerpc Pass the syscall number to capsicum permission-denied signals 2021-07-16 18:06:44 +01:00
ps3 cam: clear on-stack CCBs in last few drivers 2021-05-21 08:53:59 +01:00
pseries newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
psim powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00