• Vasily Gorbik's avatar
    s390/kasan: handle DCSS mapping in memory holes · 32789967
    Vasily Gorbik authored
    When physical memory is defined under z/VM using DEF STOR CONFIG, there
    may be memory holes that are not hotpluggable memory. In such cases,
    DCSS mapping could be placed in one of these memory holes. Subsequently,
    attempting memory access to such DCSS mapping would result in a kasan
    failure because there is no shadow memory mapping for it.
    
    To maintain consistency with cases where DCSS mapping is positioned after
    the kernel identity mapping, which is then covered by kasan zero shadow
    mapping, handle the scenario above by populating zero shadow mapping
    for memory holes where DCSS mapping could potentially be placed.
    Reviewed-by: default avatarHeiko Carstens <hca@linux.ibm.com>
    Reviewed-by: default avatarGerald Schaefer <gerald.schaefer@linux.ibm.com>
    Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
    32789967
vmem.c 13.3 KB