commit | 8bafae202c82dc257f649ea3c275a0f35ee15113 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Fri Nov 24 23:49:34 2017 +0000 |
committer | Russell King <rmk+kernel@armlinux.org.uk> | Sun Nov 26 15:41:39 2017 +0000 |
tree | 1c2a7d64f216df552e4509dc746d8da3436e39ab | |
parent | 400eeffaffc7232c0ae1134fe04e14ae4fb48d8c [diff] |
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: Russell King <rmk+kernel@armlinux.org.uk>