public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauricio Faria de Oliveira <mfo@igalia.com>
To: stable@vger.kernel.org, "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>,
	Zhang Rui <rui.zhang@intel.com>,
	Lukasz Luba <lukasz.luba@arm.com>
Subject: [PATCH 6.12.y 0/2] backport: thermal: core: Address thermal zone removal races with resume
Date: Mon, 13 Apr 2026 20:14:49 -0300	[thread overview]
Message-ID: <20260413231451.357918-1-mfo@igalia.com> (raw)
In-Reply-To: <2026040820-overpass-barrette-bf09@gregkh>

This is a backport of upstream commit 45b859b07282 ("thermal: core: Address thermal zone removal races with resume")
which failed to apply to 6.12-stable tree, with one dependency commit
(not strictly necessary, but simple and makes the backport simpler).

Only minor changes were necessary in PATCH 2/2 (see backport comment).

Tested on v6.12.81 with the synthetic reproducers wrote for mainline.
Both scenarios fail (i.e., hit use-after-free) without these patches,
and pass (do not hit use-after-free) with these patches.

I could not perform further testing than the synthetic reproducers
(which exercise very specific code paths), so reviews and/or tests
are welcome.

Thanks,
Mauricio

Rafael J. Wysocki (2):
  thermal: core: Mark thermal zones as exiting before unregistration
  thermal: core: Address thermal zone removal races with resume

 drivers/thermal/thermal_core.c | 36 +++++++++++++++++++++++++++++-----
 drivers/thermal/thermal_core.h |  1 +
 2 files changed, 32 insertions(+), 5 deletions(-)

-- 
2.51.0


  reply	other threads:[~2026-04-13 23:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-08  7:01 FAILED: patch "[PATCH] thermal: core: Address thermal zone removal races with resume" failed to apply to 6.12-stable tree gregkh
2026-04-13 23:14 ` Mauricio Faria de Oliveira [this message]
2026-04-13 23:14   ` [PATCH 6.12.y 1/2] thermal: core: Mark thermal zones as exiting before unregistration Mauricio Faria de Oliveira
2026-04-13 23:14   ` [PATCH 6.12.y 2/2] thermal: core: Address thermal zone removal races with resume Mauricio Faria de Oliveira

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=20260413231451.357918-1-mfo@igalia.com \
    --to=mfo@igalia.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=lukasz.luba@arm.com \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=stable@vger.kernel.org \
    /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