[PATCH bpf-next v3 1/4] x86/ibt: factor out cfi and fineibt offset
Peter Zijlstra
peterz at infradead.org
Mon Mar 3 01:18:11 PST 2025
On Mon, Mar 03, 2025 at 02:53:42PM +0800, Menglong Dong wrote:
> index c71b575bf229..ad050d09cb2b 100644
> --- a/arch/x86/kernel/alternative.c
> +++ b/arch/x86/kernel/alternative.c
> @@ -908,7 +908,7 @@ void __init_or_module noinline apply_seal_endbr(s32 *start, s32 *end, struct mod
>
> poison_endbr(addr, wr_addr, true);
> if (IS_ENABLED(CONFIG_FINEIBT))
> - poison_cfi(addr - 16, wr_addr - 16);
> + poison_cfi(addr, wr_addr);
> }
> }
If you're touching this code, please use tip/x86/core or tip/master.
More information about the linux-arm-kernel
mailing list