Skip to content

Fix bugs and issues found by static analysis in libbpf

Andrii Nakryiko bpf netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libbpf: fix memory leak/double free issuetools/lib/bpf/libbpf.c+1 -10 replies
2/5libbpf: fix potential overflow issuetools/lib/bpf/bpf.c+1 -10 replies
3/5libbpf: fix another potential overflow issue in bpf_prog_linfotools/lib/bpf/bpf_prog_linfo.c+7 -70 replies
4/5libbpf: make btf__resolve_size logic always check size error conditiontools/lib/bpf/btf.c+1 -20 replies
5/5libbpf: improve handling of corrupted ELF during map initializationtools/lib/bpf/libbpf.c+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/5] Fix bugs and issues found by static analysis in libbpf

Github's mirror of libbpf got LGTM and Coverity statis analysis running against it and spotted few real bugs and few potential issues. This patch series fixes found issues.

Andrii Nakryiko (5):
libbpf: fix memory leak/double free issue
libbpf: fix potential overflow issue
libbpf: fix another potential overflow issue in bpf_prog_linfo
libbpf: make btf__resolve_size logic always check size error condition
libbpf: improve handling of corrupted ELF during map initialization

 tools/lib/bpf/bpf.c            |  2 +-
 tools/lib/bpf/bpf_prog_linfo.c | 14 +++++++-------
 tools/lib/bpf/btf.c            |  3 +--
 tools/lib/bpf/libbpf.c         |  6 +++---
 4 files changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
2.17.1