]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Switch bpf_map_{area_alloc,area_mmapable_alloc}() to u64 size
authorDaniel Borkmann <daniel@iogearbox.net>
Wed, 20 Nov 2019 22:04:44 +0000 (23:04 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 20 Nov 2019 22:18:58 +0000 (23:18 +0100)
commit61af70b5ed4eec1f292acee8db581adb3ecd70e7
tree9f3f34d9f9792de7b9e7c5285926341f1957a9a2
parentd4a295fbf279a5e2456400173542ae64cb13fc3c
bpf: Switch bpf_map_{area_alloc,area_mmapable_alloc}() to u64 size

Given we recently extended the original bpf_map_area_alloc() helper in
commit d41da1a54b88 ("bpf: Add mmap() support for BPF_MAP_TYPE_ARRAY"),
we need to apply the same logic as in c480fd9d21fe ("bpf: Change size
to u64 for bpf_map_{area_alloc, charge_init}()"). To avoid conflicts,
extend it for bpf-next.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf.h
kernel/bpf/syscall.c