mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +00:00
Always send a SIGSEGV on a map failure. Use the code to tell the reason
for the signal. Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
871ef8b0d8
commit
70915d1289
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285389
@ -542,8 +542,8 @@ nogo:
|
||||
return;
|
||||
}
|
||||
|
||||
ksig.sig = (rv == KERN_PROTECTION_FAILURE) ? SIGBUS : SIGSEGV;
|
||||
ksig.code = 0;
|
||||
ksig.sig = SIGSEGV;
|
||||
ksig.code = (rv == KERN_PROTECTION_FAILURE) ? SEGV_ACCERR : SEGV_MAPERR;
|
||||
ksig.addr = far;
|
||||
|
||||
do_trapsignal:
|
||||
|
Loading…
x
Reference in New Issue
Block a user