Skip to contentSkip to conversation

x86, ptrace, bts, hw-branch-tracer: bug fixes and cleanups

PATCH In review Markus Metzger 1 participant 1 message Mar 27, 2009

lore
Share & tools
lore
#0 lore raw

cover x86, ptrace, bts, hw-branch-tracer: bug fixes and cleanups

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.