<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:793133903;
        mso-list-template-ids:-983137500;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">Hi All,<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">Jump Oriented Programming attacks rely on tampering addresses used by indirect call / jmp, e.g. redirect control-flow to non-programmer intended bytes in binary.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">A new target independent command line option –fcf-protection=<branch/return/full/none> instruments control flow protection schemes to handle such attacks.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">X86 Supports Indirect Branch Tracking (IBT) as part of Control-Flow Enforcement Technology (CET).<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">IBT instruments ENDBR instructions (when –fcf-protection=branch is asserted) used to specify valid targets of indirect call / jmp.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">The `nocf_check`  attribute indicates that no control-flow check will be performed on the attributed entity.
<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">It disables -fcf-protection=<> for a specific entity to fine grain the HW control flow protection mechanism.
<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">The flag is target independent and currently appertains to a function or function pointer.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">The `nocf_check` attribute has two roles in the context of X86 IBT technology:<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-18.0pt;line-height:20.4pt;mso-list:l0 level1 lfo1;background:white">
<![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">     
</span></span><![endif]><span dir="LTR"></span>Appertains to a function - do not add ENDBR instruction at the beginning of the function.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:22.5pt;text-indent:-18.0pt;line-height:20.4pt;mso-list:l0 level1 lfo1;background:white">
<![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">     
</span></span><![endif]><span dir="LTR"></span>Appertains to a function pointer - do not track the target function of this pointer by adding nocf_check prefix to the indirect-call instruction.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">When the CPU decodes `nocf_check` prefix, it will not update IBT state machine, hence, the target addresses of the following indirect jump will not be tracked.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">The naming convention and implementation follow GCC.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">I will be happy to address any concerns raised by the community regarding the attribute.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">Cheers,<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:9.0pt;background:white">Oren<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p>---------------------------------------------------------------------<br>
Intel Israel (74) Limited</p>

<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></body>
</html>