Received: from eggs.gnu.org ([2001:4830:134:3::10]:48751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi1Tl-0007M6-FJ for qemu-devel@nongnu.org; Thu, 08 Sep 2016 11:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi1Tj-0003cp-TA for qemu-devel@nongnu.org; Thu, 08 Sep 2016 11:43:04 -0400 References: <1473283640-15756-1-git-send-email-eblake@redhat.com> <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> From: Paolo Bonzini Message-ID: <9ba40ece-b563-de01-82ea-a0a8e5a4275d@redhat.com> Date: Thu, 8 Sep 2016 17:42:49 +0200 MIME-Version: 1.0 In-Reply-To: <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tLwPGE4Ciq1d3OTqNSTqefLROHSp5cljr" Subject: Re: [Qemu-devel] [PATCH v2] iscsi: Fix divide-by-zero regression on raw SG devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Holger Schranz , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org, qemu-stable@nongnu.org, Ronnie Sahlberg , Peter Lieven , Max Reitz , Ralf Mueller This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tLwPGE4Ciq1d3OTqNSTqefLROHSp5cljr From: Paolo Bonzini To: Eric Blake , Holger Schranz , qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org, qemu-stable@nongnu.org, Ronnie Sahlberg , Peter Lieven , Max Reitz , Ralf Mueller Message-ID: <9ba40ece-b563-de01-82ea-a0a8e5a4275d@redhat.com> Subject: Re: [PATCH v2] iscsi: Fix divide-by-zero regression on raw SG devices References: <1473283640-15756-1-git-send-email-eblake@redhat.com> <69ad87e7-69c8-e840-3eb2-13dff6574ce8@fam-schranz.de> <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> In-Reply-To: <52f5dd11-9ade-9ec2-3f06-db0ccecfdec9@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/09/2016 17:25, Eric Blake wrote: > On 09/08/2016 09:27 AM, Holger Schranz wrote: >> Hi Eric, >> >> Thanks a lot, it seems the patch works. The VM starting. >=20 > Should I take that as a Tested-by: line? >=20 >> Unfortunately we run into the next issue. By the accessing the >> megasas controller we got a SIGSEGV. >=20 > Seems unrelated, let's figure out who's responsible. >=20 >=20 >> >> /home/kvm/SOURCES/qemu.git/qemu/hw/scsi> diff megasas.c >> /home/kvm/SOURCES/qemu-2.6.1/hw/scsi/megasas.c >=20 > 'diff -u' is much easier to read than plain 'diff' (ed script diffs hav= e > no context); in fact, 'git diff' uses -u format by default. Also, it's= > traditional to 'diff old new', but you flipped the argument, so the dif= f > looks backwards. >=20 >> 32c32 >> < #include "qapi/error.h" >> --- >>> >> 51c51,55 >> : >> 413a422,423 >>> >>> return bcd_time; >> 1984c1994,1998 >> < cmd->frame->header.cmd_status =3D frame_status; >> --- >>> if (cmd->frame) { >>> cmd->frame->header.cmd_status =3D frame_status; >>> } else { >>> megasas_frame_set_cmd_status(s, frame_addr, frame_status)= ; >>> } >=20 > Here's a nicer way to get the above diff > $ git diff v2.6.1 v2.7.0 hw/scsi/megasas.c >=20 > at which point 'git gui blame hw/scsi/megasas.c' shows that it was > commit 8cc46787, by Paolo, that claimed that cmd->frame was non-NULL. Well, that's easy, let's just revert it. :) Paolo --tLwPGE4Ciq1d3OTqNSTqefLROHSp5cljr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX0Yb5AAoJEL/70l94x66Db70H/1kCP2gyvLs8zcDA1/h0R14y scmaamR53xgs40BuLEZRjcxKFl+UWWIBCThoJ9wUtOCUtRNGXmJb7Lh/GuFPEXBW wnzcVrNQq9PhEhgKZ3VG3AW8SzmlugX0+FLDqK+CCxzlAlDJqX8B0Vbbdt2+t1Ai Mdnvvu4/p/IMcX3iRFRnIttRK7ior304wBrFZAL0MDyczYmB2vEy7Voe91+eIQzK +iFP4HwenZU1GUet3FvhZ0pr1bf/BhoFJU6cNq1Oc+iSgGZUEDGVnAs7/SMwZsgC zldMd2U0PHZ7PV/2DinjvzU7Utn8KWQIndfT9aZtdT9jXTUlgRQsObD74FSJjaE= =Q59r -----END PGP SIGNATURE----- --tLwPGE4Ciq1d3OTqNSTqefLROHSp5cljr--