diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2007-12-04 12:33:03 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2007-12-04 12:33:03 +0000 |
commit | d24031dd0cd7426670045968bda8cc501303cd0f (patch) | |
tree | aea956d1d43fb99bb7f3a157f35c56a65ec5cc87 /Makefile.inc1 | |
parent | f231de478ebb97e0d19fe8c0f95bcd7ac78492bc (diff) | |
download | src-d24031dd0cd7426670045968bda8cc501303cd0f.tar.gz src-d24031dd0cd7426670045968bda8cc501303cd0f.zip |
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
Notes
Notes:
svn path=/head/; revision=174254
Diffstat (limited to 'Makefile.inc1')
0 files changed, 0 insertions, 0 deletions