From: Dan Carpenter <error27@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Sasha Levin <sashal@kernel.org>,
workflows@vger.kernel.org, ksummit@lists.linux.dev,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Mark Brown <broonie@kernel.org>, Theodore Ts'o <tytso@mit.edu>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Leon Romanovsky <leon@kernel.org>,
Konstantin Ryabitsev <konstantin@linuxfoundation.org>,
Thorsten Leemhuis <linux@leemhuis.info>
Subject: Re: [PATCH v2 2/5] agents: add a skill to determine Fixes tags
Date: Thu, 15 Oct 2026 11:03:46 +0300 [thread overview]
Message-ID: <atCI4q2HvqVXOag1@stanley.mountain> (raw)
In-Reply-To: <20261013003535-mutt-send-email-mst@kernel.org>
On Tue, Oct 13, 2026 at 12:42:19AM -0400, Michael S. Tsirkin wrote:
> On Mon, Oct 12, 2026 at 05:34:49PM -0400, Sasha Levin wrote:
> > Blame and existing Fixes tags can point to code movement instead of the
> > change that introduced a bug. Add a read-only investigation procedure
> > that traces historical behavior and checks candidate commits against
> > their parents before returning a tag with supporting evidence.
> >
> > Keep the skill entry point and procedure together under
> > agents/skills/find-fixes/. Connect the procedure to the coding-assistant
> > guidance so bug fixes get verified attribution before finalization.
> >
> > If the origin cannot be established, return no trailer and keep the fix
> > as a draft. Applying the tag and writing the commit message remain outside
> > the skill.
> >
> > Validated with controlled histories covering moved code, changed
> > preconditions, incorrect tags, shallow history, and reintroduction after
> > a revert, as well as a real kernel fix.
> >
> > Assisted-by: LLM
> > Signed-off-by: Sasha Levin <sashal@kernel.org>
>
> Current documentation states:
>
> A Fixes: tag indicates that the patch fixes a bug in a previous commit. It
> is used to make it easy to determine where an issue originated, which can help
> review a bug fix. This tag also assists the stable kernel team in determining
> which stable kernel versions should receive your fix. This is the preferred
> method for indicating a bug fixed by the patch. See :ref:`describe_changes`
> for more details.
>
>
> the second part is easy to miss, so "what about an old bug in commit A
> commit B exposes"
This is pretty common for Makefile cleanups which enable COMPILE_TEST
etc. The Fixes tag should point to the commit which introduces the
bug and not the one that exposes it. Someone could backport the
original patch or expose the bug a different way.
> and "what if the bug both in commit A and commit B"
> are pretty common questions.
>
This sentence is missing a verb. I don't understand the question.
>
>
>
> Worth answering, maybe, and maybe here: the implication of the "stable
> kernel team" rule is that the meaning of the tag is actually: "if you
> have commit A then you need this commit".
>
The Fixes tag is useful for stable, but that's not the only point. It
also means that if you don't have the commit, then you don't need the
fix. It's also useful for training AI for example.
Someone told me that the netdev team was leaving Fixes tags off patches
that they didn't want to be backported to stable. But when I looked at
it, it was documentation stuff that is really debatable if it deserves
a Fixes tag or not. There are some gray areas.
regards,
dan carpenter
next prev parent reply other threads:[~2026-10-15 8:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 21:34 [PATCH v2 0/5] agents: add skills for Fixes tags, stable tags, similar bugs, and commit messages Sasha Levin
2026-10-12 21:34 ` [PATCH v2 1/5] agents: add infrastructure for agent resources Sasha Levin
2026-10-12 21:34 ` [PATCH v2 2/5] agents: add a skill to determine Fixes tags Sasha Levin
2026-10-13 3:55 ` Kees Cook
2026-10-13 4:42 ` Michael S. Tsirkin
2026-10-15 8:03 ` Dan Carpenter [this message]
2026-10-12 21:34 ` [PATCH v2 3/5] agents: add a skill to determine stable tags Sasha Levin
2026-10-13 3:59 ` Kees Cook
2026-10-13 11:30 ` Sasha Levin
2026-10-12 21:34 ` [PATCH v2 4/5] agents: add a skill to find other instances of a fixed bug Sasha Levin
2026-10-13 4:02 ` Kees Cook
2026-10-13 11:14 ` Sasha Levin
2026-10-12 21:34 ` [PATCH v2 5/5] agents: add a skill to write commit messages Sasha Levin
2026-10-12 22:47 ` [PATCH v2 0/5] agents: add skills for Fixes tags, stable tags, similar bugs, and " Jonathan Corbet
2026-10-13 3:48 ` Kees Cook
2026-10-13 11:22 ` Sasha Levin
2026-10-14 13:51 ` Geert Uytterhoeven
2026-10-15 4:50 ` Kees Cook
2026-10-15 13:37 ` Theodore Tso
2026-10-15 14:35 ` Thorsten Leemhuis
2026-10-15 15:34 ` Kees Cook
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=atCI4q2HvqVXOag1@stanley.mountain \
--to=error27@gmail.com \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=konstantin@linuxfoundation.org \
--cc=ksummit@lists.linux.dev \
--cc=laurent.pinchart@ideasonboard.com \
--cc=leon@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=mst@redhat.com \
--cc=rdunlap@infradead.org \
--cc=sashal@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=tytso@mit.edu \
--cc=workflows@vger.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
all inboxes | Powered by JetHome®