Re: [RFC] x86/alternative: Support relocations in alternatives

From: Borislav Petkov
Date: Fri Feb 03 2023 - 11:04:47 EST


On Fri, Feb 03, 2023 at 04:04:55PM +0100, Peter Zijlstra wrote:
> How about:
>
> apply_relocation(u8 *buf, size_t len, u8 *dst, u8 *src, size_t src_len)
>
> Because I get horribly confused by the whole instr and repl thing.

And I get confused by the @src thing. :-)

When it says repl, I know it is the replacement instruction and its
length. You could add kernel-doc as a help I guess...

Rest on IRC. :)

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette