bpf: don't allow create maps of per-cpu cgroup local storages
authorRoman Gushchin <guro@fb.com>
Fri, 28 Sep 2018 14:45:46 +0000 (14:45 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 1 Oct 2018 14:18:33 +0000 (16:18 +0200)
commitc6fdcd6e0cc4dc316e3eb261025fb0abd69540b9
tree2ba97812bcd679f80ed3473c1354e2d1f7c8b862
parentb741f1630346defcbc8cc60f1a2bdae8b3b0036f
bpf: don't allow create maps of per-cpu cgroup local storages

Explicitly forbid creating map of per-cpu cgroup local storages.
This behavior matches the behavior of shared cgroup storages.

Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/map_in_map.c