Dave Martin ec94a46ee7 arm64: BTI: Decode BYTPE bits when printing PSTATE
The current code to print PSTATE symbolically when generating
backtraces etc., does not include the BYTPE field used by Branch
Target Identification.

So, decode BYTPE and print it too.

In the interests of human-readability, print the classes of BTI
matched.  The symbolic notation, BYTPE (PSTATE[11:10]) and
permitted classes of subsequent instruction are:

    -- (BTYPE=0b00): any insn
    jc (BTYPE=0b01): BTI jc, BTI j, BTI c, PACIxSP
    -c (BYTPE=0b10): BTI jc, BTI c, PACIxSP
    j- (BTYPE=0b11): BTI jc, BTI j

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2020-03-16 17:19:49 +00:00
..
2019-11-06 14:17:34 +00:00
2019-07-08 09:54:55 -07:00
2019-12-06 13:25:14 +00:00
2019-11-06 14:17:36 +00:00
2019-11-25 19:40:40 -08:00
2019-07-08 09:54:55 -07:00
2020-02-11 09:47:01 +00:00
2019-10-28 11:22:47 +00:00
2019-11-06 14:17:35 +00:00
2019-07-15 20:44:49 -07:00
2020-01-29 10:13:27 -08:00
2019-04-23 18:01:57 +01:00
2019-12-06 14:18:01 -08:00
2019-12-06 14:18:01 -08:00