netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpftool: Restore memlock rlimit bump
@ 2022-06-10 11:26 Quentin Monnet
  2022-06-10 11:26 ` [PATCH bpf-next 1/2] Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK" Quentin Monnet
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Quentin Monnet @ 2022-06-10 11:26 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: Yafang Shao, Harsh Modi, Paul Chaignon, netdev, bpf,
	Quentin Monnet

We recently removed the uncondtional rlimit bump from bpftool, deferring it
to libbpf to probe the system for memcg-based memory accounting and to
raise the rlimit if necessary.

This probing is based on the availability of a given BPF helper, and his
known to fail on some environments where the helper, but not the memcg
memory accounting, has been backported.

To work around this, this set restores the memlock rlimit bump in bpftool.
Please see the description of the first patch for more details.

Quentin Monnet (2):
  Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK"
  bpftool: Do not check return value from libbpf_set_strict_mode()

 tools/bpf/bpftool/common.c     | 8 ++++++++
 tools/bpf/bpftool/feature.c    | 2 ++
 tools/bpf/bpftool/main.c       | 2 --
 tools/bpf/bpftool/main.h       | 2 ++
 tools/bpf/bpftool/map.c        | 2 ++
 tools/bpf/bpftool/pids.c       | 1 +
 tools/bpf/bpftool/prog.c       | 3 +++
 tools/bpf/bpftool/struct_ops.c | 2 ++
 8 files changed, 20 insertions(+), 2 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-06-16 20:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 11:26 [PATCH bpf-next 0/2] bpftool: Restore memlock rlimit bump Quentin Monnet
2022-06-10 11:26 ` [PATCH bpf-next 1/2] Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK" Quentin Monnet
2022-06-10 16:07   ` sdf
2022-06-10 16:34     ` Quentin Monnet
2022-06-10 16:46       ` Stanislav Fomichev
2022-06-10 17:00         ` Quentin Monnet
2022-06-10 17:17           ` Stanislav Fomichev
2022-06-14 12:37             ` Yafang Shao
2022-06-14 14:20               ` Quentin Monnet
2022-06-14 20:34                 ` Daniel Borkmann
2022-06-14 21:01                   ` Stanislav Fomichev
2022-06-15 13:22                 ` Yafang Shao
2022-06-15 15:52                   ` Stanislav Fomichev
2022-06-15 16:05                     ` Yafang Shao
2022-06-16 13:59                       ` Quentin Monnet
2022-06-16 14:54                         ` Yafang Shao
2022-06-16 18:07                           ` Stanislav Fomichev
2022-06-16 20:40                             ` Andrii Nakryiko
2022-06-10 11:26 ` [PATCH bpf-next 2/2] bpftool: Do not check return value from libbpf_set_strict_mode() Quentin Monnet
2022-06-14 20:37 ` [PATCH bpf-next 0/2] bpftool: Restore memlock rlimit bump 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;
as well as URLs for NNTP newsgroup(s).