Commit [068e35] Maximize Restore History

hw breakpoints: Fix pid namespace bug

Hardware breakpoints can't be registered within pid namespaces
because tsk->pid is passed rather than the pid in the current

(See )

This is a quick fix demonstrating the problem but is not the
best method of solving the problem since passing pids internally
is not the best way to avoid pid namespace bugs. Subsequent patches
will show a better solution.

Much thanks to Frederic Weisbecker <> for doing
the bulk of the work finding this bug.

Reported-by: Robin Green <>
Signed-off-by: Matt Helsley <>
Signed-off-by: Peter Zijlstra <>
Cc: Prasad <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Steven Rostedt <>
Cc: Will Deacon <>
Cc: Mahesh Salgaonkar <>
Cc: 2.6.33-2.6.35 <>
LKML-Reference: <>
Signed-off-by: Ingo Molnar <>
Signed-off-by: Frederic Weisbecker <>

Matt Helsley Matt Helsley 2010-09-13

Frederic Weisbecker Frederic Weisbecker 2010-09-17

changed kernel
changed kernel/hw_breakpoint.c
kernel/hw_breakpoint.c Diff Switch to side-by-side view