From: "Jan Beulich" Subject: Re: [PATCH] passthrough/amd: avoid reading an uninitialized variable. Date: Fri, 17 Apr 2015 09:01:27 +0100 Message-ID: <5530D9F702000078000731DE@mail.emea.novell.com> References: <1429202650-2608-1-git-send-email-tim@xen.org> <552FEF35.5090004@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <552FEF35.5090004@citrix.com> Content-Disposition: inline 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 , xen-devel@lists.xen.org, Tim Deegan Cc: Aravind Gopalakrishnan , SuraveeSuthikulpanit List-Id: xen-devel@lists.xenproject.org >>> On 16.04.15 at 19:19, wrote: > On 16/04/15 17:44, Tim Deegan wrote: >> update_intremap_entry_from_msi() doesn't write to its data pointer on >> some error paths, so we copying that variable into the msg would count >> as undefined behaviour. >> >> Signed-off-by: Tim Deegan >> Cc: Suravee Suthikulpanit >> Cc: Aravind Gopalakrishnan > > This looks curiously familiar. > > http://lists.xen.org/archives/html/xen-devel/2015-03/msg03679.html > > I was meaning to get around to submitting it as a formal patch, but you > have definitely beaten me to it :) But sadly it didn't help with the issue Sander reported (and I also didn't expect it to, as errors here should cause the caller to not use msg at all, and the regressing patch didn't alter anything that could have caused errors to surface where none where seen before). Still the patch is a good one as correcting a language spec violation. Jan