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)
commit196e8ca74886c433dcfc64a809707074b936aaf5
tree9f3f34d9f9792de7b9e7c5285926341f1957a9a2
parent91e6015b082b08a74e5d9d326f651e5890a93519
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 fc9702273e2e ("bpf: Add mmap() support for BPF_MAP_TYPE_ARRAY"),
we need to apply the same logic as in ff1c08e1f74b ("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