[PATCH v3 0/5] pmstat interface fixes

Ross Lagerwall posted 5 patches 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250527152635.2451449-1-ross.lagerwall@citrix.com
tools/libs/ctrl/xc_pm.c       | 21 +++++++-------
tools/misc/xenpm.c            | 48 ++++++++++++++++++++-----------
xen/drivers/acpi/pmstat.c     |  7 +++--
xen/drivers/cpufreq/cpufreq.c |  3 +-
xen/include/public/sysctl.h   | 54 +++++++++++++++++++++++++++--------
5 files changed, 90 insertions(+), 43 deletions(-)
[PATCH v3 0/5] pmstat interface fixes
Posted by Ross Lagerwall 5 months ago
Clarify and fix usage of the pmstat hypervisor and tools interfaces
regarding sizes of buffers passed in.

Ross Lagerwall (5):
  x86/pmstat: Check size of PMSTAT_get_pxstat buffers
  public/sysctl: Clarify usage of pm_{px,cx}_stat
  cpufreq: Avoid potential buffer overrun and leak
  libxc/PM: Ensure pxstat buffers are correctly sized
  libxc/PM: Retry get_pxstat if data is incomplete

 tools/libs/ctrl/xc_pm.c       | 21 +++++++-------
 tools/misc/xenpm.c            | 48 ++++++++++++++++++++-----------
 xen/drivers/acpi/pmstat.c     |  7 +++--
 xen/drivers/cpufreq/cpufreq.c |  3 +-
 xen/include/public/sysctl.h   | 54 +++++++++++++++++++++++++++--------
 5 files changed, 90 insertions(+), 43 deletions(-)

-- 
2.49.0