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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 15 Jan 2020 12:05:17 -0800
From:   Alexei Starovoitov <>
To:     Andrii Nakryiko <>
Cc:,,,,,,, Alexei Starovoitov <>
Subject: Re: [PATCH v2 bpf-next] libbpf: support .text sub-calls relocations

On Wed, Jan 15, 2020 at 11:08:56AM -0800, Andrii Nakryiko wrote:
> The LLVM patch makes LLVM emit function call
> relocations within the same section. This includes a default .text section,
> which contains any BPF sub-programs. This wasn't the case before and so libbpf
> was able to get a way with slightly simpler handling of subprogram call
> relocations.
> This patch adds support for .text section relocations. It needs to ensure
> correct order of relocations, so does two passes:
> - first, relocate .text instructions, if there are any relocations in it;
> - then process all the other programs and copy over patched .text instructions
> for all sub-program calls.
> v1->v2:
> - break early once .text program is processed.
> Cc: Yonghong Song <>
> Cc: Alexei Starovoitov <>
> Signed-off-by: Andrii Nakryiko <>

Tested with the latest llvm trunk (which points to version 11 already)
and all tests pass.
Applied. Thanks

Powered by blists - more mailing lists