Skip to content

bpf: memory access fixes

Jamal Hadi Salim netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 7 repliesIn review
  2. v22 patches 9 repliesSuperseded
  3. v11 patch 5 repliesSuperseded

Changes in v3 from the cover letter

1) Dont initialize tmp on stack (Stephen)
2) Dont look at the return code of snprintf (Dominique)
3) Set errno to EINVAL instead of returning -EINVAL for consistency (Dominique)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: Fix segfault when custom pinning is usedlib/bpf.c+2 -70 replies
2/2bpf: Fix mem leak and extraneous free() in error pathlib/bpf.c+5 -30 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDominique MartinetAndrea Claudi
SeriesCaught-by A-b
1/2
2/2

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

Read the v3 thread

Cover letter [PATCH iproute2 v3 0/2] bpf: memory access fixes

From: Jamal Hadi Salim <[email protected]>

Changes from V2:
1) Dont initialize tmp on stack (Stephen)
2) Dont look at the return code of snprintf (Dominique)
3) Set errno to EINVAL instead of returning -EINVAL for consistency (Dominique)

Changes from V1:
1) use snprintf instead of sprintf and fix corresponding error message.

2) Fix memory leak and extraneous free() in error path

Jamal Hadi Salim (2):
bpf: Fix segfault when custom pinning is used
bpf: Fix mem leak and extraneous free() in error path

 lib/bpf.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)
Signature · 1 line
2.20.1