x86: avoids bad frame pointers in backtrace
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 20 Aug 2014 02:06:56 +0000 (19:06 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 20 Aug 2014 02:06:56 +0000 (19:06 -0700)
commit62bd713804740712b44f5bca705fa54d2dcb3a08
treeeced8e4d17c10544dc83d546cf8c4d6b15177261
parenteebb7ecb74ad2232bb8b20fcd0faf0ec15e155ba
x86: avoids bad frame pointers in backtrace

Backtrace will stop backtracing if it hits a non-canonical, non-kernel address.
It'll still record the PC, so we can see some evidence of the corruption.

Thanks to Drew for pointing this out and providing a fix.
kern/arch/x86/kdebug.c