s390/mm,pageattr: allow KASAN shadow memory
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 14 Feb 2023 08:39:24 +0000 (09:39 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Mar 2023 10:02:50 +0000 (11:02 +0100)
Allow changing page table attributes for KASAN shadow memory ranges.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
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/pageattr.c

index 85195c18b2e82f03edea7ef0ceba8165a0caa4ef..7838e9c70000b9c6f1aef82631800f6b38e33457 100644 (file)
@@ -300,8 +300,6 @@ static int change_page_attr(unsigned long addr, unsigned long end,
 
        if (addr == end)
                return 0;
-       if (end >= MODULES_END)
-               return -EINVAL;
        mutex_lock(&cpa_mutex);
        pgdp = pgd_offset_k(addr);
        do {