Skip to content

bpftool: Restore memlock rlimit bump

Quentin Monnet bpf netdev 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2Revert "bpftool: Use libbpf 1.0 API mode instead of RLIMIT_MEMLOCK"tools/bpf/bpftool/common.c tools/bpf/bpftool/feature.c tools/bpf/bpftool/main.c +5 more+23 -316 repliesApplied
2/2bpftool: Do not check return value from libbpf_set_strict_mode()tools/bpf/bpftool/main.c+1 -30 repliesApplied

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/2] bpftool: Restore memlock rlimit bump

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(-)
Signature · 1 line
2.34.1