• Alexandre Ghiti's avatar
    riscv: Improve kasan population function · d127c19c
    Alexandre Ghiti authored
    Current population code populates a whole page table without taking care
    of what could have been already allocated and without taking into account
    possible index in page table, assuming the virtual address to map is always
    aligned on the page table size, which, for example, won't be the case when
    the kernel will get pushed to the end of the address space.
    
    Address those problems by rewriting the kasan population function,
    splitting it into subfunctions for each different page table level.
    Signed-off-by: default avatarAlexandre Ghiti <alex@ghiti.fr>
    Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
    d127c19c
kasan_init.c 5.38 KB