lkml.org 
[lkml]   [2005]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH/RFC] Futex mmap_sem deadlock


    On Tue, 22 Feb 2005, Andrew Morton wrote:
    >
    > However the pte can get unmapped by memory reclaim so we could still take a
    > minor fault, and hit the same deadlock, yes?

    You _could_ fix that by getting the pagetable spinlock, I guess. Which
    check_user_page_readable() assumes you'd be holding anyway (not holding it
    would appear to be a bug).

    At which point you might as well just walk the tables by hand and just do
    the read that way. Of course, then you have virtual aliasing issues etc.

    Insane, but possible.

    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.029 / U:30.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site