diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-05-30 15:47:00 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-06-01 03:12:21 (GMT) |
commit | f8988175fd70874d1fb3712b1c5d3bfc6d455202 (patch) | |
tree | 2f00c9f7986e17b2cead373325e01081bc879b6c /fs/nfs/nfs4_fs.h | |
parent | c0525a6972d3f1fb83058ef503e183475d6e4e26 (diff) | |
download | linux-fsl-qoriq-f8988175fd70874d1fb3712b1c5d3bfc6d455202.tar.xz |
x86: Allow nesting of the debug stack IDT setting
When the NMI handler runs, it checks if it preempted a debug handler
and if that handler is using the debug stack. If it is, it changes the
IDT table not to update the stack, otherwise it will reset the debug
stack and corrupt the debug handler it preempted.
Now that ftrace uses breakpoints to change functions from nops to
callers, many more places may hit a breakpoint. Unfortunately this
includes some of the calls that lockdep performs. Which causes issues
with the debug stack. It too needs to change the debug stack before
tracing (if called from the debug handler).
Allow the debug_stack_set_zero() and debug_stack_reset() to be nested
so that the debug handlers can take advantage of them too.
[ Used this_cpu_*() over __get_cpu_var() as suggested by H. Peter Anvin ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
0 files changed, 0 insertions, 0 deletions