mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] hwmon: PMBus driver bug fixes
@ 2026-03-29 17:09 Pradhan, Sanman
  2026-03-29 17:09 ` [PATCH 1/4] hwmon: (tps53679) Fix array access with zero-length block read Pradhan, Sanman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Pradhan, Sanman @ 2026-03-29 17:09 UTC (permalink / raw)
  To: linux-hwmon; +Cc: linux, Delphine_CC_Chiu, linux-kernel, Sanman Pradhan

From: Sanman Pradhan <psanman@juniper.net>

Four bug fixes found during a code audit of drivers/hwmon/pmbus/:

 1. tps53679: Prevent out-of-bounds stack read when block read returns
    zero bytes.

 2. tps53679: Use binary-safe comparison and logging for PMBUS_IC_DEVICE_ID;
    distinguish short reads (-EIO) from wrong device IDs (-ENODEV).

 3. pxe1610: Propagate page-select write failure instead of silently
    proceeding with an indeterminate register page.

 4. ltc4286: Add missing PMBUS namespace import to silence modpost
    warnings.

Sanman Pradhan (4):
  hwmon: (tps53679) Fix array access with zero-length block read
  hwmon: (tps53679) Fix device ID comparison and printing in
    tps53676_identify()
  hwmon: (pxe1610) Check return value of page-select write in probe
  hwmon: (ltc4286) Add missing MODULE_IMPORT_NS("PMBUS")

 drivers/hwmon/pmbus/ltc4286.c  |  1 +
 drivers/hwmon/pmbus/pxe1610.c  |  5 ++++-
 drivers/hwmon/pmbus/tps53679.c | 14 +++++++++-----
 3 files changed, 14 insertions(+), 6 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-29 19:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-29 17:09 [PATCH 0/4] hwmon: PMBus driver bug fixes Pradhan, Sanman
2026-03-29 17:09 ` [PATCH 1/4] hwmon: (tps53679) Fix array access with zero-length block read Pradhan, Sanman
2026-03-29 19:10   ` Guenter Roeck
2026-03-29 17:09 ` [PATCH 2/4] hwmon: (tps53679) Fix device ID comparison and printing in tps53676_identify() Pradhan, Sanman
2026-03-29 18:34   ` Guenter Roeck
2026-03-29 17:09 ` [PATCH 3/4] hwmon: (pxe1610) Check return value of page-select write in probe Pradhan, Sanman
2026-03-29 19:13   ` Guenter Roeck
2026-03-29 17:09 ` [PATCH 4/4] hwmon: (ltc4286) Add missing MODULE_IMPORT_NS("PMBUS") Pradhan, Sanman
2026-03-29 19:13   ` Guenter Roeck

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®