From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Re: [PATCH v2] drm/virtio: move cursor resv lock acquisition to prepare_fb
Date: Sat, 16 May 2026 14:23:37 +1000 [thread overview]
Message-ID: <review-overall-d1bc8d7d-3a4f-4ede-8266-81cc66bf11b5@collabora.com> (raw)
In-Reply-To: <d1bc8d7d-3a4f-4ede-8266-81cc66bf11b5@collabora.com>
Overall Series Review
Subject: Re: [PATCH v2] drm/virtio: move cursor resv lock acquisition to prepare_fb
Author: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Patches: 4
Reviewed: 2026-05-16T14:23:37.525668
---
This is a single-patch series fixing a real syzbot-reported bug where `virtio_gpu_cursor_plane_update()` ignores the return value of `virtio_gpu_array_lock_resv()`. The unchecked failure leads to `dma_resv_add_fence()` being called without the reservation lock held, causing a lockdep splat and potential fence-list corruption under concurrent access.
The fix correctly moves the fallible resource acquisition (object array allocation, reservation lock, fence slot reservation) from `.atomic_update` — which must not fail per the DRM atomic contract — into `.prepare_fb`, which is the designated callback for fallible resource preparation. This is the standard DRM pattern and the right approach.
The patch is well-structured, the commit message is thorough and explains both the bug mechanism and the design rationale. The lifecycle management (prepare → consume → cleanup) is correct across all paths (success, rollback, cursor-move-without-fb-change).
**Verdict: Good patch, ready to apply with minor observations below.**
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-16 4:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 2:07 [PATCH v2] drm/virtio: move cursor resv lock acquisition to prepare_fb Deepanshu Kartikey
2026-05-12 6:34 ` Dmitry Osipenko
2026-05-13 1:55 ` Deepanshu Kartikey
2026-05-13 9:10 ` Dmitry Osipenko
2026-05-16 4:23 ` Claude review: " Claude Code Review Bot
2026-05-16 4:23 ` Claude Code Review Bot [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=review-overall-d1bc8d7d-3a4f-4ede-8266-81cc66bf11b5@collabora.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/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