Skip to content

regulator: Fix locking, OOB read, lifetime, and global state bugs (batch 2)

Lee Jones linux-omap lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8regulator: core: Defer supply cleanup and unregister event forwarding on errordrivers/regulator/core.c+5 -50 replies
2/8regulator: max8907: Duplicate of_regulator_match table per devicedrivers/regulator/max8907-regulator.c+24 -330 replies
3/8regulator: tps6594-regulator: Use dedicated handler for external regulator IRQsdrivers/regulator/tps6594-regulator.c+18 -10 replies
4/8regulator: tps65910: Fix OOB read and bit shift in external sleep configdrivers/regulator/tps65910-regulator.c+16 -40 replies
5/8regulator: tps6594-regulator: Bind IRQ resources to child platform devicedrivers/regulator/tps6594-regulator.c+4 -40 replies
6/8regulator: core: Respect is_locked when disabling supply on enable failuredrivers/regulator/core.c+6 -20 replies
7/8regulator: of: Guard against NULL device_node in of_regulator_bulk_get_all()drivers/regulator/of_regulator.c+3 -00 replies
8/8regulator: aat2870: Duplicate regulator data per devicedrivers/regulator/aat2870-regulator.c+19 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] regulator: Fix locking, OOB read, lifetime, and global state bugs (batch 2)

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" <[email protected]>
Cc Aaro Koskinen <[email protected]>
Cc Alexey Charkov <[email protected]>
Cc Andreas Kemnade <[email protected]>
Cc Corentin Labbe <[email protected]>
Cc Douglas Anderson <[email protected]>
Cc Eduardo Candelaria <[email protected]>
Cc Esteban Blanc <[email protected]>
Cc Graeme Gregory <[email protected]>
Cc Gyungoh Yoo <[email protected]>
Cc Jerome Neanne <[email protected]>
Cc Jin Park <[email protected]>
Cc Kevin Hilman <[email protected]>
Cc Laxman Dewangan <[email protected]>
Cc Liam Girdwood <[email protected]>
Cc Mal Nadar <[email protected]>
Cc Mark Brown <[email protected]>
Cc Markus Schneider-Pargmann <[email protected]>
Cc Oleksij Rempel <[email protected]>
Cc Rajendra Nayak <[email protected]>
Cc Roger Quadros <[email protected]>
Cc Samuel Ortiz <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Uday Khare <[email protected]>

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(-)
Signature · 1 line
2.56.1.839.g22a8290db9-goog