From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOnZR-0007V8-TN for qemu-devel@nongnu.org; Thu, 18 Oct 2012 06:43:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOnZL-0007a7-U5 for qemu-devel@nongnu.org; Thu, 18 Oct 2012 06:43:21 -0400 Message-ID: <507FDD38.2010009@redhat.com> Date: Thu, 18 Oct 2012 12:43:04 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1350220128-10140-1-git-send-email-thardeck@suse.de> <1350220128-10140-3-git-send-email-thardeck@suse.de> <507EC7FF.90603@suse.de> <1359569.y3MYGdvym5@thinktank.site> In-Reply-To: <1359569.y3MYGdvym5@thinktank.site> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] qemu queue: fix uninitialized removals List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tim Hardeck Cc: qemu-trivial , =?ISO-8859-1?Q?Andreas_F=E4rber?= , qemu-devel@nongnu.org Am 17.10.2012 23:24, schrieb Tim Hardeck: > Hi Andreas, >=20 > On Wednesday 17 October 2012 17:00:15 Andreas F=E4rber wrote: >> Tim, >> >> Am 14.10.2012 15:08, schrieb Tim Hardeck: >>> When calling QTAILQ_REMOVE or QLIST_REMOVE on an unitialized list >>> QEMU segfaults. >> >> Can this be reproduced by a user today? Or is this just fixing the cas= e >> that a developer forgot to initialize a list? > I am not sure but in this case it happened during an early VNC connecti= on=20 > state failure which most likely wouldn't happen to regular users. > I triggered it while working on the VNC connection part. >=20 > The issue could most likely be also fixed in the VNC connection initial= ization=20 > process but if this changes doesn't have a relevant performance impact = they=20 > might prevent some other/future crashes. At the same time, it could be hiding real bugs, where ignoring the QLIST_REMOVE() isn't the right fix. I can see your point, but I would be careful with making interfaces less strict. In any case, I don't think this qualifies for qemu-trivial, Andreas. Kevin