[patch 0/14] x86, ptrace, bts, hw-branch-tracer: bug fixes and cleanups

From: Markus Metzger
Date: Fri Mar 27 2009 - 05:33:21 EST


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.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/