All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roy <rongh7426@gmail.com>
To: Aleksei Riapolov <tsbol@icloud.com>
Cc: mwen@igalia.com, mcanal@igalia.com,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] drm/v3d: Fix double free of the sg_table when a PRIME import fails
Date: Sun, 29 Nov 2026 16:05:21 +0800	[thread overview]
Message-ID: <20261129080521.784813-1-rongh7426@gmail.com> (raw)
In-Reply-To: <20261119144339.43896-1-tsbol@icloud.com>

Hi Aleksei,

I hit the same bug from raspberrypi/linux#7504 and sent a duplicate
fix before I saw yours, sorry for the noise.

I tested v2 on a Raspberry Pi 5 with 6.18.39, as an out-of-tree v3d
module. My reproducer fills the V3D address space and then imports a
vc4 dumb buffer. Without the patch it oopses in dma_direct_unmap_sg().
With the patch the import fails with -ENOSPC (20 runs), and bo_stats
and dma_buf/bufinfo are empty afterwards. Self-import of a v3d BO gives
the same offset (1000 runs), a vc4 buffer imported into v3d can be
mmapped and read back, and the igt v3d tests pass (82 pass, 2 skip, as
without the patch).

Tested-by: Roy <rongh7426@gmail.com>

Thanks,
Roy

      parent reply	other threads:[~2026-11-29  8:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 14:43 [PATCH v2] drm/v3d: Fix double free of the sg_table when a PRIME import fails Aleksei Riapolov
2026-11-20 16:29 ` Maíra Canal
2026-11-29  8:05 ` Roy [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=20261129080521.784813-1-rongh7426@gmail.com \
    --to=rongh7426@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcanal@igalia.com \
    --cc=mwen@igalia.com \
    --cc=tsbol@icloud.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.