lkml.org 
[lkml]   [2023]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 12/17] x86/cpu: Rename original retbleed return thunk
On Wed, Aug 09, 2023 at 09:12:30AM +0200, Peter Zijlstra wrote:
> +++ b/tools/objtool/check.c
> @@ -455,7 +455,12 @@ static int decode_instructions(struct ob
> return -1;
> }
>
> - if (func->return_thunk || !strcmp(func->name, "srso_safe_ret") || func->alias != func)
> + /*
> + * Both zen_return_thunk() and srso_safe_ret() are embedded inside
> + * another instruction and objtool doesn't grok that. Skip validating them.
> + */
> + if (!strcmp(func->name, "zen_return_thunk") ||
> + !strcmp(func->name, "srso_safe_ret") || func->alias != func)

Hm, speaking of renaming they should probably be called
retbleed_return_thunk() and srso_return_thunk().

--
Josh

\
 
 \ /
  Last update: 2023-08-09 16:21    [W:0.200 / U:1.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site