Skip to content

bpf: Fix map poke update

Jiri Olsa bpf stable 4 versions – Applied

Status from this message: This series was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 7 repliesApplied 2/2
  2. v32 patches 5 repliesSuperseded
  3. v22 patches 12 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch1 replySuperseded

Changes in v4 from the cover letter

- added missing bpf_arch_poke_desc_update prototype [lkp]
- added comments to the test
- moved the test under prog_tests/tailcalls.c

Patches in v4 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Fix prog_array_map_poke_run map poke updatearch/x86/net/bpf_jit_comp.c include/linux/bpf.h kernel/bpf/arraymap.c+59 -487 repliesApplied
2/2selftests/bpf: Add test for early update in prog_array_map_poke_runtools/testing/selftests/bpf/prog_tests/tailcalls.c tools/testing/selftests/bpf/progs/tailcall_poke.c+116 -00 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYonghong SongIlya Leoshkevich
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCHv4 bpf 0/2] bpf: Fix map poke update

hi,
this patchset fixes the issue reported in [0].

v4 changes:
- added missing bpf_arch_poke_desc_update prototype [lkp]
- added comments to the test
- moved the test under prog_tests/tailcalls.c

thanks,
jirka

[0] https://syzkaller.appspot.com/bug?extid=97a4fe20470e9bc30810
---
Jiri Olsa (2):
bpf: Fix prog_array_map_poke_run map poke update selftests/bpf: Add test for early update in prog_array_map_poke_run

 arch/x86/net/bpf_jit_comp.c                        | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/bpf.h                                |  3 +++
 kernel/bpf/arraymap.c                              | 58 ++++++++++------------------------------------------------
 tools/testing/selftests/bpf/prog_tests/tailcalls.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/tailcall_poke.c  | 32 ++++++++++++++++++++++++++++++++
 5 files changed, 175 insertions(+), 48 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/tailcall_poke.c