Re: [PATCH bpf 1/2] bpf, x86: Fix FineIBT #CP in BPF dispatcher's indirect-jump fallback

From: David Windsor

Date: Tue Jul 07 2026 - 23:45:56 EST


On Tue, Jul 7, 2026 at 11:30 PM Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
>
> Comment style: /* should stay at its own line.
>
> > + if (cfi_mode == CFI_FINEIBT) {
> > + EMIT1_off32(0xb8, cfi_bpf_hash); /* mov $cfi_bpf_hash, %eax */
> > + EMIT1(add_1mod(0x48, BPF_REG_3)); /* sub rdx, cfi_get_offset() */
> > + EMIT2_off32(0x81, add_1reg(0xE8, BPF_REG_3), cfi_get_offset());
> > + }
>
>
> Better to emit_cfi()?
>

Yes, thanks. Will do this for v2.