• D
    mmu-hash64: Factor SLB N bit into permissions bits · 57d0a39d
    David Gibson 提交于
    BEHAVIOUR CHANGE
    
    Currently, for 64-bit hash mmu, the execute protection bit placed into the
    qemu tlb is based only on the N (No execute) bit from the PTE.  However,
    No Execute can also be set at the segment level.  We do check this on
    execute faults, but this still means we could incorrectly allow execution
    of code from a No Execute segment, if a prior read or write fault caused
    the page to be loaded into the qemu tlb with PROT_EXEC set.
    
    To correct this, we (re-)check the segment level no execute permission when
    generating the protection bits for the qemu tlb.
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    57d0a39d
mmu-hash64.c 15.6 KB