* 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é
1 sibling, 0 replies; 3+ 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] 3+ 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é
1 sibling, 0 replies; 3+ 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] 3+ messages in thread