mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] blktrace: startup / shutdown race fixes
@ 2010-07-15 17:19 Andy Isaacson
  2010-07-15 17:20 ` [PATCH 1/2] blktrace: use cmpxchg Andy Isaacson
  2010-07-15 17:20 ` [PATCH 2/2] blktrace: unlink blk directory on final trace close Andy Isaacson
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Isaacson @ 2010-07-15 17:19 UTC (permalink / raw)
  To: linux-kernel, Steven Rostedt, Frederic Weisbecker, Ingo Molnar,
	Jens Axboe, Masami Hiramatsu

I ran into the stale-block-directory problem while using blktrace,
and while chasing it noticed the open-coded cmpxchg.

The unlink-on-final-close is a longstanding bug that's triggerable
by the standard blktrace(1) utility (it races child threads against
the parent), and should go to -stable.  The cmpxchg is a startup
race that may be easy to maliciously trigger from userspace, but
is unlikely to be triggered accidentally.  (Famous last words...)

Andy Isaacson (2):
  blktrace: use cmpxchg
  blktrace: unlink blk directory on final trace close

 kernel/trace/blktrace.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-15 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-15 17:19 [PATCH 0/2] blktrace: startup / shutdown race fixes Andy Isaacson
2010-07-15 17:20 ` [PATCH 1/2] blktrace: use cmpxchg Andy Isaacson
2010-07-15 17:20 ` [PATCH 2/2] blktrace: unlink blk directory on final trace close Andy Isaacson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®