1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/i386
Konstantin Belousov d24031dd0c Fix the ABI change of the signal delivered on the access to the page
with insufficient protection mode.

For the i386 and amd64, create the tunable, machdep.prot_fault_translation,
with the following behaviour:
	0 = autodetect the signal to be delivered on KERN_PROTECTION_FAILURE
	    from vm_fault based on the ELF OSABI note:
		no note or __FreeBSD_version < 700004 - SIGBUS/BUS_PAGE_FAULT
		note, and __FreeBSD_version >= 700004 - SIGSEGV/SEGV_ACCERR
	1 = always SIGBUS/BUS_PAGE_FAULT
	2 = always SIGSEGV/SEGV_ACCERR

This would do mostly automatic correction of ABI breakage, with the exception
of the untaged binaries for 7-CURRENT/RELENG_7 before the note is fixed. For
them, sysctl would allow to run the binary with manual settings.

Discussed with:	portmgr (kris)
PR:		kern/118304
MFC after:	3 days
2007-12-04 12:33:03 +00:00
..
acpica
bios
compile
conf Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
cpufreq
i386 Fix the ABI change of the signal delivered on the access to the page 2007-12-04 12:33:03 +00:00
ibcs2
include Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
isa Don't use plain "ret" instructions at targets of jump instructions, 2007-11-29 02:01:21 +00:00
linux Implement read_default_ldt in linux_modify_ldt(). It copies out zeroed 2007-11-26 11:06:19 +00:00
pci MFamd64: 1.109 of pci_cfgreg.c which changes pci_cfgdisable() into a nop 2007-11-28 22:22:05 +00:00
svr4
xbox
Makefile