diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2020-11-16 10:06:41 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2020-11-23 14:01:12 +0300 |
commit | 062e527956d05fae02f143c0d5ff9e8525c6799f (patch) | |
tree | 8e070371d94d41cd6f6eb7eeb8801442ad73bdf2 /arch/s390/include/asm/uaccess.h | |
parent | 0290c9e328e04052e317171953feb18177a34aed (diff) | |
download | linux-062e527956d05fae02f143c0d5ff9e8525c6799f.tar.xz |
s390/mm: add debug user asce support
Verify on exit to user space that always
- the primary ASCE (cr1) is set to kernel ASCE
- the secondary ASCE (cr7) is set to user ASCE
If this is not the case: panic since something went terribly wrong.
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/uaccess.h')
-rw-r--r-- | arch/s390/include/asm/uaccess.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index e59fd96a1561..c6707885e7c2 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h @@ -18,6 +18,8 @@ #include <asm/extable.h> #include <asm/facility.h> +void debug_user_asce(void); + static inline int __range_ok(unsigned long addr, unsigned long size) { return 1; |