]> www.infradead.org Git - users/jedix/linux-maple.git/commit
signals, sparc: Add signal codes for ADI violations
authorKhalid Aziz <khalid.aziz@oracle.com>
Thu, 5 Jan 2017 18:46:54 +0000 (11:46 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 9 Mar 2017 03:30:13 +0000 (19:30 -0800)
commit72ac0349d40de15fb1d443a52cd354e9ec6c2380
tree0b19a0ae34dcfbe7b2e012ef9136c479afa65df1
parenteedab457423c356d4d0dde6b839a2815f1305500
signals, sparc: Add signal codes for ADI violations

SPARC M7 processor introduces a new feature - Application Data
Integrity (ADI). ADI allows MMU to  catch rogue accesses to memory.
When a rogue access occurs, MMU blocks the access and raises an
exception. In response to the exception, kernel sends the offending
task a SIGSEGV with si_code that indicates the nature of exception.
This patch adds three new signal codes specific to ADI feature:

1. ADI is not enabled for the address and task attempted to access
   memory using ADI
2. Task attempted to access memory using wrong ADI tag and caused
   a deferred exception.
3. Task attempted to access memory using wrong ADI Ttag and caused
   a precise exception.

This is a backport of patch sent upstream and brings UEK code closer to
upstream patch v6.

Orabug: 22713162

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
Cc: Khalid Aziz <khalid@gonehiking.org>
include/uapi/asm-generic/siginfo.h