Skip to content
Commit 808dbbb6 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

x86: be more careful when walking back the frame pointer chain



When showing the stack backtrace, make sure that we never accept not
only an unchanging frame pointer, but also a frame pointer that moves
back down the stack frame.  It must always grow up (toward older stack
frames).

I doubt this has triggered, but a subtly corrupt stack with extremely
unlucky contents could cause us to loop forever on a bogus endless frame
pointer chain.

This review was triggered by much worse problems happening in some of
the other stack unwinding code.

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 1ff56830
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment