[lkml]   [2005]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH 10 of 20] ipath - core driver, part 3 of 4

    All your user page lookup/pinning code is terminally broken.

    You can't do it that way. You have serveral major conceptual bugs, like
    keeping track of pages without incrementing their page count, and just
    expecting that they are magically "pinned" even you do nothing at all to
    pin them. The process exits or does an munmap, and the page will be used
    for something else, and you'll just corrupt totally random memory.

    Similarly, you do page_address() on the page, which just can't work on
    highmem pages.

    Crap like this must not be merged. Drivers aren't supposed to play VM
    tricks in the first place - even if they were to get it right (which they
    never do). Don't do it.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.021 / U:5.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site