All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.5 0/2] Fix `xl vcpu-list` with partially created domains
@ 2014-10-20 16:21 Andrew Cooper
  2014-10-20 16:21 ` [PATCH for-4.5 1/2] xen/domctl: Fix getdomaininfo() of a domain without vcpus Andrew Cooper
  2014-10-20 16:21 ` [PATCH for-4.5 2/2] tools/[lib]xl: Fix `xl vcpu-list` when domains without vcpus exist Andrew Cooper
  0 siblings, 2 replies; 9+ messages in thread
From: Andrew Cooper @ 2014-10-20 16:21 UTC (permalink / raw)
  To: Xen-devel
  Cc: Keir Fraser, Ian Campbell, Andrew Cooper, Ian Jackson,
	Euan Harris, Jan Beulich, Wei Liu

This series fixes a bug to do with listing the vcpus of a domain lacking any.
This can occur if there was an error constructing a domain, and it wasn't
successfully cleaned up.

This series fixes two problems.  First that getdomaininfo() in Xen previously
had no way of expressing "this domain has no vcpus", and second that libxl
would blindly allocate memory with an uninitialised value in the case that it
encountered a domain in this state.

This bug was discovered against Xen 4.4, but the bug is present in -unstable
as well.  As such, I flag it for backport ASAP.

Andrew Cooper (2):
  xen/domctl: Fix getdomaininfo() of a domain without vcpus
  tools/[lib]xl: Fix `xl vcpu-list` when domains without vcpus exist

 tools/libxl/libxl.c         |    8 +++++++-
 tools/libxl/xl_cmdimpl.c    |    4 +---
 xen/common/domctl.c         |    1 +
 xen/include/public/domctl.h |    1 +
 4 files changed, 10 insertions(+), 4 deletions(-)

-- 
1.7.10.4

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

end of thread, other threads:[~2014-10-21 13:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 16:21 [PATCH for-4.5 0/2] Fix `xl vcpu-list` with partially created domains Andrew Cooper
2014-10-20 16:21 ` [PATCH for-4.5 1/2] xen/domctl: Fix getdomaininfo() of a domain without vcpus Andrew Cooper
2014-10-21  8:35   ` Jan Beulich
2014-10-21 10:39     ` George Dunlap
2014-10-20 16:21 ` [PATCH for-4.5 2/2] tools/[lib]xl: Fix `xl vcpu-list` when domains without vcpus exist Andrew Cooper
2014-10-20 16:38   ` [PATCH for-4.5 v2 " Andrew Cooper
2014-10-21 13:06     ` Wei Liu
2014-10-21 13:08       ` Andrew Cooper
2014-10-21 13:11         ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.