From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: <intel-gfx@lists.freedesktop.org>,
Martin Hodo <martin.hodo@intel.com>,
Alan Previn Teres Alexis <alan.previn.teres.alexis@intel.com>
Subject: Re: [PATCH 1/2] drm/i915/pxp: access the component data under lock when sending IO messages
Date: Mon, 30 Nov 2026 17:41:14 -0500 [thread overview]
Message-ID: <aw37ijh3J42bxrmH@intel.com> (raw)
In-Reply-To: <20261130220020.278579-5-daniele.ceraolospurio@intel.com>
On Mon, Nov 30, 2026 at 10:00:22PM +0000, Daniele Ceraolo Spurio wrote:
> The memory accessed by the pointer can be cleared if the component
> module is unloaded (which requires a privileged user to do). The
> component unbind flow takes the lock before clearing the pointer, so
> accessing the pointer under the lock is safe.
>
> Discovered using AI-assisted static analysis confirmed by Intel Product
> Security.
>
> Reported-by: Martin Hodo <martin.hodo@intel.com>
> Fixes: cbbd3764b239 ("drm/i915/pxp: Create the arbitrary session after boot")
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Cc: Alan Previn Teres Alexis <alan.previn.teres.alexis@intel.com>
> ---
> drivers/gpu/drm/i915/pxp/intel_pxp_tee.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c
> index 1784153f0cf8..a42b786b5612 100644
> --- a/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c
> +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_tee.c
> @@ -61,11 +61,13 @@ static int intel_pxp_tee_io_message(struct intel_pxp *pxp,
> u32 *msg_out_rcv_size)
> {
> struct drm_i915_private *i915 = pxp->ctrl_gt->i915;
> - struct i915_pxp_component *pxp_component = pxp->pxp_component;
> + struct i915_pxp_component *pxp_component;
why the line above pxp->ctrl_gt->i915 is safe and this is not?
> int ret = 0;
>
> mutex_lock(&pxp->tee_mutex);
>
> + pxp_component = pxp->pxp_component;
> +
> /*
> * The binding of the component is asynchronous from i915 probe, so we
> * can't be sure it has happened.
> --
> 2.53.0
>
next prev parent reply other threads:[~2026-11-30 22:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 22:00 [PATCH 0/2] Only access the PXP component pointer under lock Daniele Ceraolo Spurio
2026-11-30 22:00 ` [PATCH 1/2] drm/i915/pxp: access the component data under lock when sending IO messages Daniele Ceraolo Spurio
2026-11-30 22:15 ` sashiko-bot
2026-11-30 22:41 ` Rodrigo Vivi [this message]
2026-11-30 22:47 ` Ceraolo Spurio, Daniele
2026-11-30 22:55 ` Rodrigo Vivi
2026-11-30 22:00 ` [PATCH 2/2] drm/i915/pxp: access the component data under lock when sending stream messages Daniele Ceraolo Spurio
2026-12-01 0:29 ` ✓ i915.CI.BAT: success for Only access the PXP component pointer under lock Patchwork
2026-12-01 22:27 ` ✗ i915.CI.Full: failure " Patchwork
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=aw37ijh3J42bxrmH@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=alan.previn.teres.alexis@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=martin.hodo@intel.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.