Skip to content

bpf: Fix map poke update

Jiri Olsa bpf stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1bpf: Fix prog_array_map_poke_run map poke updatearch/x86/net/bpf_jit_comp.c include/linux/bpf.h kernel/bpf/arraymap.c+59 -480 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchYonghong Song
1/1A-b

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

Read the v1 thread

Cover letter [PATCH stable 5.15 0/1] bpf: Fix map poke update

hi,
sending the 5.15 backport of map poke update fix [1].

It's not straight backport, the details are in changelog. I also backported the bpf selftest [2] to reproduce the issue and verify the fix, but it's more deviated from the upstream so I decided not to post it. Also I had to fix bpf selftests on other place to be able to compile them.

thanks,
jirka

[1] 4b7de801606e ("bpf: Fix prog_array_map_poke_run map poke update")
[2] ffed24eff9e0 ("selftests/bpf: Add test for early update in prog_array_map_poke_run")
---
Jiri Olsa (1):
bpf: Fix prog_array_map_poke_run map poke update

 arch/x86/net/bpf_jit_comp.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/bpf.h         |  3 +++
 kernel/bpf/arraymap.c       | 58 ++++++++++------------------------------------------------
 3 files changed, 59 insertions(+), 48 deletions(-)