From: Ian Jackson Subject: [PATCH 1/5] tools/xc_restore: Initialise console and store mfns [and 2 more messages] Date: Mon, 25 Nov 2013 12:17:46 +0000 Message-ID: <21139.16362.159516.238367@mariner.uk.xensource.com> References: <1385377551-20826-1-git-send-email-andrew.cooper3@citrix.com> <1385377551-20826-4-git-send-email-andrew.cooper3@citrix.com> <1385377551-20826-3-git-send-email-andrew.cooper3@citrix.com> <1385377551-20826-2-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385377551-20826-2-git-send-email-andrew.cooper3@citrix.com>, <1385377551-20826-3-git-send-email-andrew.cooper3@citrix.com>, <1385377551-20826-4-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("[PATCH 1/5] tools/xc_restore: Initialise console and store mfns"): > If the console or store mfn chunks are not present in the migration stream, > stack junk gets reported for the mfns. > > XenServer had a very hard to track down VM corruption issue caused by exactly > this issue. Xenconsoled would connect to a junk mfn and incremented the ring > pointer if the junk happend to look like a valid gfn. Andrew Cooper writes ("[PATCH 2/5] tools/xenctx: Prevent leaking a file handle on error paths"): > Coverity ID: 1126110 Andrew Cooper writes ("[PATCH 3/5] tools/libxc: Improve xc_dom_malloc_filemap() error handling"): > In the original function, mmap() could be called with a length of -1 if the > second lseek failed and the caller had not provided max_size. > > While fixing up this error, improve the logging of other error paths. I know > from personal experience that debugging failures function is rather difficult > given only "xc_dom_malloc_filemap: failed (on file )" in the logs. I have queued these three for backport. Ian.