From: Linus Walleij <linusw@kernel.org>
To: Lee Jones <lee@kernel.org>
Cc: Sebastian Reichel <sre@kernel.org>,
Johan Palsson <johan.palsson@stericsson.com>,
Karl Komierowski <karl.komierowski@stericsson.com>,
Arun R Murthy <arun.murthy@stericsson.com>,
Anton Vorontsov <anton.vorontsov@linaro.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH 05/10] power: supply: ab8500_btemp: Remove unused global device list
Date: Fri, 4 Dec 2026 00:55:45 +0100 [thread overview]
Message-ID: <CAD++jLm12wA5pe8b3fsqC_fDFYZMWAzWuQo38O4KfSEOLtg2cg@mail.gmail.com> (raw)
In-Reply-To: <20261203161316.319090-6-lee@kernel.org>
On Thu, Dec 3, 2026 at 5:13 PM Lee Jones <lee@kernel.org> wrote:
> ab8500_btemp_probe() links the devm-allocated device structure into the
> static ab8500_btemp_list without ever removing it on probe failure or
> unbind. A subsequent rebind traverses the freed list node and corrupts
> memory.
>
> Since ab8500_btemp_list has had no readers since BATCTRL thermal mode
> was removed, delete the unused list and its node field altogether.
>
> Fixes: 1f855824757e ("ab8500-btemp: AB8500 battery temperature driver")
> Closes: https://sashiko.dev/#/bug/linux-1b556e1a-3976-4c4b-a368-b92b6f64cc8b
> Cc: stable@vger.kernel.org
> Signed-off-by: Lee Jones <lee@kernel.org>
Good find!
Reviewed-by: Linus Walleij <linusw@kernel.org>
Yours,
Linus Walleij
next prev parent reply other threads:[~2026-12-03 23:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 16:12 [PATCH 00/10] power: supply: Fix Critical and High issues reported by Sashiko Lee Jones
2026-12-03 16:12 ` [PATCH 01/10] power: supply: bq27xxx: Check for short i2c_transfer() in bq27xxx_battery_i2c_read() Lee Jones
2026-12-03 19:14 ` Andrew Davis
2026-12-03 16:12 ` [PATCH 02/10] power: supply: generic-adc-battery: Initialise bat_work before registering supply Lee Jones
2026-12-03 16:12 ` [PATCH 03/10] power: supply: bq24190: Manage teardown order with devm to prevent UAF Lee Jones
2026-12-03 16:12 ` [PATCH 04/10] power: supply: gpio-charger: Avoid printing uninitialised chargetype Lee Jones
2026-12-03 16:12 ` [PATCH 05/10] power: supply: ab8500_btemp: Remove unused global device list Lee Jones
2026-12-03 23:55 ` Linus Walleij [this message]
2026-12-03 16:12 ` [PATCH 06/10] power: supply: core: Pack supplied_from densely and bound writes Lee Jones
2026-12-03 16:12 ` [PATCH 07/10] power: supply: core: Reject empty ocv-capacity-table properties Lee Jones
2026-12-03 16:12 ` [PATCH 08/10] power: supply: cpcap-battery: Release battery info in cpcap_battery_update_battery_data() Lee Jones
2026-12-03 16:12 ` [PATCH 09/10] power: supply: qcom_battmgr: Hold battmgr->lock in qcom_battmgr_enable_worker() Lee Jones
2026-12-03 16:12 ` [PATCH 10/10] power: supply: sbs-battery: Always cancel delayed work on suspend Lee Jones
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=CAD++jLm12wA5pe8b3fsqC_fDFYZMWAzWuQo38O4KfSEOLtg2cg@mail.gmail.com \
--to=linusw@kernel.org \
--cc=anton.vorontsov@linaro.org \
--cc=arun.murthy@stericsson.com \
--cc=johan.palsson@stericsson.com \
--cc=karl.komierowski@stericsson.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
--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
all inboxes | Powered by JetHome®