Skip to content

pmstat interface fixes

Ross Lagerwall xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 5 repliesIn review
  2. v25 patches 10 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/pmstat: Check size of PMSTAT_get_pxstat buffersxen/drivers/acpi/pmstat.c xen/include/public/sysctl.h+18 -42 replies
2/5public/sysctl: Clarify usage of pm_{px,cx}_statxen/include/public/sysctl.h+29 -101 reply
3/5cpufreq: Avoid potential buffer overrun and leakxen/drivers/cpufreq/cpufreq.c+2 -11 reply
4/5libxc/PM: Ensure pxstat buffers are correctly sizedtools/libs/ctrl/xc_pm.c tools/misc/xenpm.c+11 -111 reply
5/5libxc/PM: Retry get_pxstat if data is incompletetools/misc/xenpm.c+31 -180 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchAnthony PERARDJan Beulich
1/5R-b
2/5A-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] pmstat interface fixes

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(-)
Signature · 1 line
2.49.0