On Mon, Nov 18, 2019 at 5:38 PM Daniel Borkmann <daniel@xxxxxxxxxxxxx> wrote: > > Add BPF_MOD_{NOP_TO_JUMP,JUMP_TO_JUMP,JUMP_TO_NOP} patching for x86 > JIT in order to be able to patch direct jumps or nop them out. We need > this facility in order to patch tail call jumps and in later work also > BPF static keys. > > Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andriin@xxxxxx> > arch/x86/net/bpf_jit_comp.c | 64 ++++++++++++++++++++++++++----------- > include/linux/bpf.h | 6 ++++ > 2 files changed, 52 insertions(+), 18 deletions(-) > [...]