]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/vmem: fix empty page tables cleanup under KASAN
authorVasily Gorbik <gor@linux.ibm.com>
Sat, 28 Jan 2023 16:35:12 +0000 (17:35 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 10:13:53 +0000 (11:13 +0100)
commit108303b0a2d27cb14eed565e33e64ad9eefe5d7e
tree55d7cbb570842401b580feabc3184408f1b3c276
parentdfca37d36b746a066bf4d62bce3276c7639d8f09
s390/vmem: fix empty page tables cleanup under KASAN

Commit b9ff81003cf1 ("s390/vmem: cleanup empty page tables") introduced
empty page tables cleanup in vmem code, but when the kernel is built
with KASAN enabled the code has no effect due to wrong KASAN shadow
memory intersection condition, which effectively ignores any memory
range below KASAN shadow. Fix intersection condition to make code
work as anticipated.

Fixes: b9ff81003cf1 ("s390/vmem: cleanup empty page tables")
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/vmem.c