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

Borislav Petkov
2025-10-21T12:48:31Z

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...

--
Regards/Gruss,
Boris.