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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0be0a3b4d39e31653ce38c16b413d717921f2ced.camel@gmail.com>
Date: Thu, 18 Dec 2025 11:22:40 -0800
From: Eduard Zingerman <eddyz87@...il.com>
To: Ihor Solodrai <ihor.solodrai@...ux.dev>, Alan Maguire	
 <alan.maguire@...cle.com>, Alexei Starovoitov <ast@...nel.org>, Andrea
 Righi	 <arighi@...dia.com>, Andrew Morton <akpm@...ux-foundation.org>,
 Andrii Nakryiko	 <andrii@...nel.org>, Bill Wendling <morbo@...gle.com>,
 Changwoo Min	 <changwoo@...lia.com>, Daniel Borkmann
 <daniel@...earbox.net>, David Vernet	 <void@...ifault.com>, Donglin Peng
 <dolinux.peng@...il.com>, Hao Luo	 <haoluo@...gle.com>, Jiri Olsa
 <jolsa@...nel.org>, John Fastabend	 <john.fastabend@...il.com>, Jonathan
 Corbet <corbet@....net>, Justin Stitt	 <justinstitt@...gle.com>, KP Singh
 <kpsingh@...nel.org>, Martin KaFai Lau	 <martin.lau@...ux.dev>, Nathan
 Chancellor <nathan@...nel.org>, Nick Desaulniers	
 <nick.desaulniers+lkml@...il.com>, Nicolas Schier <nsc@...nel.org>, Shuah
 Khan	 <shuah@...nel.org>, Song Liu <song@...nel.org>, Stanislav Fomichev	
 <sdf@...ichev.me>, Tejun Heo <tj@...nel.org>, Yonghong Song	
 <yonghong.song@...ux.dev>
Cc: bpf@...r.kernel.org, dwarves@...r.kernel.org,
 linux-kbuild@...r.kernel.org, 	linux-kernel@...r.kernel.org,
 sched-ext@...ts.linux.dev
Subject: Re: [PATCH bpf-next v4 7/8] selftests/bpf: Run resolve_btfids only
 for relevant .test.o objects

On Wed, 2025-12-17 at 16:33 -0800, Ihor Solodrai wrote:
> A selftest targeting resolve_btfids functionality relies on a resolved
> .BTF_ids section to be available in the TRUNNER_BINARY. The underlying
> BTF data is taken from a special BPF program (btf_data.c), and so
> resolve_btfids is executed as a part of a TRUNNER_BINARY build recipe
> on the final binary.
> 
> Subsequent patches in this series allow resolve_btfids to modify BTF
> before resolving the symbols, which means that the test needs access
> to that modified BTF [1]. Currently the test simply reads in
> btf_data.bpf.o on the assumption that BTF hasn't changed.
> 
> Implement resolve_btfids call only for particular test objects (just
> resolve_btfids.test.o for now). The test objects are linked into the
> TRUNNER_BINARY, and so .BTF_ids section will be available there.
> 
> This will make it trivial for the resolve_btfids test to access BTF
> modified by resolve_btfids.
> 
> [1] https://lore.kernel.org/bpf/CAErzpmvsgSDe-QcWH8SFFErL6y3p3zrqNri5-UHJ9iK2ChyiBw@mail.gmail.com/
> 
> Signed-off-by: Ihor Solodrai <ihor.solodrai@...ux.dev>
> ---

Acked-by: Eduard Zingerman <eddyz87@...il.com>

[...]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ