[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210226172634.26905-2-yu-cheng.yu@intel.com>
Date: Fri, 26 Feb 2021 09:26:33 -0800
From: Yu-cheng Yu <yu-cheng.yu@...el.com>
To: linux-man@...r.kernel.org
Cc: Yu-cheng Yu <yu-cheng.yu@...el.com>,
Alejandro Colomar <alx.manpages@...il.com>,
Michael Kerrisk <mtk.manpages@...il.com>,
Andy Lutomirski <luto@...nel.org>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Florian Weimer <fweimer@...hat.com>,
"H.J. Lu" <hjl.tools@...il.com>, linux-kernel@...r.kernel.org,
linux-api@...r.kenel.org
Subject: [PATCH 1/2] sigaction.2: Add SEGV_CPERR
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 <yu-cheng.yu@...el.com>
Cc: Alejandro Colomar <alx.manpages@...il.com>
Cc: Michael Kerrisk <mtk.manpages@...il.com>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Borislav Petkov <bp@...en8.de>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Florian Weimer <fweimer@...hat.com>
Cc: "H.J. Lu" <hjl.tools@...il.com>
Cc: linux-kernel@...r.kernel.org
Cc: linux-api@...r.kenel.org
Link: https://lore.kernel.org/linux-api/20210217222730.15819-7-yu-cheng.yu@intel.com/
---
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
Powered by blists - more mailing lists