Re: [PATCH v8 01/27] Documentation/x86: Add CET description

2 messages, 2 authors, 2019-08-14 · open the first message on its own page

Re: [PATCH v8 01/27] Documentation/x86: Add CET description

From: Florian Weimer <hidden>
Date: 2019-08-14 08:07:59

* Yu-cheng Yu:
+ENDBR
+    The compiler inserts an ENDBR at all valid branch targets.  Any
+    CALL/JMP to a target without an ENDBR triggers a control
+    protection fault.
Is this really correct?  I think ENDBR is needed only for indirect
branch targets where the jump/call does not have a NOTRACK prefix.  In
general, for security hardening, it seems best to minimize the number of
ENDBR instructions, and use NOTRACK for indirect jumps which derive the
branch target address from information that cannot be modified.

Thanks,
Florian

Re: [PATCH v8 01/27] Documentation/x86: Add CET description

From: Yu-cheng Yu <hidden>
Date: 2019-08-14 16:07:00

On Wed, 2019-08-14 at 10:07 +0200, Florian Weimer wrote:
* Yu-cheng Yu:
quoted
+ENDBR
+    The compiler inserts an ENDBR at all valid branch targets.  Any
+    CALL/JMP to a target without an ENDBR triggers a control
+    protection fault.
Is this really correct?  I think ENDBR is needed only for indirect
branch targets where the jump/call does not have a NOTRACK prefix.
You are right.  I will fix the wording.

Yu-cheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help