]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit998f5bbe3dbdab81c1cfb1aef7c3892f5d24f6c7
treec3508ce4fca2ebb55f8b4f27424e354411eaa83d
parente64a1618af8566d20991607913a4d90d39b30118
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