bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/1] libbpf: fail early when loading programs with unspecified type
@ 2020-12-01  4:41 Andrei Matei
  2020-12-01  4:41 ` [PATCH bpf-next 1/1] " Andrei Matei
  2020-12-02  1:39 ` [PATCH bpf-next 0/1] " Andrii Nakryiko
  0 siblings, 2 replies; 4+ messages in thread
From: Andrei Matei @ 2020-12-01  4:41 UTC (permalink / raw)
  To: bpf; +Cc: Andrei Matei

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-02  1:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01  4:41 [PATCH bpf-next 0/1] libbpf: fail early when loading programs with unspecified type Andrei Matei
2020-12-01  4:41 ` [PATCH bpf-next 1/1] " Andrei Matei
2020-12-02  1:52   ` Andrii Nakryiko
2020-12-02  1:39 ` [PATCH bpf-next 0/1] " Andrii Nakryiko

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).