[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 7 Jul 2011 11:36:24 -0700
From: Roland Dreier <roland@...nel.org>
To: Jens Axboe <axboe@...nel.dk>
Cc: open list <linux-kernel@...r.kernel.org>
Subject: Re: warning because of race between userspace and add_disk()?
> It certainly looks like it, we need to order disk_add_events() before
> register_disk() or handle this more gracefully. I'll cook up a patch.
Cool. By the way, have you seen the threads about use-after-free
problems with q->elevator? The issue seems to be that when devices
disappear, we do blk_cleanup_queue() (which frees q->elevator) but if
someone has the device still open, we still have references to the
queue and requests can still come in (and blow up when they try to use
the elevator).
By the way, are you planning on going to that Intel Tech Days thing
in a couple of weeks? (I should be there)
- R.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists