lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c7d729d9-dbb0-b976-6364-030384cb8bf9@fb.com>
Date:   Thu, 7 Nov 2019 14:33:02 +0000
From:   Alexei Starovoitov <ast@...com>
To:     Alexei Starovoitov <ast@...nel.org>,
        "davem@...emloft.net" <davem@...emloft.net>
CC:     "daniel@...earbox.net" <daniel@...earbox.net>,
        "x86@...nel.org" <x86@...nel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH v2 bpf-next 16/17] libbpf: Add support for attaching BPF
 programs to other BPF programs

On 11/6/19 9:46 PM, Alexei Starovoitov wrote:
> @@ -3924,6 +3965,14 @@ __bpf_object__open(const char *path, const void *obj_buf, size_t obj_buf_sz,
>   		bpf_program__set_type(prog, prog_type);
>   		bpf_program__set_expected_attach_type(prog, attach_type);
>   		if (prog_type == BPF_PROG_TYPE_TRACING) {
> +			if (attach_prog_fd) {
> +				err = libbpf_get_prog_btf_id(attach_prog_fd, prog->section_name + 6);
> +				if (err > 0) {
> +					btf_id = err;
> +					err = 0;
> +					prog->attach_prog_fd = attach_prog_fd;
> +				}
> +			} else
>   			err = libbpf_attach_btf_id_by_name(prog->section_name,

forgot to squash small cleanup here last night.
pls ignore this particular patch.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ