Patch "bpf: add bpf_patch_insn_single helper" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
bpf: add bpf_patch_insn_single helper
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bpf-add-bpf_patch_insn_single-helper.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
c237ee5eb33bf19fe0591c04ff8db19da7323a83Mon Sep 17 00:00:00 2001
From: Daniel Borkmann <[email protected]>
Date: Fri, 13 May 2016 19:08:30 +0200
Subject: bpf: add bpf_patch_insn_single helper
From: Daniel Borkmann <[email protected]>
commit c237ee5eb33bf19fe0591c04ff8db19da7323a83 upstream.
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.
include/linux/filter.h +3 -0
@@ -495,6 +495,9 @@ u64 __bpf_call_base(u64 r1, u64 r2, u64 r3, u64 r4, u64 r5);void bpf_int_jit_compile (struct bpf_prog *fp);bool bpf_helper_changes_skb_data (void *func); +struct bpf_prog *bpf_patch_insn_single (struct bpf_prog *prog,u32 off, +const struct bpf_insn *patch,u32 len); +#ifdef CONFIG_BPF_JIT extern int bpf_jit_enable;
kernel/bpf/core.c +71 -0
77 lines not on this page · raw message
kernel/bpf/verifier.c +9 -44
83 lines not on this page · raw message
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/bpf-add-bpf_patch_insn_single-helper.patch