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=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 1BE8EC433E0 for ; Tue, 28 Jul 2020 20:02:05 +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 E55EC2065C for ; Tue, 28 Jul 2020 20:02:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E55EC2065C 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=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0VnY-0004JH-45 for qemu-devel@archiver.kernel.org; Tue, 28 Jul 2020 16:02:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0VmY-0003rM-0r for qemu-devel@nongnu.org; Tue, 28 Jul 2020 16:01:02 -0400 Received: from indium.canonical.com ([91.189.90.7]:38886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0VmU-00010g-EX for qemu-devel@nongnu.org; Tue, 28 Jul 2020 16:01:01 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1k0VmR-0007H9-8w for ; Tue, 28 Jul 2020 20:00:55 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 261672E80EF for ; Tue, 28 Jul 2020 20:00:55 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Jul 2020 19:54:21 -0000 From: Peter Maydell <1880424@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=In Progress; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: arm X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: philmd pmaydell X-Launchpad-Bug-Reporter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9_=28philmd?= =?utf-8?q?=29?= X-Launchpad-Bug-Modifier: Peter Maydell (pmaydell) References: <159034126455.806.14576501511642959242.malonedeb@chaenomeles.canonical.com> Message-Id: <159596606196.2765.16436217090531833788.malone@gac.canonical.com> Subject: [Bug 1880424] Re: I/O write make imx_epit_reset() crash 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="a24057fea7e4c6a98c0220d5f878da0f3c783699"; Instance="production-secrets-lazr.conf" X-Launchpad-Hash: 2e6207136fcc8370918242e6c4013420c6dd6e46 Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 13:15:38 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -58 X-Spam_score: -5.9 X-Spam_bar: ----- X-Spam_report: (-5.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=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 1880424 <1880424@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Patch on list: https://patchew.org/QEMU/20200727154550.3409-1-peter.maydell@linaro.org/ ** Changed in: qemu Status: New =3D> In Progress -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1880424 Title: I/O write make imx_epit_reset() crash Status in QEMU: In Progress Bug description: libFuzzer found: qemu-fuzz-arm: hw/core/ptimer.c:377: void ptimer_transaction_begin(ptimer= _state *): Assertion `!s->in_transaction' failed. =3D=3D6041=3D=3D ERROR: libFuzzer: deadly signal #8 0x7fcaba320565 in __GI___assert_fail (/lib64/libc.so.6+0x30565) #9 0x563b46f91637 in ptimer_transaction_begin (qemu-fuzz-arm+0x1af163= 7) #10 0x563b476cc4c6 in imx_epit_reset (qemu-fuzz-arm+0x222c4c6) #11 0x563b476cd004 in imx_epit_write (qemu-fuzz-arm+0x222d004) #12 0x563b46582377 in memory_region_write_accessor (qemu-fuzz-arm+0x1= 0e2377) #13 0x563b46581ee3 in access_with_adjusted_size (qemu-fuzz-arm+0x10e1= ee3) #14 0x563b46580a83 in memory_region_dispatch_write (qemu-fuzz-arm+0x1= 0e0a83) #15 0x563b463c5022 in flatview_write_continue (qemu-fuzz-arm+0xf25022) #16 0x563b463b4ea2 in flatview_write (qemu-fuzz-arm+0xf14ea2) #17 0x563b463b49d4 in address_space_write (qemu-fuzz-arm+0xf149d4) Reproducer: qemu-system-arm -M kzm -display none -S -qtest stdio << 'EOF' writel 0x53f94000 0x110000 EOF qemu-system-arm: hw/core/ptimer.c:377: ptimer_transaction_begin: Assertio= n `!s->in_transaction' failed. Aborted (core dumped) (gdb) bt #1 0x00007f4aa4daa895 in abort () at /lib64/libc.so.6 #2 0x00007f4aa4daa769 in _nl_load_domain.cold () at /lib64/libc.so.6 #3 0x00007f4aa4db8566 in annobin_assert.c_end () at /lib64/libc.so.6 #4 0x000055ee85400164 in ptimer_transaction_begin (s=3D0x55ee873bc4c0) a= t hw/core/ptimer.c:377 #5 0x000055ee855c7936 in imx_epit_reset (dev=3D0x55ee871725c0) at hw/tim= er/imx_epit.c:111 #6 0x000055ee855c7d1b in imx_epit_write (opaque=3D0x55ee871725c0, offset= =3D0, value=3D1114112, size=3D4) at hw/timer/imx_epit.c:209 #7 0x000055ee8513db85 in memory_region_write_accessor (mr=3D0x55ee871728= f0, addr=3D0, value=3D0x7fff3012d6f8, size=3D4, shift=3D0, mask=3D429496729= 5, attrs=3D...) at memory.c:483 #8 0x000055ee8513dd96 in access_with_adjusted_size (addr=3D0, value=3D0x= 7fff3012d6f8, size=3D4, access_size_min=3D1, access_size_max=3D4, access_fn= =3D 0x55ee8513daa2 , mr=3D0x55ee871728f0, a= ttrs=3D...) at memory.c:545 #9 0x000055ee85140cbd in memory_region_dispatch_write (mr=3D0x55ee871728= f0, addr=3D0, data=3D1114112, op=3DMO_32, attrs=3D...) at memory.c:1477 #10 0x000055ee850deba5 in flatview_write_continue (fv=3D0x55ee87181bd0, a= ddr=3D1408843776, attrs=3D..., ptr=3D0x7fff3012d900, len=3D4, addr1=3D0, l= =3D4, mr=3D0x55ee871728f0) at exec.c:3147 #11 0x000055ee850decf3 in flatview_write (fv=3D0x55ee87181bd0, addr=3D140= 8843776, attrs=3D..., buf=3D0x7fff3012d900, len=3D4) at exec.c:3190 #12 0x000055ee850df05d in address_space_write (as=3D0x55ee8730a560, addr= =3D1408843776, attrs=3D..., buf=3D0x7fff3012d900, len=3D4) at exec.c:3289 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1880424/+subscriptions