Skip to content
Commit 8bafae20 authored by Russell King's avatar Russell King
Browse files

ARM: BUG if jumping to usermode address in kernel mode



Detect if we are returning to usermode via the normal kernel exit paths
but the saved PSR value indicates that we are in kernel mode.  This
could occur due to corrupted stack state, which has been observed with
"ftracetest".

This ensures that we catch the problem case before we get to user code.

Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 400eeffa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment