On Wed, Oct 23, 2024 at 1:29 AM Shung-Hsi Yu <shung-hsi.yu@xxxxxxxx> wrote: > > Hi Andrii, > > I was looking around in do_misc_fixups() and came across this > > ... > > + new_prog = bpf_patch_insn_data(env, i + delta, insn_buf, cnt); > > + if (!new_prog) > > + return -ENOMEM; > > + > > + delta += cnt - 1; > > + env->prog = prog = new_prog; > > + insn = new_prog->insnsi + i + delta; > > + continue; > > Should the above be turned into "goto next_insn" like the others that > were touched by commit 011832b97b31 "bpf: Introduce may_goto > instruction"? > Yep, seems so, thanks for catching. I'll send a fix. > > + } > > + > > /* Implement bpf_kptr_xchg inline */ > > if (prog->jit_requested && BITS_PER_LONG == 64 && > > insn->imm == BPF_FUNC_kptr_xchg &&