[lkml]   [2004]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Possible dcache BUG
    On Thu, Aug 05, 2004 at 07:50:28PM -0700, Linus Torvalds wrote:

    > So as far as I can tell, shrink_dcache_anon() will have _removed_ a dentry
    > from the unused_list, but still left the dentry with wild pointers
    > pointing to other dentries. Next time around we do a dput() on such a
    > dentry, we'll be screwed, because we'll try to remove it again. Boom.

    It doesn't even take a dput(). Look: we do list_del(), then notice that
    sucker still has positive refcount and leave it alone. Now think what
    happens on the next pass. That's right, we hit that dentry *again*.
    And see that list_empty() is false. And do list_del() one more time.

    However, what used to be e.g. next dentry might very well be freed by
    now. *BOOM*.
    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: 2005-03-22 14:05    [W:0.018 / U:2.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site