bpf: don't accept cgroup local storage with zero value size
authorRoman Gushchin <guro@fb.com>
Tue, 2 Oct 2018 02:41:53 +0000 (02:41 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Oct 2018 12:42:23 +0000 (14:42 +0200)
commitb0584ea66d73919cbf5878a3420a837f06ab8396
treefebb516019d892aa68bae7634ab7394419be85ab
parent4288ea006c73e37c2a4f60dfaef20dd167b8df31
bpf: don't accept cgroup local storage with zero value size

Explicitly forbid creating cgroup local storage maps with zero value
size, as it makes no sense and might even cause a panic.

Reported-by: syzbot+18628320d3b14a5c459c@syzkaller.appspotmail.com
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/local_storage.c