https://github.com/torvalds/linux
Revision 8bafae202c82dc257f649ea3c275a0f35ee15113 authored by Russell King on 24 November 2017, 23:49:34 UTC, committed by Russell King on 26 November 2017, 15:41:39 UTC
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: Russell King <rmk+kernel@armlinux.org.uk>
1 parent 400eeff
History
Tip revision: 8bafae202c82dc257f649ea3c275a0f35ee15113 authored by Russell King on 24 November 2017, 23:49:34 UTC
ARM: BUG if jumping to usermode address in kernel mode
Tip revision: 8bafae2

back to top