diff options
author | Toke Høiland-Jørgensen <[email protected]> | 2020-06-16 16:28:29 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-06-17 10:01:19 -0700 |
commit | 99c51064fb06146b3d494b745c947e438a10aaa7 (patch) | |
tree | ca1db0445778ac64e06f13568d245bd060950915 /include/linux/fpga/fpga-mgr.h | |
parent | 3ff2351651a2ecb73ec9d29119793bde190b2850 (diff) |
devmap: Use bpf_map_area_alloc() for allocating hash buckets
Syzkaller discovered that creating a hash of type devmap_hash with a large
number of entries can hit the memory allocator limit for allocating
contiguous memory regions. There's really no reason to use kmalloc_array()
directly in the devmap code, so just switch it to the existing
bpf_map_area_alloc() function that is used elsewhere.
Fixes: 6f9d451ab1a3 ("xdp: Add devmap_hash map type for looking up devices by hashed index")
Reported-by: Xiumei Mu <[email protected]>
Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions