Re: [PATCH 08/13] x86/dumpstack: When OOPSing, rewind the stack before do_exit

2016-06-16 Thread Andy Lutomirski
On Thu, Jun 16, 2016 at 10:50 AM, Josh Poimboeuf wrote: > On Wed, Jun 15, 2016 at 05:28:30PM -0700, Andy Lutomirski wrote: >> If we call do_exit with a clean stack, we greatly reduce the risk of >> recursive oopses due to stack overflow in do_exit, and we allow >> do_exit to work even if we OOPS f

Re: [PATCH 08/13] x86/dumpstack: When OOPSing, rewind the stack before do_exit

2016-06-16 Thread Josh Poimboeuf
On Wed, Jun 15, 2016 at 05:28:30PM -0700, Andy Lutomirski wrote: > If we call do_exit with a clean stack, we greatly reduce the risk of > recursive oopses due to stack overflow in do_exit, and we allow > do_exit to work even if we OOPS from an IST stack. The latter gives > us a much better chance

[PATCH 08/13] x86/dumpstack: When OOPSing, rewind the stack before do_exit

2016-06-15 Thread Andy Lutomirski
If we call do_exit with a clean stack, we greatly reduce the risk of recursive oopses due to stack overflow in do_exit, and we allow do_exit to work even if we OOPS from an IST stack. The latter gives us a much better chance of surviving long enough after we detect a stack overflow to write out ou