]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: add memlock precharge for socket local storage
authorRoman Gushchin <guro@fb.com>
Thu, 30 May 2019 01:03:56 +0000 (18:03 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 31 May 2019 23:52:56 +0000 (16:52 -0700)
commitfb161f939a5df14709c53ca9c1b31178914be15d
treec9491529cefef7904504ba174973f96cbd73aff7
parentd0b29848bb35f53388e9447b80dff1da1287131b
bpf: add memlock precharge for socket local storage

Socket 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>
net/core/bpf_sk_storage.c