]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add memlock precharge check for cgroup_local_storage
authorRoman Gushchin <guro@fb.com>
Thu, 30 May 2019 01:03:55 +0000 (18:03 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 May 2019 23:52:56 +0000 (16:52 -0700)
commitd0b29848bb35f53388e9447b80dff1da1287131b
tree523f1fef5ad42f9e282d30390dc8ceb16d813d6c
parent7e23ef63d1e5fa4a10071eb3f61d1121278e9ff9
bpf: add memlock precharge check for cgroup_local_storage

Cgroup local storage maps lack the memlock precharge check,
which is performed before the memory allocation for
most other bpf map types.

Let's add it in order to unify all map types.

Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/local_storage.c