All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] docs/code-provenance: Use of AI-generated content
@ 2026-12-02 15:48 Christian Schoenebeck
  2026-12-02 17:36 ` Warner Losh
  2026-12-02 17:53 ` Daniel P. Berrangé
  0 siblings, 2 replies; 5+ messages in thread
From: Christian Schoenebeck @ 2026-12-02 15:48 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Richard Henderson, Pierrick Bouvier, Paolo Bonzini,
	Greg Kurz, Daniel P. Berrangé

Hi,

may I ask for an update on how to handle A.I. generated content with QEMU?

Because right now I am honestly puzzled how to proceed - like at all - given
the mass of A.I. generated reports alone and looking on what QEMU's code
provenance currently mandates [docs/devel/code-provenance.rst], quote:

`Current QEMU project policy is to DECLINE any contributions which are
 believed to include or *derive* from AI generated content.´

Then goes on with contradicting itself by:

`This policy does not apply to other uses of AI, such as researching APIs
 or algorithms, static analysis, or debugging, provided their output is not
 included in contributions.´

And it ends with this inevitable burden:

`In particular, the "Signed-off-by" label in a patch submission is a statement  
 that the author takes responsibility for the entire contents of the patch,
 including any parts that were *generated* or assisted by *AI* tools or other 
 tools.´

1. So right now, QEMU submaintainers are told to throw away AI generated code
contributions, and re-write them by hand. The problem: that is still *derived*
from AI generated content.

2. The conduct is not even clear on what "content" means. I think the
intention was "code", but the word "content" legally includes bug reports,
analysis/debugging results or any AI generated data in general actually.

3. And at the same time, submaintainers are asked to take personal
*responsibility* for accepting parts being *derived* from AI sources via their
"Signed-off-by" label.

To be clear: I am not worried about the AI generated submissions violating
copyright, because at least the ones I receive are fixes+test code like this:

https://lore.kernel.org/all/20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de/

I don't see how these changes could violate somebody's copyright outside of QEMU.

What I am *rather* worried about, is that current QEMU policies make sub-
maintainers aggressively liable for violating QEMU's own policy.

Because as a QEMU submaintainer, when I look at these project policies, I have
no other chance than either discarding any AI generated report immediately
(without even looking at it), or proceed the way it's currently habit, and
knowingly violating QEMU's policy and making myself liable.

Keep in mind: even if you fixed the conduct wording of what was actually
meant; all AI assisted/generated reports nowadays include code, and you have
to look at this code to a) understand the issue and b) identify false
positives. Often that code is even directly within the report, not just as an
attachment. And by just looking at that code, any code you'll come up with,
will be "derived" from that AI generated code.

/Christian




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] docs/code-provenance: Use of AI-generated content
  2026-12-02 15:48 [RFC] docs/code-provenance: Use of AI-generated content Christian Schoenebeck
@ 2026-12-02 17:36 ` Warner Losh
  2026-12-02 19:06   ` Christian Schoenebeck
  2026-12-02 17:53 ` Daniel P. Berrangé
  1 sibling, 1 reply; 5+ messages in thread
From: Warner Losh @ 2026-12-02 17:36 UTC (permalink / raw)
  To: Christian Schoenebeck
  Cc: qemu-devel, Peter Maydell, Richard Henderson, Pierrick Bouvier,
	Paolo Bonzini, Greg Kurz, Daniel P. Berrangé

[-- Attachment #1: Type: text/plain, Size: 3925 bytes --]

On Wed, Dec 2, 2026 at 8:50 AM Christian Schoenebeck <qemu_oss@crudebyte.com>
wrote:

> Hi,
>
> may I ask for an update on how to handle A.I. generated content with QEMU?
>
> Because right now I am honestly puzzled how to proceed - like at all -
> given
> the mass of A.I. generated reports alone and looking on what QEMU's code
> provenance currently mandates [docs/devel/code-provenance.rst], quote:
>
> `Current QEMU project policy is to DECLINE any contributions which are
>  believed to include or *derive* from AI generated content.´
>
> Then goes on with contradicting itself by:
>
> `This policy does not apply to other uses of AI, such as researching APIs
>  or algorithms, static analysis, or debugging, provided their output is not
>  included in contributions.´
>
> And it ends with this inevitable burden:
>
> `In particular, the "Signed-off-by" label in a patch submission is a
> statement
>  that the author takes responsibility for the entire contents of the patch,
>  including any parts that were *generated* or assisted by *AI* tools or
> other
>  tools.´



> 1. So right now, QEMU submaintainers are told to throw away AI generated
> code
> contributions, and re-write them by hand. The problem: that is still
> *derived*
> from AI generated content.
>

No more so than my writing a FreeBSD driver from a GPL's Linux driver.
That's
not a derived work. If I see a solution and then write my own, the producer
of
the solution doesn't matter. I think this is an overly broad interpretation
of
'derived from'.

2. The conduct is not even clear on what "content" means. I think the
> intention was "code", but the word "content" legally includes bug reports,
> analysis/debugging results or any AI generated data in general actually.
>

I think that's an overly broad reading as well. I think the intent was the
common sense meaning.


> 3. And at the same time, submaintainers are asked to take personal
> *responsibility* for accepting parts being *derived* from AI sources via
> their
> "Signed-off-by" label.
>
> To be clear: I am not worried about the AI generated submissions violating
> copyright, because at least the ones I receive are fixes+test code like
> this:
>
>
> https://lore.kernel.org/all/20261109155503.2530430-1-gollenstede@ibr.cs.tu-bs.de/
>
> I don't see how these changes could violate somebody's copyright outside
> of QEMU.
>
> What I am *rather* worried about, is that current QEMU policies make sub-
> maintainers aggressively liable for violating QEMU's own policy.
>
> Because as a QEMU submaintainer, when I look at these project policies, I
> have
> no other chance than either discarding any AI generated report immediately
> (without even looking at it), or proceed the way it's currently habit, and
> knowingly violating QEMU's policy and making myself liable.
>

That's a good thing to worry about. But SOBhas always been about
making one's best effort good faith judgement, not anything iron-clad. For
secondary
people in the chain, it's more of a 'looks good, and we can maintain this'
than a 'I
know for a fact that there's no way this can cause legal hassles'. I
don't think the
intent of the AI policy was to substantially change that.


> Keep in mind: even if you fixed the conduct wording of what was actually
> meant; all AI assisted/generated reports nowadays include code, and you
> have
> to look at this code to a) understand the issue and b) identify false
> positives. Often that code is even directly within the report, not just as
> an
> attachment. And by just looking at that code, any code you'll come up with,
> will be "derived" from that AI generated code.
>

Have you seen the thread that includes
https://lore.kernel.org/qemu-devel/20260921075251.12831-1-pbonzini@redhat.com/
yet? I think it might answer these concerns largely.

Warner

[-- Attachment #2: Type: text/html, Size: 5611 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] docs/code-provenance: Use of AI-generated content
  2026-12-02 15:48 [RFC] docs/code-provenance: Use of AI-generated content Christian Schoenebeck
  2026-12-02 17:36 ` Warner Losh
@ 2026-12-02 17:53 ` Daniel P. Berrangé
  2026-12-02 19:31   ` Christian Schoenebeck
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel P. Berrangé @ 2026-12-02 17:53 UTC (permalink / raw)
  To: Christian Schoenebeck
  Cc: qemu-devel, Peter Maydell, Richard Henderson, Pierrick Bouvier,
	Paolo Bonzini, Greg Kurz

On Wed, Dec 02, 2026 at 04:48:16PM +0100, Christian Schoenebeck wrote:
> Hi,
> 
> may I ask for an update on how to handle A.I. generated content with QEMU?
> 
> Because right now I am honestly puzzled how to proceed - like at all - given
> the mass of A.I. generated reports alone and looking on what QEMU's code
> provenance currently mandates [docs/devel/code-provenance.rst], quote:
> 
> `Current QEMU project policy is to DECLINE any contributions which are
>  believed to include or *derive* from AI generated content.´
> 
> Then goes on with contradicting itself by:
> 
> `This policy does not apply to other uses of AI, such as researching APIs
>  or algorithms, static analysis, or debugging, provided their output is not
>  included in contributions.´
> 
> And it ends with this inevitable burden:
> 
> `In particular, the "Signed-off-by" label in a patch submission is a statement  
>  that the author takes responsibility for the entire contents of the patch,
>  including any parts that were *generated* or assisted by *AI* tools or other 
>  tools.´
> 
> 1. So right now, QEMU submaintainers are told to throw away AI generated code
> contributions, and re-write them by hand. The problem: that is still *derived*
> from AI generated content.

There is no requirement/expectation that maintainers re-write
stuff by hand. If someone sends a AI generated patch, it should
just be rejected.

I get that if it was fixing a valid bug, you might none the less
want to have a patch, but that's a separate matter, once the
initial AI patch is rejected.


> 2. The conduct is not even clear on what "content" means. I think the
> intention was "code", but the word "content" legally includes bug reports,
> analysis/debugging results or any AI generated data in general actually.

"content" was intended to mean anything that gets committed to
qemu.git, as the contents of git are what QEMU distributes and
end users deploy and what the licenses apply to.

> 3. And at the same time, submaintainers are asked to take personal
> *responsibility* for accepting parts being *derived* from AI sources via their
> "Signed-off-by" label.

Yes, adding your own S-o-B line to any patch indicates that you
have blessed it in accordance with the DCO. If you have doubts
about a patch, then don't accept it, or ask the contributor to
clarify.

> What I am *rather* worried about, is that current QEMU policies make sub-
> maintainers aggressively liable for violating QEMU's own policy.
> 
> Because as a QEMU submaintainer, when I look at these project policies, I have
> no other chance than either discarding any AI generated report immediately
> (without even looking at it), or proceed the way it's currently habit, and
> knowingly violating QEMU's policy and making myself liable.

Merely looking at a patch doesn't make you liable.

If there is no indication that the patch  was done with AI,  and you
accept it in good faith based on what you know at the time, then you're
not liable. The original contributor who added their SoB to an AI patch
is liable as they're the party who signed off the contribution without
complying with the policy.

> Keep in mind: even if you fixed the conduct wording of what was actually
> meant; all AI assisted/generated reports nowadays include code, and you have
> to look at this code to a) understand the issue and b) identify false
> positives. Often that code is even directly within the report, not just as an
> attachment. And by just looking at that code, any code you'll come up with,
> will be "derived" from that AI generated code.

Merely looking at code does not taint you. That is an extreme view
commonly promoted by proprietary software companies to constrict/
control your ability to work.

If you're writing a patch from first principals, without directly
referring to the other invalid patch, I see no problem even if you
happen to have read the original patch previously.


With some fixes there may be only a single way a fix can be done,
such that your new patch comes out essentially identical. That is
only likely to be the case for code that is so trivial that it is
likely not eligible for copyright protection making the whole
concern irrelevant.

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] docs/code-provenance: Use of AI-generated content
  2026-12-02 17:36 ` Warner Losh
@ 2026-12-02 19:06   ` Christian Schoenebeck
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Schoenebeck @ 2026-12-02 19:06 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Richard Henderson, Pierrick Bouvier, Paolo Bonzini,
	Greg Kurz, Daniel P. Berrangé, Warner Losh

On Wednesday, 2 December 2026 18:36:24 CET Warner Losh wrote:
> On Wed, Dec 2, 2026 at 8:50 AM Christian Schoenebeck
> <qemu_oss@crudebyte.com> wrote:
[...]
> > 1. So right now, QEMU submaintainers are told to throw away AI generated
> > code
> > contributions, and re-write them by hand. The problem: that is still
> > *derived*
> > from AI generated content.
> 
> No more so than my writing a FreeBSD driver from a GPL's Linux driver.
> That's
> not a derived work. If I see a solution and then write my own, the producer
> of
> the solution doesn't matter. I think this is an overly broad interpretation
> of
> 'derived from'.

That's a different thing: you adapted an "idea" and ported that from one 
system to another, without retaining its original structure.

If I handle AI generated contributions for QEMU - especially fixes - I 
inevitably end up retaining their structure. And that *is* derivative work.

> > Keep in mind: even if you fixed the conduct wording of what was actually
> > meant; all AI assisted/generated reports nowadays include code, and you
> > have
> > to look at this code to a) understand the issue and b) identify false
> > positives. Often that code is even directly within the report, not just as
> > an
> > attachment. And by just looking at that code, any code you'll come up
> > with,
> > will be "derived" from that AI generated code.
> 
> Have you seen the thread that includes
> https://lore.kernel.org/qemu-devel/20260921075251.12831-1-pbonzini@redhat.co
> m/ yet? I think it might answer these concerns largely.

That is useful and sounds much better, thanks! But it is from September. So 
will this eventually land as official new QEMU policy?

/Christian





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] docs/code-provenance: Use of AI-generated content
  2026-12-02 17:53 ` Daniel P. Berrangé
@ 2026-12-02 19:31   ` Christian Schoenebeck
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Schoenebeck @ 2026-12-02 19:31 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Richard Henderson, Pierrick Bouvier, Paolo Bonzini,
	Greg Kurz, Daniel P. Berrangé

On Wednesday, 2 December 2026 18:53:02 CET Daniel P. Berrangé wrote:
> On Wed, Dec 02, 2026 at 04:48:16PM +0100, Christian Schoenebeck wrote:
[...]
> > 1. So right now, QEMU submaintainers are told to throw away AI generated
> > code contributions, and re-write them by hand. The problem: that is still
> > *derived* from AI generated content.
> 
> There is no requirement/expectation that maintainers re-write
> stuff by hand. If someone sends a AI generated patch, it should
> just be rejected.
> 
> I get that if it was fixing a valid bug, you might none the less
> want to have a patch, but that's a separate matter, once the
> initial AI patch is rejected.

But that's exactly what I do here for last couple of year: processing bug 
reports and make sure they get fixed. All of them are AI generated nowadays. 
And that consequently means I must rewrite them by hand; fixes and test code.

> > 2. The conduct is not even clear on what "content" means. I think the
> > intention was "code", but the word "content" legally includes bug reports,
> > analysis/debugging results or any AI generated data in general actually.
> 
> "content" was intended to mean anything that gets committed to
> qemu.git, as the contents of git are what QEMU distributes and
> end users deploy and what the licenses apply to.

I know what the intention was, but the way the current conduct is written, it 
makes more harm than use.

And yes, Warner made me aware there is a new version of the policy by Paolo 
in-flight, which is good.
 
> > 3. And at the same time, submaintainers are asked to take personal
> > *responsibility* for accepting parts being *derived* from AI sources via
> > their "Signed-off-by" label.
> 
> Yes, adding your own S-o-B line to any patch indicates that you
> have blessed it in accordance with the DCO. If you have doubts
> about a patch, then don't accept it, or ask the contributor to
> clarify.

I have no problem with the DCO. The DCO is about the copyright being sane.

The problem I have are all the vague AI restrictions (their precise wordings) 
that were subsequently added on top of that.

> > Keep in mind: even if you fixed the conduct wording of what was actually
> > meant; all AI assisted/generated reports nowadays include code, and you
> > have to look at this code to a) understand the issue and b) identify
> > false positives. Often that code is even directly within the report, not
> > just as an attachment. And by just looking at that code, any code you'll
> > come up with, will be "derived" from that AI generated code.
> 
> Merely looking at code does not taint you. That is an extreme view
> commonly promoted by proprietary software companies to constrict/
> control your ability to work.
> 
> If you're writing a patch from first principals, without directly
> referring to the other invalid patch, I see no problem even if you
> happen to have read the original patch previously.
> 
> With some fixes there may be only a single way a fix can be done,
> such that your new patch comes out essentially identical. That is
> only likely to be the case for code that is so trivial that it is
> likely not eligible for copyright protection making the whole
> concern irrelevant.

Exactly! And that is my point, that the currently effective complete AI ban is 
completely irrational: I mangle bugs, fixes and test code. None of these have 
any potential to violate copyright of people outside of QEMU. Most of these 
changes are so little, that you can easily argue whether they would earn any 
copyright whatsoever.

But the way the *current* QEMU policy is expressed, I am already in a grey 
zone no matter what.

So at least from my side, until that new policy version proposed by Paolo 
lands, I rather consider stepping down and downgrade myself to a pure reviewer  
until the policy gets updated.

/Christian




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-02 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 15:48 [RFC] docs/code-provenance: Use of AI-generated content Christian Schoenebeck
2026-12-02 17:36 ` Warner Losh
2026-12-02 19:06   ` Christian Schoenebeck
2026-12-02 17:53 ` Daniel P. Berrangé
2026-12-02 19:31   ` Christian Schoenebeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.