summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorFan Wu <fanwu01@zju.edu.cn>2026-09-08 06:02:15 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-10 14:39:54 +0200
commit63b269ec537dc0fd26d0bd64872c26860d108c9d (patch)
tree5c2c636851ced0963a285460954e459769f71c8b /tools/lib/python/kdoc/python_version.py
parent310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 (diff)
downloadlinux-next-63b269ec537dc0fd26d0bd64872c26860d108c9d.tar.gz
linux-next-63b269ec537dc0fd26d0bd64872c26860d108c9d.zip
usb: typec: ucsi: glink: fix use-after-free of ucsi on remove
The pmic_glink client is released by the devres cleanup, which runs after pmic_glink_ucsi_remove() has returned, so its notification callbacks can queue work until then. Work that runs after ucsi_unregister() has been called touches freed state: it dereferences the connector array that ucsi_unregister() freed, or registers and unregisters the instance a second time. Disable both work items with disable_work_sync() before unregistering, and unregister only if the instance is still registered. This issue was found by an in-house static analysis tool. Fixes: 62b5412b1f4a ("usb: typec: ucsi: add PMIC Glink UCSI driver") Cc: stable <stable@kernel.org> Assisted-by: Codex:gpt-5.6 Link: https://lore.kernel.org/r/20260227190430.889-1-nathan.c.rebello@gmail.com Co-developed-by: Song Li <songl@zju.edu.cn> Signed-off-by: Song Li <songl@zju.edu.cn> Signed-off-by: Fan Wu <fanwu01@zju.edu.cn> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://patch.msgid.link/20260908060216.616045-1-fanwu01@zju.edu.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions