[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/pciback: drop the device reference if the export fails



On Wed, 04 Nov 2026 02:15:37 +0000, Wentao Liang wrote:
> xen_pcibk_export_device() takes a pcistub_device reference through
> pcistub_get_pci_dev_by_slot().  On success xen_pcibk_add_pci_dev()
> stores the device on the backend's device list and the reference is
> released later by xen_pcibk_release_devices().
> 
> When the add fails before the device was queued -- the list entry
> allocation fails, or for the vpci backend the device is a bridge or no
> virtual slot is free -- the reference is never dropped.  psdev->pdev
> then keeps pointing at the pdev that free_pdev() frees, and the device
> can never be exported to a guest again because
> pcistub_device_get_pci_dev() rejects a psdev that already has an owner.
> 
> Drop the reference on these paths, taking the device lock which
> pcistub_put_pci_dev() requires.  Whether the device was queued is
> checked with the coordinates the frontend sees, obtained through
> xen_pcibk_get_pcifront_dev(), because the vpci backend hides the real
> topology behind a single virtual bus.  The reference is kept when the
> failure came from the publish callback, which runs after
> list_add_tail() and is undone by xen_pcibk_release_devices().
> 
> Fixes: 30edc14bf39a ("xen/pciback: xen pci backend driver.")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
> ---
>  drivers/xen/xen-pciback/xenbus.c | 33 +++++++++++++++++++++++++++++++-
>  1 file changed, 32 insertions(+), 1 deletion(-)
> 

Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.

2. You use multiple identities with this email address, thus I doubt that we
   speak with an actual person.

3. Your bot does not even bother running checkpatch, right?

4. Nothing of this was reproduced nor tested.

5. Finally, the same feedback:
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.

More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.

This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down.  Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.

Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.

Best regards,
Krzysztof







 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.