mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 0/14] x86, ptrace, bts, hw-branch-tracer: bug fixes and cleanups
@ 2009-03-27  8:43 Markus Metzger
  0 siblings, 0 replies; only message in thread
From: Markus Metzger @ 2009-03-27  8:43 UTC (permalink / raw)
  To: linux-kernel, mingo, tglx, hpa
  Cc: markus.t.metzger, markus.t.metzger, roland, eranian, oleg,
	juan.villacis, ak

A bug in the ptrace bts extension may cause a kernel crash.

When the ptracer exits, it stops branch tracing for all ptraced tasks
and frees the branch trace buffer. If the traced tasks are currently
running, the branch trace buffer may be freed before the cpu running
that task has stopped tracing, thus overwriting memory with branch
trace data.

Patches 1-4 fix this problem by having the tracer wait for the tracee
to become inactive. This ensures that the cpu has stopped tracing that task.

The bug affects the .29 kernel.


The rest of the patches are for tip/tracing/hw-branch-tracing only.
Patches 5 and 6 fix boot problems caused by the hw-branch-tracer
selftests reported by Ingo Molnar (thanks for reporting the problems).
Patch 8 fixes a bug in the selftest.
Patches 9 and 10 add more selftests.
Patches 7, 11 - 13 are cleanup.
Patch 14 adds support for Core i7.
---------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen Germany
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 Ust.-IdNr.
VAT Registration No.: DE129385895
Citibank Frankfurt (BLZ 502 109 00) 600119052

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-27  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27  8:43 [patch 0/14] x86, ptrace, bts, hw-branch-tracer: bug fixes and cleanups Markus Metzger

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®