From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54BF3C4338F for ; Sat, 21 Aug 2021 14:51:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3CD8C61184 for ; Sat, 21 Aug 2021 14:51:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3CD8C61184 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:56676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHSLj-0005TW-1I for qemu-devel@archiver.kernel.org; Sat, 21 Aug 2021 10:51:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHSKW-0004Ol-HJ for qemu-devel@nongnu.org; Sat, 21 Aug 2021 10:50:40 -0400 Received: from smtp-relay-services-1.canonical.com ([185.125.188.251]:42816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHSKT-0007vk-N3 for qemu-devel@nongnu.org; Sat, 21 Aug 2021 10:50:40 -0400 Received: from loganberry.canonical.com (loganberry.canonical.com [91.189.90.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-services-1.canonical.com (Postfix) with ESMTPSA id 7A79B3F700 for ; Sat, 21 Aug 2021 14:50:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=launchpad.net; s=20210803; t=1629557434; bh=VY92sLDDsLhShylONAHLONpQrco5jvpcZ0tANshoSFk=; h=MIME-Version:Content-Type:Date:From:To:Reply-To:References: Message-Id:Subject; b=DPK8v+Y2OV/6pl2uCFCJL1H3yC6vPBMgoxIcU3Wgv0h3C0k1sFuvoGRjKqUvquzxI kkzRpEk98Lfrds/ZOyEhLvs0hhSMVjGp4GDljvE6MlACA3nX69ySBgwg7TkXoSuPRK 3LtWKAoaHyy4QTSsRJXlxAgI6YeHr+X+UqiloYyipBpR+JwIE8qZ2qheZtxiKNf2SJ qlhCEGlYaoAbAOQvch3r0uKWcEuCS5dKJTRcQ/0Pg2ciC04EInn8dt/Zkt79aU9fH3 S3nYXZm3pSqyK6lA8MHthcqN5O8/fvPd/sCubdfaosg2u9Ff5Pd4dL3Vz2e9tnHhpU 0ld3mzxsyMJqA== Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 270C32E8180 for ; Sat, 21 Aug 2021 14:50:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sat, 21 Aug 2021 14:44:39 -0000 From: Thomas Huth <1905521@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Expired; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: hades0506 philmd th-huth X-Launchpad-Bug-Reporter: Gaoning Pan (hades0506) X-Launchpad-Bug-Modifier: Thomas Huth (th-huth) References: <160628893217.26625.10789422824158727924.malonedeb@chaenomeles.canonical.com> Message-Id: <162955707985.827.5861023856485723895.malone@gac.canonical.com> Subject: [Bug 1905521] Re: assert issue locates in hw/scsi/lsi53c895a.c:624: lsi_do_dma: Assertion `s->current' failed X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="25edfd4b3e79d9ee9d9c3a750eb93e4d41d56c9e"; Instance="production" X-Launchpad-Hash: d472930a6ba6e0b3534f51ff56a05723d10ab37c Received-SPF: pass client-ip=185.125.188.251; envelope-from=noreply@launchpad.net; helo=smtp-relay-services-1.canonical.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1905521 <1905521@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is an automated cleanup. This bug report has been moved to QEMU's new bug tracker on gitlab.com and thus gets marked as 'expired' now. Please continue with the discussion here: https://gitlab.com/qemu-project/qemu/-/issues/552 ** Changed in: qemu Status: Incomplete =3D> Expired ** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #552 https://gitlab.com/qemu-project/qemu/-/issues/552 --=20 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1905521 Title: assert issue locates in hw/scsi/lsi53c895a.c:624: lsi_do_dma: Assertion `s->current' failed Status in QEMU: Expired Bug description: Hello, I found an assertion failure in hw/scsi/lsi53c895a.c:624 This was found in latest version 5.2.0. =20 my reproduced environment is as follows: Host: ubuntu 18.04 Guest: ubuntu 18.04 QEMU boot command line: qemu-system-x86_64 -enable-kvm -boot c -m 4G -drive format=3Dqcow2,file= =3D./ubuntu.img -nic user,hostfwd=3Dtcp:0.0.0.0:5555-:22 -display none -dev= ice lsi53c895a -trace lsi\* Backtrace is as follows: #0 0x00007f845c6eff47 in __GI_raise (sig=3Dsig@entry=3D6) at ../sysdeps/= unix/sysv/linux/raise.c:51 #1 0x00007f845c6f18b1 in __GI_abort () at abort.c:79 #2 0x00007f845c6e142a in __assert_fail_base (fmt=3D0x7f845c868a38 "%s%s%= s:%u: %s%sAssertion `%s' failed.\n%n", assertion=3Dassertion@entry=3D0x55a1= 034486a0 "s->current", file=3Dfile@entry=3D0x55a103448360 "../hw/scsi/lsi53= c895a.c", line=3Dline@entry=3D624, function=3Dfunction@entry=3D0x55a10344ae= 60 <__PRETTY_FUNCTION__.31674> "lsi_do_dma") at assert.c:92 #3 0x00007f845c6e14a2 in __GI___assert_fail (assertion=3D0x55a1034486a0 = "s->current", file=3D0x55a103448360 "../hw/scsi/lsi53c895a.c", line=3D624, = function=3D0x55a10344ae60 <__PRETTY_FUNCTION__.31674> "lsi_do_dma") at asse= rt.c:101 #4 0x000055a102049c65 in lsi_do_dma (s=3D0x62600000c100, out=3D1) at ../= hw/scsi/lsi53c895a.c:624 #5 0x000055a102051573 in lsi_execute_script (s=3D0x62600000c100) at ../h= w/scsi/lsi53c895a.c:1250 #6 0x000055a10205b05d in lsi_reg_writeb (s=3D0x62600000c100, offset=3D47= , val=3D178 '\262') at ../hw/scsi/lsi53c895a.c:1984 #7 0x000055a10205fef8 in lsi_io_write (opaque=3D0x62600000c100, addr=3D4= 7, val=3D178, size=3D1) at ../hw/scsi/lsi53c895a.c:2146 #8 0x000055a102d1b791 in memory_region_write_accessor (mr=3D0x62600000cb= e0, addr=3D47, value=3D0x7f8349dfe2f8, size=3D1, shift=3D0, mask=3D255, att= rs=3D...) at ../softmmu/memory.c:484 #9 0x000055a102d1bba8 in access_with_adjusted_size (addr=3D47, value=3D0= x7f8349dfe2f8, size=3D1, access_size_min=3D1, access_size_max=3D1, access_f= n=3D0x55a102d1b4de , mr=3D0x62600000cbe0, att= rs=3D...) at ../softmmu/memory.c:545 #10 0x000055a102d261ef in memory_region_dispatch_write (mr=3D0x62600000cb= e0, addr=3D47, data=3D178, op=3DMO_8, attrs=3D...) at ../softmmu/memory.c:1= 494 #11 0x000055a102b57c3c in flatview_write_continue (fv=3D0x6060000ea920, a= ddr=3D49199, attrs=3D..., ptr=3D0x7f8449efb000, len=3D1, addr1=3D47, l=3D1,= mr=3D0x62600000cbe0) at ../softmmu/physmem.c:2767 #12 0x000055a102b57f07 in flatview_write (fv=3D0x6060000ea920, addr=3D491= 99, attrs=3D..., buf=3D0x7f8449efb000, len=3D1) at ../softmmu/physmem.c:2807 #13 0x000055a102b587cb in address_space_write (as=3D0x55a105ebca80 , addr=3D49199, attrs=3D..., buf=3D0x7f8449efb000, len=3D1) at = ../softmmu/physmem.c:2899 #14 0x000055a102b58878 in address_space_rw (as=3D0x55a105ebca80 , addr=3D49199, attrs=3D..., buf=3D0x7f8449efb000, len=3D1, is_wri= te=3Dtrue) at ../softmmu/physmem.c:2909 #15 0x000055a102ad4d50 in kvm_handle_io (port=3D49199, attrs=3D..., data= =3D0x7f8449efb000, direction=3D1, size=3D1, count=3D1) at ../accel/kvm/kvm-= all.c:2283 #16 0x000055a102ad6a0f in kvm_cpu_exec (cpu=3D0x62e000000400) at ../accel= /kvm/kvm-all.c:2529 #17 0x000055a102c26fbb in kvm_vcpu_thread_fn (arg=3D0x62e000000400) at ..= /accel/kvm/kvm-cpus.c:49 #18 0x000055a1032c08f8 in qemu_thread_start (args=3D0x603000082780) at ..= /util/qemu-thread-posix.c:521 #19 0x00007f845caa96db in start_thread (arg=3D0x7f8349dff700) at pthread_= create.c:463 #20 0x00007f845c7d2a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/c= lone.S:95 =20 The poc is attached. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1905521/+subscriptions