* BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch
@ 2026-07-21 7:21 Shung-Hsi Yu
2026-07-21 7:46 ` Greg KH
2026-07-22 0:53 ` Sasha Levin
0 siblings, 2 replies; 4+ messages in thread
From: Shung-Hsi Yu @ 2026-07-21 7:21 UTC (permalink / raw)
To: Sasha Levin, stable
Hi Sasha,
I am running into BPF selftests compilation error on 6.18 (but it
possibly affect other branches as well, haven't check) due to
selftests-bpf-initialize-operation-name-before-use.patch currently
sitting in stable-queue:
/tmp/work/linux-stable/linux-stable/tools/testing/selftests/bpf/prog_tests/verifier_log.c: In function ‘verif_btf_log_subtest’:
/tmp/work/linux-stable/linux-stable/tools/testing/selftests/bpf/prog_tests/verifier_log.c:320:9: error: implicit declaration of function ‘strscpy’; did you mean ‘strlcpy’? [-Werror=implicit-function-declaration]
320 | strscpy(op_name, "log_fixed", sizeof(op_name));
| ^~~~~~~
| strlcpy
Can you pick up commit 63c49efc987a ("selftests/bpf: Add simple
strscpy() implementation") along? I think that should be enough to fix
the build failure.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch
2026-07-21 7:21 BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch Shung-Hsi Yu
@ 2026-07-21 7:46 ` Greg KH
2026-07-22 0:53 ` Sasha Levin
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2026-07-21 7:46 UTC (permalink / raw)
To: Shung-Hsi Yu; +Cc: Sasha Levin, stable
On Tue, Jul 21, 2026 at 03:21:55PM +0800, Shung-Hsi Yu wrote:
> Hi Sasha,
>
> I am running into BPF selftests compilation error on 6.18 (but it
> possibly affect other branches as well, haven't check) due to
> selftests-bpf-initialize-operation-name-before-use.patch currently
> sitting in stable-queue:
>
> /tmp/work/linux-stable/linux-stable/tools/testing/selftests/bpf/prog_tests/verifier_log.c: In function ‘verif_btf_log_subtest’:
> /tmp/work/linux-stable/linux-stable/tools/testing/selftests/bpf/prog_tests/verifier_log.c:320:9: error: implicit declaration of function ‘strscpy’; did you mean ‘strlcpy’? [-Werror=implicit-function-declaration]
> 320 | strscpy(op_name, "log_fixed", sizeof(op_name));
> | ^~~~~~~
> | strlcpy
>
> Can you pick up commit 63c49efc987a ("selftests/bpf: Add simple
> strscpy() implementation") along? I think that should be enough to fix
> the build failure.
Now applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch
2026-07-21 7:21 BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch Shung-Hsi Yu
2026-07-21 7:46 ` Greg KH
@ 2026-07-22 0:53 ` Sasha Levin
2026-07-23 2:45 ` Shung-Hsi Yu
1 sibling, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2026-07-22 0:53 UTC (permalink / raw)
To: stable; +Cc: Sasha Levin, Shung-Hsi Yu
> Can you pick up commit 63c49efc987a ("selftests/bpf: Add simple
> strscpy() implementation") along? I think that should be enough to fix
> the build failure.
Greg has already picked it up for 6.18, which covers the tree you hit.
The offending selftests patch is also queued for 6.12 and 6.6, and you
were right that they're affected too. Unfortunately 63c49efc987a
doesn't apply there as-is: it depends on 9a6a6a319157 ("tools/testing:
add linux/args.h header and fix radix, VMA tests"), which isn't in
either tree.
Could you send adapted backports of the strscpy helper for 6.12.y and
6.6.y? I'll hold off on those branches until then.
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch
2026-07-22 0:53 ` Sasha Levin
@ 2026-07-23 2:45 ` Shung-Hsi Yu
0 siblings, 0 replies; 4+ messages in thread
From: Shung-Hsi Yu @ 2026-07-23 2:45 UTC (permalink / raw)
To: Sasha Levin; +Cc: stable
On Tue, Jul 21, 2026 at 08:53:58PM -0400, Sasha Levin wrote:
> > Can you pick up commit 63c49efc987a ("selftests/bpf: Add simple
> > strscpy() implementation") along? I think that should be enough to fix
> > the build failure.
>
> Greg has already picked it up for 6.18, which covers the tree you hit.
>
> The offending selftests patch is also queued for 6.12 and 6.6, and you were right that they're affected too. Unfortunately 63c49efc987a doesn't apply there as-is: it depends on 9a6a6a319157 ("tools/testing: add linux/args.h header and fix radix, VMA tests"), which isn't in either tree.
>
> Could you send adapted backports of the strscpy helper for 6.12.y and
> 6.6.y? I'll hold off on those branches until then.
Ack, I can give it a try.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-23 2:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 7:21 BPF selftests compilation failure due to selftests-bpf-initialize-operation-name-before-use.patch Shung-Hsi Yu
2026-07-21 7:46 ` Greg KH
2026-07-22 0:53 ` Sasha Levin
2026-07-23 2:45 ` Shung-Hsi Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox