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, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 33D69C47080 for ; Mon, 31 May 2021 18:52:13 +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 9B40061042 for ; Mon, 31 May 2021 18:52:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B40061042 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]:40920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnn1H-0006CO-HB for qemu-devel@archiver.kernel.org; Mon, 31 May 2021 14:52:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnmzy-0005Sy-3D for qemu-devel@nongnu.org; Mon, 31 May 2021 14:50:50 -0400 Received: from indium.canonical.com ([91.189.90.7]:52964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnmzv-0000SF-Qa for qemu-devel@nongnu.org; Mon, 31 May 2021 14:50:49 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.93 #5 (Debian)) id 1lnmzt-0008Ay-6T for ; Mon, 31 May 2021 18:50:45 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2F27F2E8186 for ; Mon, 31 May 2021 18:50:45 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 31 May 2021 18:42:05 -0000 From: Thomas Huth <1905444@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Fix Committed; importance=Undecided; assignee=None; X-Launchpad-Bug-Tags: fuzzer X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: a1xndr th-huth X-Launchpad-Bug-Reporter: Alexander Bulekov (a1xndr) X-Launchpad-Bug-Modifier: Thomas Huth (th-huth) References: <20201124171810.akchle2mwg6xdlol@mozz.bu.edu> Message-Id: <162248652603.3800.6939333695582826768.malone@soybean.canonical.com> Subject: [Bug 1905444] Re: [OSS-Fuzz] Issue 27796 in oss-fuzz: qemu:qemu-fuzz-i386-target-generic-fuzz-xhci: Stack-overflow in address_space_stl_internal 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="925b661396f90467a0d31fdfb13d4990b7239925"; Instance="production" X-Launchpad-Hash: 13bcf7641782bc5c617e3300efb171c3cd507471 Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -65 X-Spam_score: -6.6 X-Spam_bar: ------ X-Spam_report: (-6.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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 1905444 <1905444@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" As mentioned by Alexander here: https://lists.gnu.org/archive/html/qemu-devel/2021-05/msg08637.html this has likely been fixed by this commit here: https://gitlab.com/qemu-project/qemu/-/commit/3c6151cd11ae7e4a7dae10f8c17ab= 1fe2f0a73bf ... thus I'm marking this as fixed now. If it occurs again, please open a n= ew ticket in the Gitlab bug tracker. Thanks! ** Changed in: qemu Status: New =3D> Fix Committed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1905444 Title: [OSS-Fuzz] Issue 27796 in oss-fuzz: qemu:qemu-fuzz-i386-target- generic-fuzz-xhci: Stack-overflow in address_space_stl_internal Status in QEMU: Fix Committed Bug description: affects qemu OSS-Fuzz Report: https://bugs.chromium.org/p/oss- fuzz/issues/detail?id=3D27796 =3D=3D=3D Reproducer (build with --enable-sanitizers) =3D=3D=3D cat << EOF | ./qemu-system-i386 -display none -machine accel=3Dqtest, \ -m 512M -machine q35 -nodefaults \ -drive file=3Dnull-co://,if=3Dnone,format=3Draw,id=3Ddisk0 \ -device qemu-xhci,id=3Dxhci -device usb-tablet,bus=3Dxhci.0 \ -qtest-log none -qtest stdio outl 0xcf8 0x80000803 outw 0xcfc 0x5e46 outl 0xcf8 0x80000810 outl 0xcfc 0xff5a5e46 write 0xff5a5020 0x6 0xffffffff0b70 outl 0xcf8 0x80000893 outb 0xcfc 0x93 writel 0xff5a7000 0xff5a5020 write 0xff5a700c 0x4 0x0c0c2e58 write 0xff5a4040 0x4 0x00d26001 write 0xff5a4044 0x4 0x0000030 EOF =3D=3D=3D Stack Trace =3D=3D=3D =3D=3D50473=3D=3DERROR: AddressSanitizer: stack-overflow on address 0x7ff= e3ec97e28 (pc 0x55e292eac159 bp 0x7ffe3ec98670 sp 0x7ffe3ec97e30 T0) #0 0x55e292eac159 in __asan_memcpy (u-system-i386+0x2a0e159) #1 0x55e2944bc04e in flatview_do_translate softmmu/physmem.c:513:12 #2 0x55e2944dbe90 in flatview_translate softmmu/physmem.c:563:15 #3 0x55e2944dbe90 in address_space_translate include/exec/memory.h:2362:12 #4 0x55e2944dbe90 in address_space_stl_internal memory_ldst.c.inc:316:10 #5 0x55e29393d2a0 in xhci_intr_update hw/usb/hcd-xhci.c:554:13 #6 0x55e29393efb9 in xhci_runtime_write hw/usb/hcd-xhci.c:3032:9 #7 0x55e294230428 in memory_region_write_accessor softmmu/memory.c:484:5 #8 0x55e29422fe63 in access_with_adjusted_size softmmu/memory.c:545:18 #9 0x55e29422f6fc in memory_region_dispatch_write softmmu/memory.c #10 0x55e2944dc03c in address_space_stl_internal memory_ldst.c.inc:319:13 #11 0x55e29393d2a0 in xhci_intr_update hw/usb/hcd-xhci.c:554:13 #12 0x55e29393efb9 in xhci_runtime_write hw/usb/hcd-xhci.c:3032:9 #13 0x55e294230428 in memory_region_write_accessor softmmu/memory.c:484:5 #14 0x55e29422fe63 in access_with_adjusted_size softmmu/memory.c:545:18 #15 0x55e29422f6fc in memory_region_dispatch_write softmmu/memory.c #16 0x55e2944dc03c in address_space_stl_internal memory_ldst.c.inc:319:13 #17 0x55e29393d2a0 in xhci_intr_update hw/usb/hcd-xhci.c:554:13 #18 0x55e29393efb9 in xhci_runtime_write hw/usb/hcd-xhci.c:3032:9 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1905444/+subscriptions