AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "John Harrison" <John.Harrison@Igalia.com>,
	amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/amd/display: Fix use-after-free in dm_test_vblank_control_worker_enable_increments
Date: Sat, 05 Dec 2026 01:01:20 +0000	[thread overview]
Message-ID: <sashiko-outbox-250871@kernel.org> (raw)
In-Reply-To: <20261205004951.404627-2-John.Harrison@Igalia.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/amd/display: missing Fixes trailer in commit message
--

commit 743bf16e2134d4dfb68bd75ac4f4ba7434f28d77
Author: John Harrison <John.Harrison@Igalia.com>

> drm/amd/display: Fix use-after-free in dm_test_vblank_control_worker_enable_increments
>
> The test runs a worker thread and verifies that it did something.
> However, the worker frees up the work item object that the 'did
> something' check inspects.
>
> The check is actually looking at data inside a different object (AMD
> CRTC) but using the work item object to get there. So just save a
> pointer to the desired CRTC object and use that in the test instead.
>
> Signed-off-by: John Harrison <John.Harrison@Igalia.com>

[Severity: Low]
This fixes the use-after-free on work->acrtc introduced in
dm_test_vblank_control_worker_enable_increments().  Should the commit
message include:

  Fixes: 6455792e51db ("drm/amd/display: Fix KUnit tests for vblank control rework")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261205004951.404627-1-John.Harrison@Igalia.com?part=1

  reply	other threads:[~2026-12-05  1:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  0:49 [PATCH 0/2] drm/amd/display: Fix a couple of test failures John Harrison
2026-12-05  0:49 ` [PATCH 1/2] drm/amd/display: Fix use-after-free in dm_test_vblank_control_worker_enable_increments John Harrison
2026-12-05  1:01   ` sashiko-bot [this message]
2026-12-05  0:49 ` [PATCH 2/2] drm/amd/display: Fix null pointer deref during dm_test_i2c_xfer_no_ddc_pin John Harrison

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=sashiko-outbox-250871@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=John.Harrison@Igalia.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@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