mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vineet Gupta <vineet.gupta@linux.dev>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>, Eduard <eddyz87@gmail.com>,
	Kumar Kartikeya Dwivedi <memxor@gmail.com>,
	Martin KaFai Lau <martin.lau@linux.dev>,
	Song Liu <song@kernel.org>,
	Yonghong Song <yonghong.song@linux.dev>,
	Jiri Olsa <jolsa@kernel.org>,
	Emil Tsalapatis <emil@etsalapatis.com>,
	Ihor Solodrai <ihor.solodrai@linux.dev>,
	John Fastabend <john.fastabend@gmail.com>,
	Shuah Khan <shuah@kernel.org>, bpf <bpf@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"open list:KERNEL SELFTEST FRAMEWORK"
	<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH bpf-next v2 01/13] bpf: move linked-scalar flags out of bpf_reg_state->id [NFC]
Date: Fri, 2 Oct 2026 09:03:28 +0100	[thread overview]
Message-ID: <4fc25ca5-bd57-4df0-a8e1-cf6bb9ba2fcb@linux.dev> (raw)
In-Reply-To: <CAADnVQKKWBV+pFMAStB_-POKveeO83RiXU+VKeua3odSu-Xrmg@mail.gmail.com>

On 9/16/26 5:36 PM, Alexei Starovoitov wrote:
> On Wed, Sep 16, 2026 at 2:24 PM Vineet Gupta<vineet.gupta@linux.dev> wrote:
>> On 9/16/26 2:02 PM, Alexei Starovoitov wrote:
>>> On Tue Sep 15, 2026 at 1:17 AM UTC, Vineet Gupta wrote:
>>>> Back when I started, keeping it NFC made more sense. But with all the
>>>> nuances discovered in the process, I'm inclined to drop the NFC stance
>>> What is NFC ?
>> non functional change aka refactoring.
>> Like I said when I started I wanted to keep the id / flag breakout
>> purely non functional. But given that splitting it does change one thing
>> (mentioned below) - I'm dropping NFC attribution.
>>
>>>> and make functional changes - there's at least one which is the
>>>> following accepted pre-series and now rejected.
>>>>
>>>>          old {r2.id=A+delta32}         vs cur {r2.id=B+delta64}
>>> that's a red flag, no? The refactoring patch shouldn't have
>>> any changes to selftest and veristat numbers?
>>> Unless I'm missing it again.
>> Yes understood except that it is no longer refactoring.
> NFC is gcc probably lingvo? In kernel people just put in the commit
> log "No functional changes", so it's easier for humans and for AI
> to review patches.
> So pls skip such unusual tags in the future,

Yes keeping kernel's existing conventions makes sense, although LLMs 
understand what NFC is.

> but keep the first patch as "No functional change".

Just to rehash since the meaning of first has moved significantly.

1. Now the first change (patch 1/x and its test 2/x )  is no longer the 
compound id conversion, but coerce_reg_to_size_sx / 
coerce_subreg_to_size_sx change to fix the errno range case, as 
suggested by you. It is a functional change, with following improvement:

    === VERDICT CHANGES: 3 ===
        mov32sx_s8_negative_range     failure -> success
        mov64sx_s32_negative_range    failure -> success
        mov64sx_s8_negative_range     failure -> success

    === total_insns:  0 changed among 1242 both-passing, 0 worse ===
    === total_states: 0 changed among 1242 both-passing, 0 worse ===

2. The second change (3/x and its test 4/x) is accumulating add_const 
deltas (w3 = w0; w3 -=1). This makes the 32-bit link with delta special 
handling of zext unnecessary so its a prereq for the series.

3. I guess you are referring to the patch to convert compound id to 
broken out id + flags (5/x ) is also technically a functional change - 
due to the state comparison behavior improvement that fell out of the 
seemingly mechanical conversion and is clearly called out now. However I 
verified it in isolation (on top of 4 prior of course) and there are no 
veristat or selftest changes with it (just a cosmetic name change due to 
base_id -> id)

    === VERDICT CHANGES: 0 ===
    === total_insns:  0 changed among 1247 both-passing, 0 worse ===
    === total_states: 0 changed among 1247 both-passing, 0 worse ===


I presume that is what you were asking for ?

Thx,
-Vineet


  reply	other threads:[~2026-10-02  8:03 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-10 16:46 [PATCH bpf-next v2 00/13] bpf: track scalar equality across the low 32 bits Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 01/13] bpf: move linked-scalar flags out of bpf_reg_state->id [NFC] Vineet Gupta
2026-09-10 17:52   ` bot+bpf-ci
2026-09-14 18:02     ` Vineet Gupta
2026-09-16 21:03       ` Alexei Starovoitov
2026-09-16 21:21         ` Vineet Gupta
2026-09-18 23:38         ` Vineet Gupta
2026-09-12 18:50   ` Alexei Starovoitov
2026-09-15  1:17     ` Vineet Gupta
2026-09-16 21:02       ` Alexei Starovoitov
2026-09-16 21:24         ` Vineet Gupta
2026-09-17  0:36           ` Alexei Starovoitov
2026-10-02  8:03             ` Vineet Gupta [this message]
2026-10-02 11:23               ` Alexei Starovoitov
2026-09-18 23:13       ` Eduard Zingerman
2026-09-21 18:44         ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 02/13] bpf: compare linked-scalar kinds in regs_exact() Vineet Gupta
2026-09-12 18:51   ` Alexei Starovoitov
2026-09-15  1:11     ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 03/13] bpf: track low-32 scalar equality across zero-extending movs Vineet Gupta
2026-09-10 17:52   ` bot+bpf-ci
2026-09-11  9:29     ` Vineet Gupta
2026-09-12 18:59   ` Alexei Starovoitov
2026-09-15 20:31     ` Vineet Gupta
2026-09-16  4:23       ` Alexei Starovoitov
2026-09-17  0:08         ` Vineet Gupta
2026-09-17  0:30           ` Alexei Starovoitov
2026-09-21 17:28             ` Eduard Zingerman
2026-09-21 18:59               ` Alexei Starovoitov
2026-09-21 19:10                 ` Eduard Zingerman
2026-09-21 19:27                   ` Alexei Starovoitov
2026-09-21 19:44                     ` Eduard Zingerman
2026-09-21 21:55                       ` Alexei Starovoitov
2026-09-21 22:17                         ` Eduard Zingerman
2026-09-21 22:25                           ` Alexei Starovoitov
2026-10-02 13:59                             ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 04/13] selftests/bpf: cover the low-32 link for " Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 05/13] bpf: keep the range across a sign extension that cannot change it Vineet Gupta
2026-09-10 17:52   ` bot+bpf-ci
2026-09-11 10:37     ` Vineet Gupta
2026-09-12 19:02   ` Alexei Starovoitov
2026-09-15 21:18     ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 06/13] selftests/bpf: cover sign extensions that cannot change the range Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 07/13] bpf: track low-32 scalar equality across sign-extending movs Vineet Gupta
2026-09-10 17:52   ` bot+bpf-ci
2026-09-11 10:00     ` Vineet Gupta
2026-09-12 19:09   ` Alexei Starovoitov
2026-09-15 20:39     ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 08/13] selftests/bpf: cover the low-32 link for " Vineet Gupta
2026-09-10 17:52   ` bot+bpf-ci
2026-09-11  8:00     ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 09/13] bpf: track low-32 scalar equality across narrowing stack fills Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 10/13] selftests/bpf: cover the low-32 link for " Vineet Gupta
2026-09-10 17:31   ` bot+bpf-ci
2026-09-11  5:07     ` Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 11/13] bpf: record what a narrowing spill actually stores Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 12/13] bpf: track low-32 scalar equality across narrowing stack spills Vineet Gupta
2026-09-10 16:46 ` [PATCH bpf-next v2 13/13] selftests/bpf: cover the low-32 link for " Vineet Gupta

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=4fc25ca5-bd57-4df0-a8e1-cf6bb9ba2fcb@linux.dev \
    --to=vineet.gupta@linux.dev \
    --cc=alexei.starovoitov@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=emil@etsalapatis.com \
    --cc=ihor.solodrai@linux.dev \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /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

all inboxes | Powered by JetHome®