diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-23 21:10:04 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-23 21:10:04 +0000 |
commit | 5244d434f6dcbffd3babe2cff60450eef3e1652a (patch) | |
tree | 723bd1201e4ff48774008e5b262b9d09a79f5256 /usr.bin | |
parent | fcbe57390cb4032ca29203a99f2733f35c9d41cb (diff) |
Add regress test for SIGSEGV and SIGBUS siginfo semantics.
According to POSIX, SIGSEGV should specify SEGV_ACCERR if the memory
pages are mapped, but the protections don't match the user's access
attempts, while SEGV_MAPERR should only be specified for pages that
are unmapped. Some platforms currently handle this correctly, but not
all.
Additionally, SIGBUS/BUS_ADRERR should be generated instead of SIGSEGV
for access to file mapped pages that exceed the end of the file.
(Thanks to kettenis@ for suggesting this test.)
Currently failing, so not linked into the regress tree yet.
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions