s390/kernel: expand exception table logic to allow new handling options
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 30 Jun 2020 18:52:03 +0000 (20:52 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Jul 2020 08:55:50 +0000 (10:55 +0200)
commit05a68e892e89c97df6650cd8cc55058002657cbc
tree50da3706b76870f99a1acf549c9cbf4227388baf
parent88aa8939c96781089e5ace3492d818074c5c6fe9
s390/kernel: expand exception table logic to allow new handling options

This is a s390 port of commit 548acf19234d ("x86/mm: Expand the
exception table logic to allow new handling options"), which is needed
for implementing BPF_PROBE_MEM on s390.

The new handler field is made 64-bit in order to allow pointing from
dynamically allocated entries to handlers in kernel text. Unlike on x86,
NULL is used instead of ex_handler_default. This is because exception
tables are used by boot/text_dma.S, and it would be a pain to preserve
ex_handler_default.

The new infrastructure is ignored in early_pgm_check_handler, since
there is no pt_regs.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/extable.h
arch/s390/include/asm/linkage.h
arch/s390/kernel/kprobes.c
arch/s390/kernel/traps.c
arch/s390/mm/fault.c
scripts/sorttable.c