From: Yonghong Song <yhs@fb.com>
To: Lorenz Bauer <lmb@cloudflare.com>
Cc: bpf <bpf@vger.kernel.org>, Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Kernel Team <kernel-team@fb.com>,
John Fastabend <john.fastabend@gmail.com>
Subject: Re: [PATCH bpf-next] docs/bpf: add llvm_reloc.rst to explain llvm bpf relocations
Date: Mon, 24 May 2021 08:06:07 -0700 [thread overview]
Message-ID: <14599907-6a2c-d13b-2dcf-11fcf5f83219@fb.com> (raw)
In-Reply-To: <CACAyw9-G56AC5D_wqTi6wURk2BFrF-buuLS1S0F-ngDukb9qEQ@mail.gmail.com>
On 5/24/21 1:33 AM, Lorenz Bauer wrote:
> On Sat, 22 May 2021 at 17:44, Yonghong Song <yhs@fb.com> wrote:
>>
>> Daniel, John and Lorenz,
>>
>> Could you help check how the new relocation scheme
>> may impact you? libbpf has a similar issue and is fixed by
>> https://lore.kernel.org/bpf/20210522162341.3687617-1-yhs@fb.com/
>> In most cases, you should just change relocation enum number,
>> no relocation resolution is changed.
>>
>> Please let me know. Thanks!
>
> Thank you for the heads up :) cilium/ebpf currently doesn't look at
> relocation types at all for better or worse. We simply collect
> "well-known" sections like maps, programs, etc. and only process
> relocations for these. So your change won't break cilium/ebpf, but it
Thanks for confirmation. So yes, you should be fine though.
> makes me wonder whether we should check the relocation type.
If the library is used in a control environment, e.g., the object
file is generated by llvm, bpftool linker, etc. You should be fine.
But yes, checking relocation types will make the library more robust.
>
> Best
> Lorenz
>
next prev parent reply other threads:[~2021-05-24 15:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-22 16:39 [PATCH bpf-next] docs/bpf: add llvm_reloc.rst to explain llvm bpf relocations Yonghong Song
2021-05-22 16:44 ` Yonghong Song
2021-05-24 8:33 ` Lorenz Bauer
2021-05-24 15:06 ` Yonghong Song [this message]
2021-05-24 17:23 ` Andrii Nakryiko
2021-05-24 18:01 ` Yonghong Song
2021-05-24 19:20 ` Andrii Nakryiko
2021-05-24 19:24 ` John Fastabend
2021-05-25 3:39 ` Yonghong Song
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=14599907-6a2c-d13b-2dcf-11fcf5f83219@fb.com \
--to=yhs@fb.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=john.fastabend@gmail.com \
--cc=kernel-team@fb.com \
--cc=lmb@cloudflare.com \
/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