Received: from eggs.gnu.org ([2001:4830:134:3::10]:50035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avSUd-0007wG-Gw for qemu-devel@nongnu.org; Wed, 27 Apr 2016 12:39:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avSUa-0006af-CA for qemu-devel@nongnu.org; Wed, 27 Apr 2016 12:39:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avSUa-0006a5-6T for qemu-devel@nongnu.org; Wed, 27 Apr 2016 12:39:12 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B6C473DD47 for ; Wed, 27 Apr 2016 16:39:11 +0000 (UTC) Date: Wed, 27 Apr 2016 13:39:09 -0300 From: Eduardo Habkost Message-ID: <20160427163909.GC4457@thinpad.lan.raisama.net> References: <1461767349-15329-1-git-send-email-armbru@redhat.com> <1461767349-15329-3-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461767349-15329-3-git-send-email-armbru@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-2.6 2/3] replay: Fix dangling location bug in replay_configure() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, eblake@redhat.com On Wed, Apr 27, 2016 at 04:29:08PM +0200, Markus Armbruster wrote: > replay_configure() pushes and pops a Location with automatic storage > duration. Except it fails to pop when -icount parameter "rr" isn't > given. cur_loc then points to unused stack space, and will most > likely get clobbered in short order. > > Clobbered cur_loc can make loc_pop() and error_print_loc() crash or > report bogus locations. > > Broken in commit 890ad55. > > I didn't take the time to find a reproducer. > > Cc: Eduardo Habkost > Signed-off-by: Markus Armbruster Oops! Thanks for catching it. Reviewed-by: Eduardo Habkost -- Eduardo