lkml.org 
[lkml]   [2020]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH v9 01/27] Documentation/x86: Add CET description
Date

> On Mar 9, 2020, at 2:13 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> On Mon, Mar 9, 2020 at 1:59 PM Dave Hansen <dave.hansen@intel.com> wrote:
>>
>> On 3/9/20 1:54 PM, H.J. Lu wrote:
>>>> If a program with the magic ELF CET flags missing can’t make a
>>>> thread with IBT and/or SHSTK enabled, then I think we’ve made an
>>>> error and should fix it.
>>>>
>>> A non-CET program can start a CET program and vice versa.
>>
>> Could we be specific here, please?
>>
>> HJ are you saying that:
>> * CET program can execve() a non-CET program, and
>> * a non-CET program can execve() a CET program
>>
>> ?
>
> Yes.
>
>> That's obvious.
>>
>> But what are the rules for clone()? Should there be rules for
>> mismatches for CET enabling between threads if a process (not child
>> processes)?
>
> What did you mean? A threaded application is either CET enabled or not
> CET enabled. A new thread from clone makes no difference.

Why? Dave’s example seems like a good reason to allow per-thread control.



>
> --
> H.J.

\
 
 \ /
  Last update: 2020-03-09 23:03    [W:0.111 / U:2.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site