Skip to content

bpf: invalidate unused part of bpf_prog_pack

Song Liu bpf lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v14 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: fill new bpf_prog_pack with illegal instructionskernel/bpf/core.c+6 -40 replies
2/3x86/alternative: introduce text_poke_setarch/x86/include/asm/text-patching.h arch/x86/kernel/alternative.c+61 -100 replies
3/3bpf: introduce bpf_arch_text_invalidate for bpf_prog_packarch/x86/net/bpf_jit_comp.c include/linux/bpf.h kernel/bpf/core.c+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH bpf v2 0/3] bpf: invalidate unused part of bpf_prog_pack

Note: while prefixed with "bpf", this set is based on Linus' master branch.

This is v2 of [1]. It is revised based on Peter's feedback. The patch is also split into 3.

[1] https://lore.kernel.org/linux-mm/[email protected]/

Song Liu (3):
bpf: fill new bpf_prog_pack with illegal instructions x86/alternative: introduce text_poke_set
bpf: introduce bpf_arch_text_invalidate for bpf_prog_pack

 arch/x86/include/asm/text-patching.h |  1 +
 arch/x86/kernel/alternative.c        | 70 ++++++++++++++++++++++++----
 arch/x86/net/bpf_jit_comp.c          |  5 ++
 include/linux/bpf.h                  |  1 +
 kernel/bpf/core.c                    | 18 +++++--
 5 files changed, 81 insertions(+), 14 deletions(-)

--
2.30.2