lkml.org 
[lkml]   [2022]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 00/38] x86/retbleed: Call depth tracking mitigation
    On Mon, Jul 18, 2022 at 05:19:13PM -0700, Joao Moreira wrote:
    > > The extra instruction is likely less of a problem than the extra
    > > register used.
    > >
    > FWIIW, per-ABI, R11 is a scratch-reg and should be usable without hard
    > consequences in this scenario.

    Clang always uses r11 for the indirect call with retpolines, so we'd
    need to use another register. Nevertheless, splitting the constant into
    two instructions would solve the call target gadget issue.

    Sami

    \
     
     \ /
      Last update: 2022-07-19 19:22    [W:2.068 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site