mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@intel.com>
To: NeilBrown <neil@brown.name>, Dave Hansen <dave.hansen@linux.intel.com>
Cc: linux-kernel@vger.kernel.org,
	Steven Rostedt <rostedt@goodmis.org>,
	Dan Williams <dan.j.williams@intel.com>,
	Theodore Ts'o <tytso@mit.edu>, Sasha Levin <sashal@kernel.org>,
	Jonathan Corbet <corbet@lwn.net>, Kees Cook <kees@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Miguel Ojeda <ojeda@kernel.org>, Shuah Khan <shuah@kernel.org>
Subject: Re: [PATCH] [v2] Documentation: Provide guidelines for tool-generated content
Date: Thu, 13 Nov 2025 17:09:19 -0800	[thread overview]
Message-ID: <d21ba8c1-2931-4133-bc82-5bdb670e4a69@intel.com> (raw)
In-Reply-To: <176290472743.634289.7009461719971062344@noble.neil.brown.name>

On 11/11/25 15:45, NeilBrown wrote:
...
>> +Kernel contributors have been using tooling to generate contributions
>> +for a long time. These tools are constantly becoming more capable and
>> +undoubtedly improve developer productivity. At the same time, reviewer
>> +and maintainer bandwidth is a very scarce resource. Understanding
>> +which portions of a contribution come from humans versus tools is
>> +critical to maintain those resources and keep kernel development
>> +healthy.
> 
> "critical"?  Really?
> If I use "sed" to create a patch, it might be helpful for you to know
> that, but not critical.

I'll tone that down a bit.

> I also like the focus on "helping the reviewer".  That too is
> foundational.
> 
>   When submitting a patch you will benefit from efforts to build trust
>   with the maintainer, and anything you do to help the review process
>   run smoothly will help your patch get accepted.  Some guidelines for
>   how this applies with respect to tool-assisted patch creation, and LLM
>   (aka AI) in particular, are below.

To me, this veers a bit into a different area, which is explaining how
trust is important.

...>> + - Treat it just like any other contribution
>> + - Reject it outright
> 
> If I find that a maintainer might reject my tool-based submission
> outright, I might be tempted towards less transparency.
> I don't think we should legitimise this sort of response by listing it
> here.

I agree that this might steer an unscrupulous contributor into being
less transparent. But, I don't think this document is aimed at those
contributors in the first place.

They key question is whether maintainers in our project should have the
ability to reject a patch just because it was generated by a tool. I
think it would be silly for a maintainer to outright reject every bit of
content that was generated by a tool. But, it's equally silly to say
that maintainers should not have the ability to say that "tool $XYZ has
no place in the $ABC subsystem".

Maintainers can always say: "No". If they say it too much or for the
wrong reasons, we have a benevolent dictator for such situations.

>> + - Review the contribution with extra scrutiny
>> + - Suggest a better prompt instead of suggesting specific code changes
>> + - Ask for some other special steps, like asking the contributor to
>> +   elaborate on how the tool or model was trained
>> + - Ask the submitter to explain in more detail about the contribution
>> +   so that the maintainer can feel comfortable that the submitter fully
>> +   understands how the code works.
> 
> This last point contains an important idea that I think could be
> highlighted more.  The submitter needs to understand, and be able to
> defend, the submission; both its motivation and its content.
> "A tool generated the patch" is useful information but never an excuse
> for not understanding it.

This is fleshed out a bit more in v3. I hope you're able to take a look
at that when I post it as well.

      reply	other threads:[~2025-11-14  1:09 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-05 23:15 Dave Hansen
2025-11-06 22:42 ` Shuah
2025-11-06 22:49   ` Dave Hansen
2025-11-07  3:40 ` Kees Cook
2025-11-07  8:47 ` Greg Kroah-Hartman
2025-11-07 10:58 ` Bagas Sanjaya
2025-11-08  0:11 ` dan.j.williams
2025-11-13 22:17   ` Dave Hansen
2025-11-08  1:52 ` Miguel Ojeda
2025-11-13 22:21   ` Dave Hansen
2025-11-10  7:43 ` Vlastimil Babka
2025-11-10  8:58   ` Christian Brauner
2025-11-10 16:08     ` Dave Hansen
2025-11-10 17:25     ` Laurent Pinchart
2025-11-10 17:41       ` Dave Hansen
2025-11-10 17:44       ` Linus Torvalds
2025-11-10 17:56         ` Luck, Tony
2025-11-10 18:39         ` Mike Rapoport
2025-11-10 19:05           ` Linus Torvalds
2025-11-10 19:18             ` H. Peter Anvin
2025-11-10 19:36               ` Linus Torvalds
2025-11-10 19:54                 ` Steven Rostedt
2025-11-10 20:00                   ` Konstantin Ryabitsev
2025-11-10 20:25                     ` Steven Rostedt
2025-11-10 21:21                   ` James Bottomley
2025-11-10 21:42                     ` Steven Rostedt
2025-11-10 21:52                       ` Luck, Tony
2025-11-10 22:07                         ` James Bottomley
2025-11-10 23:16                   ` Theodore Ts'o
2025-11-11  9:35                 ` Lorenzo Stoakes
2025-11-11 13:08                   ` Theodore Ts'o
2025-11-10 17:46       ` Steven Rostedt
2025-11-10 10:48 ` Lorenzo Stoakes
2025-11-10 11:15   ` Lorenzo Stoakes
2025-11-10 15:19   ` Jonathan Corbet
2025-11-10 15:30     ` Lorenzo Stoakes
2025-11-10 15:44       ` Jonathan Corbet
2025-11-10 16:35   ` Dave Hansen
2025-11-10 16:51     ` Lorenzo Stoakes
2025-11-10 18:29   ` Steven Rostedt
2025-11-11 23:45 ` NeilBrown
2025-11-14  1:09   ` Dave Hansen [this message]

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=d21ba8c1-2931-4133-bc82-5bdb670e4a69@intel.com \
    --to=dave.hansen@intel.com \
    --cc=corbet@lwn.net \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil@brown.name \
    --cc=ojeda@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=sashal@kernel.org \
    --cc=shuah@kernel.org \
    --cc=tytso@mit.edu \
    /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®