bpf: add bpf_patch_insn_single helper
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 May 2016 17:08:30 +0000 (19:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:49:32 +0000 (13:49 -0400)
commitc237ee5eb33bf19fe0591c04ff8db19da7323a83
tree8db90add83d5becc20b69434523448970ec16351
parent93a73d442d370e20ed1009cd79cb29c4d7c0ee86
bpf: add bpf_patch_insn_single helper

Move the functionality to patch instructions out of the verifier
code and into the core as the new bpf_patch_insn_single() helper
will be needed later on for blinding as well. No changes in
functionality.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
kernel/bpf/core.c
kernel/bpf/verifier.c