mbox series

[bpf-next,0/1] libbpf: fail early when loading programs with unspecified type

Message ID 20201201044104.24948-1-andreimatei1@gmail.com (mailing list archive)
Headers show
Series libbpf: fail early when loading programs with unspecified type | expand

Message

Andrei Matei Dec. 1, 2020, 4:41 a.m. UTC
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(-)

Comments

Andrii Nakryiko Dec. 2, 2020, 1:39 a.m. UTC | #1
On Mon, Nov 30, 2020 at 8:43 PM Andrei Matei <andreimatei1@gmail.com> wrote:
>
> 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.
>

FYI, you don't need to send a cover letter with a single patch.


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