Thread (1 message) 1 message, 1 author, 2019-06-10

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

From: Florian Weimer <hidden>
Date: 2019-06-10 17:28:55
Also in: linux-arch, linux-doc, linux-mm, lkml

* Yu-cheng Yu:
On Fri, 2019-06-07 at 14:09 -0700, Dave Hansen wrote:
quoted
On 6/7/19 1:06 PM, Yu-cheng Yu wrote:
quoted
quoted
Huh, how does glibc know about all possible past and future legacy code
in the application?
When dlopen() gets a legacy binary and the policy allows that, it will
manage
the bitmap:

  If a bitmap has not been created, create one.
  Set bits for the legacy code being loaded.
I was thinking about code that doesn't go through GLIBC like JITs.
If JIT manages the bitmap, it knows where it is.
It can always read the bitmap again, right?
The problem are JIT libraries without assembler code which can be marked
non-CET, such as liborc.  Our builds (e.g., orc-0.4.29-2.fc30.x86_64)
currently carries the IBT and SHSTK flag, although the entry points into
the generated code do not start with ENDBR, so that a jump to them will
fault with the CET enabled.

Thanks,
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help