lkml.org 
[lkml]   [2003]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Alternate futex non-page-pinning and COW fix

    On Thu, 4 Sep 2003, Linus Torvalds wrote:
    >
    > Oh. I see. Yes - it's accessing "vm_flags" with "MAP_SEM". That's really
    > wrong, since it's not even the same _domain_.

    How about something like this that at least gets it closer? It fixes the
    fact that incorrect usage of PROT_SEM would allow users to set the
    VM_SHARED bit behind the back of the OS, which sounds like a total
    disaster and which can potentially confuse other parts of the VM.

    It's not a very _pretty_ fix, but there really is no excuse for PROT_xxx
    to not match VM_xxx for the three standard protection flags, so in that
    sense it is the technically "sane" approach. We might want to just
    simplify the mmap() code too..

    Linus

    -
    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: 2009-11-18 23:46    [W:0.017 / U:61.040 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site