Date: Sat, 11 Jul 2015 16:02:07 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285389 - head/sys/arm/arm Message-ID: <201507111602.t6BG27cf064210@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Sat Jul 11 16:02:06 2015 New Revision: 285389 URL: https://svnweb.freebsd.org/changeset/base/285389 Log: Always send a SIGSEGV on a map failure. Use the code to tell the reason for the signal. Sponsored by: ABT Systems Ltd Modified: head/sys/arm/arm/trap-v6.c Modified: head/sys/arm/arm/trap-v6.c ============================================================================== --- head/sys/arm/arm/trap-v6.c Sat Jul 11 15:22:11 2015 (r285388) +++ head/sys/arm/arm/trap-v6.c Sat Jul 11 16:02:06 2015 (r285389) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507111602.t6BG27cf064210>