[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ca30a5d9-3ea7-ca1a-3cb6-bc01fbdb4805@kot-begemot.co.uk>
Date: Fri, 18 Jun 2021 10:54:30 +0100
From: Anton Ivanov <anton.ivanov@...-begemot.co.uk>
To: Toke Høiland-Jørgensen <toke@...hat.com>,
netdev@...r.kernel.org
Subject: Re: NULL pointer dereference in libbpf
On 18/06/2021 10:24, Toke Høiland-Jørgensen wrote:
> Anton Ivanov <anton.ivanov@...-begemot.co.uk> writes:
>
>> https://elixir.bootlin.com/linux/latest/source/tools/lib/bpf/bpf.c#L91
>>
>> A string is copied to a pointer destination which has been memset to
>> zero a few lines above.
>
> No, it isn't. attr.map_name is an array...
Apologies, looking at the wrong struct definition (bpf_create_map_attr instead of bpf_attr).
Best Regards,
>
> -Toke
>
>
--
Anton R. Ivanov
https://www.kot-begemot.co.uk/
Powered by blists - more mailing lists