Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187873
b: refs/heads/master
c: b634587
h: refs/heads/master
i:
  187871: f5ebde9
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 13, 2010
1 parent 792a97b commit d45241e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a2f8071428ed9a0f06865f417c962421c9a6b488
refs/heads/master: b6345879ccbd9b92864fbd7eb8ac48acdb4d6b15
7 changes: 7 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,13 @@ ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc)
if (!(trace_flags & TRACE_ITER_USERSTACKTRACE))
return;

/*
* NMIs can not handle page faults, even with fix ups.
* The save user stack can (and often does) fault.
*/
if (unlikely(in_nmi()))
return;

event = trace_buffer_lock_reserve(buffer, TRACE_USER_STACK,
sizeof(*entry), flags, pc);
if (!event)
Expand Down

0 comments on commit d45241e

Please sign in to comment.