Re: [PATCH v2] power: supply: qcom_battmgr: fix use-after-free

Sebastian Reichel <[email protected]> Sat, 01 Aug 2026 18:26:44 +0200
Newsgroups org.kernel.vger.linux-pm,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel,org.kernel.vger.stable
Message-ID <178560160417.8893.8042896031872107443.b4-ty@b4>
On Sat, 01 Aug 2026 05:19:23 +0000, Fan Wu wrote:
> qcom_battmgr_pdr_notify() queues enable_work when the PMIC GLINK service
> comes up, and the worker recovers battmgr through container_of() to issue
> firmware requests. The PMIC GLINK client stays on the client list until
> its devres release action runs, so a PDR notification can keep queueing
> the work, and a pending or running worker can access battmgr after devres
> frees it.
> 
> [...]

Applied, thanks!

[1/1] power: supply: qcom_battmgr: fix use-after-free
      commit: 4e40befedfc8ed86f44e1f81df92d13c149c9f8d

Best regards,
-- 
Sebastian Reichel <[email protected]>