lkml.org 
[lkml]   [2012]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH] fs: Fix mod_timer crash when removing USB sticks
    From
    On Thu, Jan 12, 2012 at 4:15 PM, Paul Taysom <taysom@chromium.org> wrote:
    > From: Paul Taysom <taysom@google.com>
    >
    > A USB stick with a ext file system on it, would occasionally crash
    > when the stick was pulled.
    >
    > The problem was a timer was being set on the Backing Device Interface,
    > bdi, after the USB device had been removed and the bdi had been
    > unregistered. The bdi would then be later reinitialized by zeroing
    > the timer without removing from the timer from the timer queue.
    > This would eventually result in a kernel crash (NULL ptr dereference).

    What backtrace did you see when it crashed? There have been a number of
    reports where sd_revalidate_disk is at the top of the backtrace and this sounds
    like it might be related.

    josh


    \
     
     \ /
      Last update: 2012-01-13 06:45    [W:2.390 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site