diff options
| author | Guenter Roeck <linux@roeck-us.net> | 2026-09-12 07:50:38 -0700 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-10-18 09:35:07 -0700 |
| commit | 38df742fb53415d2c933145b16e27a3851fdba58 (patch) | |
| tree | 4ed95f3184faf1785c348ac204f2504f1a725880 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 6dcb8e4de526fa16887d8cc0aa6fee45a31fca23 (diff) | |
| download | linux-38df742fb53415d2c933145b16e27a3851fdba58.tar.gz linux-38df742fb53415d2c933145b16e27a3851fdba58.zip | |
hwmon: (pmbus) Validate number of phases per page
It is possible for a PMBus driver to configure a phase count larger than
the PMBUS_PHASES limit and cause an out-of-bounds read.
Add a bounds check for info->phases against PMBUS_PHASES in the core API
to prevent the potential out-of-bounds read.
Cc: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20260912145038.2411447-1-linux@roeck-us.net
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
