From: Yao Kai <yaokai34@huawei.com>
To: David Airlie <airlied@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Dmitry Osipenko <dmitry.osipenko@collabora.com>,
Gurchetan Singh <gurchetansingh@chromium.org>,
Chia-I Wu <olvaffe@gmail.com>
Cc: <dri-devel@lists.freedesktop.org>,
<virtualization@lists.linux.dev>, <liuyongqiang13@huawei.com>,
<jifa@huawei.com>
Subject: [PATCH 0/2] drm/virtio: fix control-buffer leaks on queueing errors
Date: Fri, 31 Jul 2026 17:22:34 +0800 [thread overview]
Message-ID: <20260731092236.2262403-1-yaokai34@huawei.com> (raw)
Fix two independent cleanup omissions for control buffers that do not
reach the virtqueue.
Patch 1 fixes the reproduced GEM/VMA leak when fbdev damage work races
with device unplug.
Patch 2 fixes the vmalloc_to_sgt() allocation-failure path, found by
code inspection.
Testing:
- Repeated virtio-gpu unbind/rebind no longer triggers the
drm_mm_takedown warning.
- Built drivers/gpu/drm/virtio/virtgpu_vq.o with W=1.
Yao Kai (2):
drm/virtio: release object array when device is unplugged
drm/virtio: free control buffer when scatterlist allocation fails
drivers/gpu/drm/virtio/virtgpu_vq.c | 3 +++
1 file changed, 3 insertions(+)
base-commit: 8ba098e6b6ff0db8edf28528d1552be261af30d4
--
2.43.0
next reply other threads:[~2026-07-31 9:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-31 9:22 Yao Kai [this message]
2026-07-31 9:22 ` [PATCH 1/2] drm/virtio: release object array when device is unplugged Yao Kai
2026-07-31 9:22 ` [PATCH 2/2] drm/virtio: free control buffer when scatterlist allocation fails Yao Kai
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=20260731092236.2262403-1-yaokai34@huawei.com \
--to=yaokai34@huawei.com \
--cc=airlied@redhat.com \
--cc=dmitry.osipenko@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gurchetansingh@chromium.org \
--cc=jifa@huawei.com \
--cc=kraxel@redhat.com \
--cc=liuyongqiang13@huawei.com \
--cc=olvaffe@gmail.com \
--cc=virtualization@lists.linux.dev \
/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