[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5ee9b2f6a7be2_1d4a2af9b18625c480@john-XPS-13-9370.notmuch>
Date: Tue, 16 Jun 2020 23:06:46 -0700
From: John Fastabend <john.fastabend@...il.com>
To: Toke Høiland-Jørgensen <toke@...hat.com>,
daniel@...earbox.net, ast@...com
Cc: Toke Høiland-Jørgensen <toke@...hat.com>,
bpf@...r.kernel.org, netdev@...r.kernel.org,
Xiumei Mu <xmu@...hat.com>
Subject: RE: [PATCH bpf] devmap: use bpf_map_area_alloc() for allocating hash
buckets
Toke Høiland-Jørgensen wrote:
> 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.
>
> Reported-by: Xiumei Mu <xmu@...hat.com>
> Fixes: 6f9d451ab1a3 ("xdp: Add devmap_hash map type for looking up devices by hashed index")
> Signed-off-by: Toke Høiland-Jørgensen <toke@...hat.com>
> ---
> kernel/bpf/devmap.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
Acked-by: John Fastabend <john.fastabend@...il.com>
Powered by blists - more mailing lists