BPF List
 help / color / mirror / Atom feed
From: Eduard Zingerman <eddyz87@gmail.com>
To: Ihor Solodrai <ihor.solodrai@linux.dev>,
	Alexei Starovoitov <ast@kernel.org>,
	 Andrii Nakryiko <andrii@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Kumar Kartikeya Dwivedi	 <memxor@gmail.com>
Cc: Tejun Heo <tj@kernel.org>,
	bpf@vger.kernel.org,  linux-kernel@vger.kernel.org,
	kernel-team@meta.com
Subject: Re: [PATCH bpf v2 1/2] bpf: Fix tracing of kfuncs with implicit args
Date: Mon, 13 Jul 2026 10:01:21 -0700	[thread overview]
Message-ID: <07dd30294e3a15aefb88e5be250a85d330eb2ddc.camel@gmail.com> (raw)
In-Reply-To: <9b2196dd-443b-4632-ae11-030cdbdc59b4@linux.dev>

On Mon, 2026-07-13 at 09:48 -0700, Ihor Solodrai wrote:

[...]

> It was silly of me to mention the analysis as an obstacle (which I'm
> not excited to do, sure). We are at -rc3, so there is a couple of
> weeks still if we are targeting 7.2
> 
> But resolve_btfids series is certainly a merge-window thing, so the
> fix shouldn't depend on it. And even carving out build-time KF_ flag
> consistentcy enforcement from there is too potentially disruptive for
> a "fix" IMO.
> 
> How about the following plan.
> 
> In the fix:
>    * delete btf_kfunc_accumulated_flags()
>    * expose (back) btf_kfunc_id_set_contains() from btf.c
>    * in btf_attach_func_proto() walk the hooks and specifically check
>      for *consistent* KF_IMPLICIT_ARGS
>    * -EINVAL on inconsistency
> 
> In the v2 of resolve_btfids series (targeting 7.3):
>    * implement kbuild/module-time enforcement of consistency
>      for *all* KF_ flags
>    * fix in-tree cases where that's not true
>    * if there is a valid use-case, it should show up as a blocker, but
>      I'll also eyeball all the kfunc set declarations
> 
> Does this make sense?

You can do it like that, but tbh I that think doing it in two phases
complicates the process unnecessarily.

  reply	other threads:[~2026-07-13 17:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10 19:29 [PATCH bpf v2 0/2] bpf: Fix tracing of kfuncs with implicit args Ihor Solodrai
2026-07-10 19:29 ` [PATCH bpf v2 1/2] " Ihor Solodrai
2026-07-11 10:43   ` Eduard Zingerman
2026-07-11 17:57     ` Ihor Solodrai
2026-07-11 23:51       ` Eduard Zingerman
2026-07-13 16:48         ` Ihor Solodrai
2026-07-13 17:01           ` Eduard Zingerman [this message]
2026-07-13 12:51   ` Jiri Olsa
2026-07-10 19:29 ` [PATCH bpf v2 2/2] selftests/bpf: Cover tracing implicit kfunc args Ihor Solodrai

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=07dd30294e3a15aefb88e5be250a85d330eb2ddc.camel@gmail.com \
    --to=eddyz87@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=ihor.solodrai@linux.dev \
    --cc=kernel-team@meta.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=memxor@gmail.com \
    --cc=tj@kernel.org \
    /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