BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] Preparatory libbpf fixes and clean ups
@ 2022-08-16  0:13 Andrii Nakryiko
  0 siblings, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2022-08-16  0:13 UTC (permalink / raw)
  To: bpf, ast, daniel; +Cc: andrii, kernel-team

Few fixes and clean up in preparation for finalizing libbpf 1.0.

Main change is switching libbpf to initializing only relevant portions of
union bpf_attr for any given BPF command. This has been on a wishlist for
a while, so finally this is done. While cleaning this up, I've also cleaned up
few other placed were we didn't use explicit memset() with kernel UAPI structs
(perf_event_attr, bpf_map_info, bpf_prog_info, etc).

Also few fixes to test_progs that came up while testing selftests in release
mode.


Andrii Nakryiko (4):
  libbpf: fix potential NULL dereference when parsing ELF
  libbpf: streamline bpf_attr and perf_event_attr initialization
  libbpf: clean up deprecated and legacy aliases
  selftests/bpf: few fixes for selftests/bpf built in release mode

 tools/lib/bpf/bpf.c                           | 178 ++++++++++--------
 tools/lib/bpf/btf.c                           |   2 -
 tools/lib/bpf/btf.h                           |   1 -
 tools/lib/bpf/libbpf.c                        |  47 +++--
 tools/lib/bpf/libbpf_legacy.h                 |   2 +
 tools/lib/bpf/netlink.c                       |   3 +-
 tools/lib/bpf/skel_internal.h                 |  10 +-
 .../selftests/bpf/prog_tests/attach_probe.c   |   6 +-
 .../selftests/bpf/prog_tests/bpf_cookie.c     |   2 +-
 .../selftests/bpf/prog_tests/task_pt_regs.c   |   2 +-
 tools/testing/selftests/bpf/xskxceiver.c      |   2 +-
 11 files changed, 147 insertions(+), 108 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH bpf-next 0/4] Preparatory libbpf fixes and clean ups
@ 2022-08-16  0:19 Andrii Nakryiko
  2022-08-17 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 3+ messages in thread
From: Andrii Nakryiko @ 2022-08-16  0:19 UTC (permalink / raw)
  To: bpf, ast, daniel; +Cc: andrii, kernel-team

Few fixes and clean up in preparation for finalizing libbpf 1.0.

Main change is switching libbpf to initializing only relevant portions of
union bpf_attr for any given BPF command. This has been on a wishlist for
a while, so finally this is done. While cleaning this up, I've also cleaned up
few other placed were we didn't use explicit memset() with kernel UAPI structs
(perf_event_attr, bpf_map_info, bpf_prog_info, etc).

Also few fixes to test_progs that came up while testing selftests in release
mode.


Andrii Nakryiko (4):
  libbpf: fix potential NULL dereference when parsing ELF
  libbpf: streamline bpf_attr and perf_event_attr initialization
  libbpf: clean up deprecated and legacy aliases
  selftests/bpf: few fixes for selftests/bpf built in release mode

 tools/lib/bpf/bpf.c                           | 178 ++++++++++--------
 tools/lib/bpf/btf.c                           |   2 -
 tools/lib/bpf/btf.h                           |   1 -
 tools/lib/bpf/libbpf.c                        |  47 +++--
 tools/lib/bpf/libbpf_legacy.h                 |   2 +
 tools/lib/bpf/netlink.c                       |   3 +-
 tools/lib/bpf/skel_internal.h                 |  10 +-
 .../selftests/bpf/prog_tests/attach_probe.c   |   6 +-
 .../selftests/bpf/prog_tests/bpf_cookie.c     |   2 +-
 .../selftests/bpf/prog_tests/task_pt_regs.c   |   2 +-
 tools/testing/selftests/bpf/xskxceiver.c      |   2 +-
 11 files changed, 147 insertions(+), 108 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH bpf-next 0/4] Preparatory libbpf fixes and clean ups
  2022-08-16  0:19 Andrii Nakryiko
@ 2022-08-17 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-08-17 21:00 UTC (permalink / raw)
  To: Andrii Nakryiko; +Cc: bpf, ast, daniel, kernel-team

Hello:

This series was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Mon, 15 Aug 2022 17:19:25 -0700 you wrote:
> Few fixes and clean up in preparation for finalizing libbpf 1.0.
> 
> Main change is switching libbpf to initializing only relevant portions of
> union bpf_attr for any given BPF command. This has been on a wishlist for
> a while, so finally this is done. While cleaning this up, I've also cleaned up
> few other placed were we didn't use explicit memset() with kernel UAPI structs
> (perf_event_attr, bpf_map_info, bpf_prog_info, etc).
> 
> [...]

Here is the summary with links:
  - [bpf-next,1/4] libbpf: fix potential NULL dereference when parsing ELF
    https://git.kernel.org/bpf/bpf-next/c/d4e6d684f3be
  - [bpf-next,2/4] libbpf: streamline bpf_attr and perf_event_attr initialization
    https://git.kernel.org/bpf/bpf-next/c/813847a31447
  - [bpf-next,3/4] libbpf: clean up deprecated and legacy aliases
    https://git.kernel.org/bpf/bpf-next/c/abf84b64e36b
  - [bpf-next,4/4] selftests/bpf: few fixes for selftests/bpf built in release mode
    https://git.kernel.org/bpf/bpf-next/c/df78da27260c

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-17 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-16  0:13 [PATCH bpf-next 0/4] Preparatory libbpf fixes and clean ups Andrii Nakryiko
  -- strict thread matches above, loose matches on Subject: below --
2022-08-16  0:19 Andrii Nakryiko
2022-08-17 21:00 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox