From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: Re: [PATCH] drm/syncobj: Fix handle <-> fd ioctls with dirty stack
Date: Tue, 03 Mar 2026 13:58:23 +1000 [thread overview]
Message-ID: <review-overall-93f2c5b5-4f5e-46f1-a7f3-c388ab762592@amd.com> (raw)
In-Reply-To: <93f2c5b5-4f5e-46f1-a7f3-c388ab762592@amd.com>
Overall Series Review
Subject: Re: [PATCH] drm/syncobj: Fix handle <-> fd ioctls with dirty stack
Author: =?UTF-8?Q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>
Patches: 3
Reviewed: 2026-03-03T13:58:23.267122
---
This is a single-patch fix for a real regression introduced by commit c2d3a7300695 ("drm/syncobj: Extend EXPORT_SYNC_FILE for timeline syncobjs"). The analysis in the commit message is correct, the fix is minimal and appropriate, and it addresses both affected ioctl handlers symmetrically.
**The regression**: When the `point` field was added to `struct drm_syncobj_handle`, both `drm_syncobj_handle_to_fd_ioctl` and `drm_syncobj_fd_to_handle_ioctl` began checking `if (args->point) return -EINVAL;` on the non-timeline code paths. This breaks userspace that is compiled against new headers but doesn't initialize the `point` field (because it was written for the older interface where `point` didn't exist). The `point` field picks up stack garbage, fails the check, and the ioctl returns `-EINVAL`.
Note: Userspace compiled against the *old* headers (without `point`) is unaffected because the DRM ioctl infrastructure zero-pads the struct when `in_size < drv_size` (see `drm_ioctl()` at `drm_ioctl.c:898-899`). The regression specifically affects userspace compiled against new headers but not updated to initialize `point`.
**Recommendation**: This patch looks correct and ready to apply. It should also be tagged with `Cc: stable@vger.kernel.org` for backporting.
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-03-03 3:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-01 12:34 [PATCH] drm/syncobj: Fix handle <-> fd ioctls with dirty stack Julian Orth
2026-03-02 11:27 ` Christian König
2026-03-02 11:54 ` Dmitry Osipenko
2026-03-03 3:58 ` Claude Code Review Bot [this message]
2026-03-03 3:58 ` Claude review: " Claude Code Review Bot
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-93f2c5b5-4f5e-46f1-a7f3-c388ab762592@amd.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