commit | 00e8d1245e510a7d69960f51cbe6df6be6d6d875 | [log] [tgz] |
---|---|---|
author | Andy Lutomirski <luto@amacapital.net> | Thu Nov 13 15:57:07 2014 -0800 |
committer | Andy Lutomirski <luto@amacapital.net> | Thu Nov 13 16:29:36 2014 -0800 |
tree | a89a08262b3c20053e83d97f12fc132ffe7c670a | |
parent | efb0f4d401f0e5c37196d741e672095501404d97 [diff] |
sched, x86: Check that we're on the right stack in schedule and __might_sleep On x86, sleeping while on an IST or irq stack has a surprisingly good chance of working, but it can also fail dramatically. Add an arch hook to allow schedule and __might_sleep to catch sleeping on the wrong stack. This will also catch do_exit from a funny stack, which could leave an IST stack shifted or an NMI nesting count incremented. Signed-off-by: Andy Lutomirski <luto@amacapital.net>