[lkml]   [2018]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v6 11/10] x86/retpoline: Avoid return buffer underflows on context switch
On Mon, Jan 8, 2018 at 3:44 PM, David Woodhouse <> wrote:
> To guard against this fill the return buffer with controlled
> content during context switch. This prevents any underflows.

Ugh. I really dislike this patch. Everything else in the retpoline
patches makes me go "ok, that's reasonable". This one makes me go

It's hacky, it's ugly, and it looks pretty expensive too.

Is there really nothing more clever we can do?


 \ /
  Last update: 2018-01-14 23:18    [W:0.184 / U:6.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site