From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Anton Ivanov <anton.ivanov@kot-begemot.co.uk>, netdev@vger.kernel.org
Subject: Re: NULL pointer dereference in libbpf
Date: Fri, 18 Jun 2021 11:24:58 +0200 [thread overview]
Message-ID: <87a6nnv82d.fsf@toke.dk> (raw)
In-Reply-To: <6f6476fb-4b02-e543-6dad-aca3f9b5881c@kot-begemot.co.uk>
Anton Ivanov <anton.ivanov@kot-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...
-Toke
next prev parent reply other threads:[~2021-06-18 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-18 9:14 NULL pointer dereference in libbpf Anton Ivanov
2021-06-18 9:24 ` Toke Høiland-Jørgensen [this message]
2021-06-18 9:54 ` Anton Ivanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6nnv82d.fsf@toke.dk \
--to=toke@redhat.com \
--cc=anton.ivanov@kot-begemot.co.uk \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).