summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2019-11-22 21:07:54 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-11-24 16:58:47 -0800
commit4b3da77b72ad6b3c48c6fe4a395ace7db39a12c5 (patch)
tree3c65c1076f917574a67c3ee1c4de18364549bebc /net
parentc4781e37c6a22c39cb4a57411d14f42aca124f04 (diff)
bpf, x86: Generalize and extend bpf_arch_text_poke for direct jumps
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@iogearbox.net> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/aa4784196a8e5e985af4b30a4fe5336bce6e9643.1574452833.git.daniel@iogearbox.net
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions