Received: from eggs.gnu.org ([2001:4830:134:3::10]:53773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeIF4-0007e1-Ne for qemu-devel@nongnu.org; Wed, 24 Jan 2018 05:25:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeIF3-0004te-Fy for qemu-devel@nongnu.org; Wed, 24 Jan 2018 05:25:18 -0500 References: <20171128121055.6954-1-den@openvz.org> <20171128121055.6954-3-den@openvz.org> <7247ee82-c932-58d1-8a79-6af8c3665f0f@openvz.org> <99ffe289-4e69-f8b6-7722-1bd1620cc5f5@openvz.org> <805bdd48-fb9c-32b3-63c0-ca2f3ed63faf@redhat.com> From: "Denis V. Lunev" Message-ID: <1801cc61-69ee-cdcc-5929-acca198f5c5a@openvz.org> Date: Wed, 24 Jan 2018 13:25:01 +0300 MIME-Version: 1.0 In-Reply-To: <805bdd48-fb9c-32b3-63c0-ca2f3ed63faf@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Subject: Re: [Qemu-devel] [PATCH 2/2] ide: fix crash in IDE cdrom read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: Kevin Wolf , qemu-devel@nongnu.org, qemu-stable@nongnu.org, Stefan Hajnoczi sorry, I have caught this latter tooo late. On 12/18/2017 08:49 PM, John Snow wrote: > > On 12/14/2017 06:29 AM, Denis V. Lunev wrote: >>> If this has been broken since 2.9, 2.11-rc3 is too late for a bandaid >>> applied to something I can't diagnose. Let's discuss this for 2.12 and = I >>> will keep trying to figure out what the root cause is. >> I have read the entire letter in 2 subsequent attempts, but >> unfortunately I can not say much more additionally :( >> > No problem, sometimes I don't understand myself. And the IDE code isn't > exactly the nicest stuff to read. If I was smart enough I'd refactor the > whole thing, but without breaking migration it's a little hard :( > >>> Some questions for you: >>> >>> (1) Is the guest Linux? Do we know why this one machine might be >>> tripping up QEMU? (Is it running a fuzzer, a weird OS, etc...?) >> This is running by the end-user by our customer and we do not have >> access to that machine and customer. This is anonymized crash report >> from the node. This is not a single crash. We observe 1-2 reports with >> this crash in a day. >> > Yikes. Is this still on a 2.9-based VM, or have you upgraded to 2.10 or > 2.11 at this point? > > (From memory this was a problem with a 2.9 based machine) the problem is with 2.9 >>> (2) Does the VM actually have a CDROM inserted at some point? Is it >>> possible we're racing on some kind of eject or graph manipulation failu= re? >> unclear but IMHO probable. >> > If they're using a 2.10+ based VM, could you look at some trace points? > > either: > trace_ide_atapi_cmd (just scsi byte 0), or > trace_ide_atapi_cmd_packet (the entire scsi cdb) > > and > > trace_ide_exec_cmd > > the actual command bytes never get saved in the state struct, so it's > hard to tell from traces what commands were being processed, but these > traces help. unfortunately I do not have access to the crashing node :( that is the problem. >>> (3) Is this using AHCI or IDE? >> IDE. This is known 120%. We do not provide ability to enable AHCI >> without manual tweaking. >> > At least that helps narrow down the path... > >>> If I can't figure it out within a week or so from here I'll just check >>> in the band-aid with some /* FIXME */ comments attached. >> No prob. We are going to ship my band-aid and see to report statistics. >> >> Thank you in advance, >> =C2=A0=C2=A0=C2=A0 Den > I'll stage the band-aid with some FIXME comments, and maybe some scary > error_report prints with some information in them. I'll send it to the li= st. I do not see them merged. Have you? For now I have merged my patch downstream. I do not see that it could be wrong. The release is scheduled late this spring and if crashes will stop to happen - I'll let you know. Den