Re: [PATCH v10 02/15] x86/asm: Introduce inline memcpy and memset

Sohil Mehta
2025-10-21T18:06:11Z

On 10/21/2025 5:47 AM, Borislav Petkov wrote:
> On Mon, Oct 06, 2025 at 11:51:06PM -0700, Sohil Mehta wrote:
>> From: "Peter Zijlstra (Intel)" <peterz@infradead.org>
>>
>> Provide inline memcpy and memset functions that can be used instead of
>> the GCC builtins when necessary. The immediate use case is for the text
>> poking functions to avoid the standard memcpy()/memset() calls within an
>> RFLAGS.AC=1 context.
>
> ... because objtool does not allow function calls with AC=1 because... see
> objtool/Documentation/objtool.txt, warning type 9, yadda yadda...
>

Sure, will add some notes here as well as in the next patch where it is
used.