]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: fix bpf selftest test_cgroup_storage failure
authorYonghong Song <yhs@fb.com>
Fri, 17 Aug 2018 15:54:15 +0000 (08:54 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Aug 2018 19:23:47 +0000 (12:23 -0700)
commit653c85eb5d8e6eb773feeb4f886bcfd59bdf870d
tree7adf0d64f31be5670c8d47e71ffa516d46fcbfcd
parent7c83d8185427fd5dfed68090e74812cede3b2a5b
tools/bpf: fix bpf selftest test_cgroup_storage failure

The bpf selftest test_cgroup_storage failed in one of
our production test servers.
  # sudo ./test_cgroup_storage
  Failed to create map: Operation not permitted

It turns out this is due to insufficient locked memory
with system default 16KB.

Similar to other self tests, let us arm the process
with unlimited locked memory. With this change,
the test passed.
  # sudo ./test_cgroup_storage
  test_cgroup_storage:PASS

Fixes: bacc95a191a4 ("selftests/bpf: add a cgroup storage test")
Cc: Roman Gushchin <guro@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Roman Gushchin <guro@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_cgroup_storage.c