Merge branch 'adi-driver'
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 18:27:03 +0000 (11:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 18:27:03 +0000 (11:27 -0700)
commit2b1f6a04f52b426158362f05eec24f6456d5fea7
tree294394123558024171b2c509399d301a693ea0f1
parentfff75eb2a08c2ac96404a2d79685668f3cf5a7a3
parent3c545084130c1fd5cf873a5fec3ee29070128e06
Merge branch 'adi-driver'

Tom Hromatka says:

====================
sparc64: Add privileged ADI driver

ADI is a feature supported on SPARC M7 and newer processors to allow
hardware to catch rogue accesses to memory. ADI is supported for data
fetches only and not instruction fetches. An app can enable ADI on its
data pages, set version tags on them and use versioned addresses to
access the data pages. Upper bits of the address contain the version
tag. On M7 processors, upper four bits (bits 63-60) contain the version
tag. If a rogue app attempts to access ADI enabled data pages, its
access is blocked and processor generates an exception. Please see
Documentation/sparc/adi.txt for further details.

This patchset implements a char driver to read/write ADI versions from
privileged user space processes.  Intended consumers are makedumpfile
and crash.

v6:
  * Addressed a few action items from greg k-h
  * Added Reviewed-by Greg Kroah-Hartman and Shuah Khan
v5:
  * Fixed MODULE_LICENSE() for adi.c
v4:
  * Fixed messed up subject lines.
v3:
  * Really fixed the copyright headers to use SPDX GPL v2.  Really.
v2:
  * Simplified copyright headers
  * Completely reworked sparc64 selftests Makefiles.  Used the
    android selftests Makefiles as an example
  * Added run.sh and drivers_test.sh to the sparc64 selftest
    directory.  Used bpf/test_kmod.sh and the android selftests
    as examples
  * Minor cleanups in the selftest adi-test.c
  * Added calls to ksft_test_*() in the adi-test.c
====================

Signed-off-by: David S. Miller <davem@davemloft.net>