]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Fix dumpstack_64 to keep state of "used" variable in loop
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 2 Apr 2014 17:26:40 +0000 (13:26 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2014 18:46:50 +0000 (11:46 -0700)
commitb91157e512428c87bd9f2ca3aaf20f783dbc5403
tree01e0db2ac388f630d964b2b33365af9d77307fb5
parent559a27cdf1b450d7eada67e7373efefa9f601076
x86: Fix dumpstack_64 to keep state of "used" variable in loop

Commit e09731eb1a9a "x86: Clean up dumpstack_64.c code" moved the used
variable to a local within the loop, but the in_exception_stack()
depended on being non-volatile with the ability to change it.

By always re-initializing the "used" variable to zero, it would cause
the in_exception_stack() to return the same thing each time, and
cause the dump_stack loop to go into an infinite loop.

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/dumpstack_64.c