Re: kmemcheck caught read from freed memory (cfq_free_io_context)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Wednesday, April 2, 2008 - 5:26 am

On Wed, 2008-04-02 at 13:53 +0200, Jens Axboe wrote:

There are 3 races here:

 1) A continues with another object than intended
    (requires CLONE_IO)

 2) A does hlist_for_each_rcu() and races with B,C so that
    we continue the iteration on a possibly unrelated list.

 3) cic is freed after the !cic->key check.

I'm not familiar enough with the code yet to see if 3 really is an
possibility. But from what I can see there is nothing guarding its
existence.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kmemcheck caught read from freed memory (cfq_free_io_c ..., Peter Zijlstra, (Wed Apr 2, 5:26 am)
Re: kmemcheck caught read from freed memory (cfq_free_io_c ..., Christoph Lameter, (Wed Apr 2, 10:35 am)
Re: kmemcheck caught read from freed memory (cfq_free_io_c ..., Christoph Lameter, (Wed Apr 2, 10:36 am)