When a branch instruction (i.e. call/ret/jmp) triggers a control-protection fault, si_code is set to SEGV_CPERR. Add the new si_code to sigaction.2.
Signed-off-by: Yu-cheng Yu <[email protected]> Cc: Alejandro Colomar <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Florian Weimer <[email protected]> Cc: "H.J. Lu" <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/linux-api/[email protected]/ --- man2/sigaction.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/sigaction.2 b/man2/sigaction.2 index cc183198d..49a30f11e 100644 --- a/man2/sigaction.2 +++ b/man2/sigaction.2 @@ -737,6 +737,9 @@ See .BR pkeys (7). The protection key which applied to this access is available via .IR si_pkey . +.TP +.B SEGV_CPERR +A branch instruction (call, ret, or jmp) triggered a control-protection fault. .RE .PP The following values can be placed in -- 2.21.0

