]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kasan: fix early pgm check handler execution
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 17 Jun 2020 13:05:49 +0000 (15:05 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 23 Jun 2020 12:05:50 +0000 (14:05 +0200)
commitd39ea414cc78fb2259409cbc308c6a66acb7789c
treec3508ce4fca2ebb55f8b4f27424e354411eaa83d
parent6589dd00b0aa6a78b64d237caf7e412d5a15d79e
s390/kasan: fix early pgm check handler execution

Currently if early_pgm_check_handler is called it ends up in pgm check
loop. The problem is that early_pgm_check_handler is instrumented by
KASAN but executed without DAT flag enabled which leads to addressing
exception when KASAN checks try to access shadow memory.

Fix that by executing early handlers with DAT flag on under KASAN as
expected.

Reported-and-tested-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/early.c