From: Andrei Matei <andreimatei1@gmail.com>
To: bpf@vger.kernel.org
Cc: Andrei Matei <andreimatei1@gmail.com>
Subject: [PATCH bpf-next 0/1] libbpf: fail early when loading programs with unspecified type
Date: Mon, 30 Nov 2020 23:41:03 -0500 [thread overview]
Message-ID: <20201201044104.24948-1-andreimatei1@gmail.com> (raw)
This patch should help people who misunderstand the importance of using
proper prefixes to their ELF sections in bpf object files. The patch
assumes that programs with type BPF_PROG_TYPE_UNSPEC are always invalid,
as indicated by `man 2 bpf`. Please let me know if that is not accurate.
Andrei Matei (1):
libbpf: fail early when loading programs with unspecified type
tools/lib/bpf/libbpf.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
--
2.27.0
next reply other threads:[~2020-12-01 4:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 4:41 Andrei Matei [this message]
2020-12-01 4:41 ` [PATCH bpf-next 1/1] libbpf: fail early when loading programs with unspecified type Andrei Matei
2020-12-02 1:52 ` Andrii Nakryiko
2020-12-02 1:39 ` [PATCH bpf-next 0/1] " Andrii Nakryiko
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=20201201044104.24948-1-andreimatei1@gmail.com \
--to=andreimatei1@gmail.com \
--cc=bpf@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.