[lkml]   [1999]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] fixed both processes in D state and the /proc/ oopses [Re: [patch] Fixed the race that was oopsing Linux-2.2.0]

    On Thu, 28 Jan 1999 10:17:37 -0800 (PST), Linus Torvalds
    <> said:

    > I'd much rather just use some stale "struct task_struct" data.

    The problem isn't the risk of using stale data: it is the risk of using
    complete garbage if the task_struct page gets reused. The procfs code
    does check that tsk->mm is non-zero before following the pointers, but
    if there is a non-zero address there then it _will_ be dereferenced

    > What we _might_ do in /proc, is to just increment the usage count for the
    > (double) page that contains the task structure,

    That would certainly take care of it.


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

     \ /
      Last update: 2005-03-22 13:50    [W:0.037 / U:28.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site