summaryrefslogtreecommitdiffstats
path: root/fs/pipe.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-01-14 13:33:27 -0800
committerIngo Molnar <mingo@elte.hu>2009-01-21 15:21:30 +0100
commit00f57f545afa422db3003b0d0b30a30f8de7ecb2 (patch)
tree02d5fc02d95987015b3051a63e7c481a28be4f47 /fs/pipe.c
parent082605de5f82eb692cc90f7fda071cc01bb5ac34 (diff)
downloadblackbird-op-linux-00f57f545afa422db3003b0d0b30a30f8de7ecb2.tar.gz
blackbird-op-linux-00f57f545afa422db3003b0d0b30a30f8de7ecb2.zip
tracing/function-graph-tracer: fix a regression while suspend to disk
Impact: fix a crash while kernel image restore When the function graph tracer is running and while suspend to disk, some racy and dangerous things happen against this tracer. The current task will save its registers including the stack pointer which contains the return address hooked by the tracer. But the current task will continue to enter other functions after that to save the memory, and then it will store other return addresses, and finally loose the old depth which matches the return address saved in the old stack (during the registers saving). So on image restore, the code will return to wrong addresses. And there are other things: on restore, the task will have it's "current" pointer overwritten during registers restoring....switching from one task to another... That would be insane to try to trace function graphs at these stages. This patch makes the function graph tracer listening on power events, making it's tracing disabled for the current task (the one that performs the hibernation work) while suspend/resume to disk, making the tracing safe during hibernation. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'fs/pipe.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud