[PATCH 0/8] regulator: Fix locking, OOB read, lifetime, and global state bugs (batch 2)
From: Lee Jones
Date: Fri Nov 27 2026 - 13:36:39 EST
These issues were reported by Sashiko.
This is batch 2 of Regulator bug fixes, based on regulator/for-next.
It addresses supply teardown and locking bugs in regulator core, slab
and global out-of-bounds reads in tps6594 and tps65910, devres lifetime
mismatches in tps6594, a NULL device_node dereference in of_regulator,
and shared global table mutations in max8907 and aat2870.
Cc: "André Draszik" <andre.draszik@xxxxxxxxxx>
Cc: Aaro Koskinen <aaro.koskinen@xxxxxx>
Cc: Alexey Charkov <alchark@xxxxxxxxxxx>
Cc: Andreas Kemnade <andreas@xxxxxxxxxxxx>
Cc: Corentin Labbe <clabbe@xxxxxxxxxxxx>
Cc: Douglas Anderson <dianders@xxxxxxxxxxxx>
Cc: Eduardo Candelaria <jedu@xxxxxxxxxxxxxxx>
Cc: Esteban Blanc <eblanc@xxxxxxxxxxxx>
Cc: Graeme Gregory <gg@xxxxxxxxxxxxxxx>
Cc: Gyungoh Yoo <jack.yoo@xxxxxxxxxxxx>
Cc: Jerome Neanne <jneanne@xxxxxxxxxxxx>
Cc: Jin Park <jinyoungp@xxxxxxxxxx>
Cc: Kevin Hilman <khilman@xxxxxxxxxxxx>
Cc: Laxman Dewangan <ldewangan@xxxxxxxxxx>
Cc: Liam Girdwood <lgirdwood@xxxxxxxxx>
Cc: linux-omap@xxxxxxxxxxxxxxx
Cc: Mal Nadar <m.nirmaladevi@xxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: Markus Schneider-Pargmann <msp@xxxxxxxxxxxx>
Cc: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
Cc: Rajendra Nayak <rnayak@xxxxxx>
Cc: Roger Quadros <rogerq@xxxxxxxxxx>
Cc: Samuel Ortiz <sameo@xxxxxxxxxxxxxxx>
Cc: Stephen Warren <swarren@xxxxxxxxxx>
Cc: Tony Lindgren <tony@xxxxxxxxxxx>
Cc: Uday Khare <udaykhare77@xxxxxxxxx>
Lee Jones (8):
regulator: core: Defer supply cleanup and unregister event forwarding
on error
regulator: max8907: Duplicate of_regulator_match table per device
regulator: tps6594-regulator: Use dedicated handler for external
regulator IRQs
regulator: tps65910: Fix OOB read and bit shift in external sleep
config
regulator: tps6594-regulator: Bind IRQ resources to child platform
device
regulator: core: Respect is_locked when disabling supply on enable
failure
regulator: of: Guard against NULL device_node in
of_regulator_bulk_get_all()
regulator: aat2870: Duplicate regulator data per device
drivers/regulator/aat2870-regulator.c | 30 +++++++++-----
drivers/regulator/core.c | 18 ++++----
drivers/regulator/max8907-regulator.c | 57 +++++++++++---------------
drivers/regulator/of_regulator.c | 3 ++
drivers/regulator/tps65910-regulator.c | 20 +++++++--
drivers/regulator/tps6594-regulator.c | 27 +++++++++---
6 files changed, 95 insertions(+), 60 deletions(-)
--
2.56.1.839.g22a8290db9-goog