kfence: add function to mask address bits
authorSven Schnelle <svens@linux.ibm.com>
Wed, 28 Jul 2021 19:02:52 +0000 (21:02 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 30 Jul 2021 15:09:01 +0000 (17:09 +0200)
commitf99e12b21b84feb1fd9d845a15096772f1659461
tree426221c892994d005b2841b906b9ce38118eccc1
parentb3e1a00c8fa41a80aa402e5ca7f8cc78efa4f50b
kfence: add function to mask address bits

s390 only reports the page address during a translation fault.
To make the kfence unit tests pass, add a function that might
be implemented by architectures to mask out address bits.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20210728190254.3921642-3-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
mm/kfence/kfence_test.c