lkml.org 
[lkml]   [2004]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectPowerPC exec page protection
    <asm-ppc/pgtable.h> and <asm-ppc64/pgtable.h> both define the
    following map of protection bits:

    #define __P000 PAGE_NONE
    #define __P001 PAGE_READONLY_X
    #define __P010 PAGE_COPY
    #define __P011 PAGE_COPY_X
    #define __P100 PAGE_READONLY
    #define __P101 PAGE_READONLY_X
    #define __P110 PAGE_COPY
    #define __P111 PAGE_COPY_X

    #define __S000 PAGE_NONE
    #define __S001 PAGE_READONLY_X
    #define __S010 PAGE_SHARED
    #define __S011 PAGE_SHARED_X
    #define __S100 PAGE_READONLY
    #define __S101 PAGE_READONLY_X
    #define __S110 PAGE_SHARED
    #define __S111 PAGE_SHARED_X

    The _X flags seem wrongly placed, as bit 2 is the PROT_EXEC bit, not
    bit 0. Is the above intentional?

    -- Jamie
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:02    [W:0.020 / U:29.840 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site