Re: [PATCH v22 8/8] x86/vdso: Add ENDBR64 to __vdso_sgx_enter_enclave

From
Jarkko Sakkinen <jarkko@kernel.org>
Date
2021-03-12 16:57:44
Also in
linux-api, linux-arch, linux-mm, lkml
Reply to
Peter Zijlstra, 2021-03-11
On Thu, Mar 11, 2021 at 09:42:05AM +0100, Peter Zijlstra wrote:
On Thu, Mar 11, 2021 at 05:36:06AM +0200, Jarkko Sakkinen wrote:
quoted
Does it do any harm to put it there unconditionally?
Blows up your text footprint and I$ pressure. These instructions are 4
bytes each.

Aside from that, they're a NOP, so only consume front-end resources
(hopefully) on older CPUs and when IBT is disabled.
OK, understood, thanks for the explanation.

/Jarkko
Thread (21 messages) 21 messages, 5 authors, last reply 2021-03-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help