]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf74a7447d68a66626c6a6bff2438d3c5856bc7e
tree8db90add83d5becc20b69434523448970ec16351
parent7fc3b4bb08b454b47d37ec9c7e1ce6629a96e92a
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