[PATCH 0/4] Fix truncation of various XENVER_* subops

Andrew Cooper posted 4 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230103200943.5801-1-andrew.cooper3@citrix.com
Test gitlab-ci failed
There is a newer version of this series
xen/common/Makefile          |   2 +-
xen/common/compat/kernel.c   |  53 ---------------------
xen/common/kernel.c          | 108 ++++++++++++++++++++++++++++++++++++++-----
xen/include/hypercall-defs.c |   2 +-
xen/include/public/version.h |  78 +++++++++++++++++++++++++++++--
xen/include/xlat.lst         |   4 ++
xen/xsm/flask/hooks.c        |   4 ++
7 files changed, 181 insertions(+), 70 deletions(-)
delete mode 100644 xen/common/compat/kernel.c
[PATCH 0/4] Fix truncation of various XENVER_* subops
Posted by Andrew Cooper 1 year, 3 months ago
See patch 4 for details of the problem.  Other patches fix other errors found
while investigating.

This is only the hypervisor side of the change for now, because I want
agreement before starting to untangle the mess which is libxc's helpers for
this.

Also a disaster is Linux's sysfs handling for these.  In several places it
makes a heap allocation for a pointer (or two) sized object.

Andrew Cooper (4):
  public/version: Change xen_feature_info to have a fixed size
  xen/version: Drop compat/kernel.c
  xen/version: Drop bogus return values for XENVER_platform_parameters
  xen/version: Introduce non-truncating XENVER_* subops

 xen/common/Makefile          |   2 +-
 xen/common/compat/kernel.c   |  53 ---------------------
 xen/common/kernel.c          | 108 ++++++++++++++++++++++++++++++++++++++-----
 xen/include/hypercall-defs.c |   2 +-
 xen/include/public/version.h |  78 +++++++++++++++++++++++++++++--
 xen/include/xlat.lst         |   4 ++
 xen/xsm/flask/hooks.c        |   4 ++
 7 files changed, 181 insertions(+), 70 deletions(-)
 delete mode 100644 xen/common/compat/kernel.c

-- 
2.11.0