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=-3.8 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 57B63C47094 for ; Thu, 10 Jun 2021 15:22:31 +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 2580F61364 for ; Thu, 10 Jun 2021 15:22:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2580F61364 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]:56918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrMVq-0002me-Cq for qemu-devel@archiver.kernel.org; Thu, 10 Jun 2021 11:22:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrMUb-0000Ea-BE for qemu-devel@nongnu.org; Thu, 10 Jun 2021 11:21:13 -0400 Received: from indium.canonical.com ([91.189.90.7]:44322) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrMUW-0000NQ-Af for qemu-devel@nongnu.org; Thu, 10 Jun 2021 11:21:11 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.93 #5 (Debian)) id 1lrMUT-0000z4-AR for ; Thu, 10 Jun 2021 15:21:05 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4D44F2E8139 for ; Thu, 10 Jun 2021 15:21:05 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Jun 2021 15:08:11 -0000 From: Thomas Huth <1911839@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=Confirmed; 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: <161067831357.23424.6214603959170254372.malonedeb@soybean.canonical.com> Message-Id: <162333769112.6746.10243663396613917954.malone@chaenomeles.canonical.com> Subject: [Bug 1911839] Re: [OSS-Fuzz] Issue 29586 e1000e: Memcpy-param-overlap in flatview_write_continue 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="b45bdbe3a00b6b668fa7f2069bd545c35c41f7f4"; Instance="production" X-Launchpad-Hash: 351386040b01ad1e995375ffca5a76d336b50766 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 1911839 <1911839@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is still reproducible with the current git version (commit 7fe7fae8b48e3f9c647fd685e5155ebc8e6fb84d) and clang with ASAN enabled. ** Changed in: qemu Status: New =3D> Confirmed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1911839 Title: [OSS-Fuzz] Issue 29586 e1000e: Memcpy-param-overlap in flatview_write_continue Status in QEMU: Confirmed Bug description: =3D=3D=3D Reproducer =3D=3D=3D cat << EOF | ./qemu-system-i386 -M q35 -accel qtest \ -qtest stdio -nographic -nodefaults -device \ e1000e,netdev=3Dnet0 -netdev user,id=3Dnet0 = outl 0xcf8 0x80000811 outl 0xcfc 0x5ac600 outl 0xcf8 0x80000801 outl 0xcfc 0x26000000 write 0x5ac60100 0x4 0x56000302 write 0x5ac6011a 0x2 0x1006 write 0x5ac60120 0x1 0x25 write 0x5ac6042a 0x2 0x4048 write 0x5ac60431 0x1 0x04 write 0x4240 0x1 0xff write 0x4241 0x1 0x01 write 0x4249 0x1 0xf5 write 0x1ff 0x1 0x11 write 0x5ac60401 0x1 0x12 write 0x5ac6043a 0x2 0x3000 write 0x5ac60112 0x2 0xf090 write 0x5ac60430 0x1 0x0 write 0x239 0x1 0xff write 0x2bb 0x1 0x41 write 0x9531 0x1 0xff write 0x9532 0x1 0xff write 0x9533 0x1 0xff write 0x9534 0x1 0xff write 0x9535 0x1 0xff write 0x9536 0x1 0xff write 0x9537 0x1 0xff write 0x5ac60403 0x1 0x12 EOF =3D=3D=3D Stack Trace =3D=3D=3D =3D=3D1364=3D=3DERROR: AddressSanitizer: memcpy-param-overlap: memory ran= ges [0x7f90b7e00025,0x7f90b7e00604) and [0x7f90b7e00225, 0x7f90b7e00804) ov= erlap #0 __asan_memcpy /src/llvm-project/compiler-rt/lib/asan/asan_interceptors= _memintrinsics.cpp:22:3 #1 flatview_write_continue /src/qemu/softmmu/physmem.c:2764:13 #2 flatview_write /src/qemu/softmmu/physmem.c:2799:14 #3 address_space_write /src/qemu/softmmu/physmem.c:2891:18 #4 address_space_rw /src/qemu/softmmu/physmem.c:2901:16 #5 dma_memory_rw_relaxed /src/qemu/include/sysemu/dma.h:88:12 #6 dma_memory_rw /src/qemu/include/sysemu/dma.h:127:12 #7 pci_dma_rw /src/qemu/include/hw/pci/pci.h:801:12 #8 pci_dma_write /src/qemu/include/hw/pci/pci.h:837:12 #9 e1000e_write_to_rx_buffers /src/qemu/hw/net/e1000e_core.c:1405:9 #10 e1000e_write_packet_to_guest /src/qemu/hw/net/e1000e_core.c:1575:21 #11 e1000e_receive_iov /src/qemu/hw/net/e1000e_core.c:1702:9 #12 e1000e_nc_receive_iov /src/qemu/hw/net/e1000e.c:214:12 #13 net_tx_pkt_sendv /src/qemu/hw/net/net_tx_pkt.c:556:9 #14 net_tx_pkt_send /src/qemu/hw/net/net_tx_pkt.c:633:9 #15 net_tx_pkt_send_loopback /src/qemu/hw/net/net_tx_pkt.c:646:11 #16 e1000e_tx_pkt_send /src/qemu/hw/net/e1000e_core.c:657:16 #17 e1000e_process_tx_desc /src/qemu/hw/net/e1000e_core.c:736:17 #18 e1000e_start_xmit /src/qemu/hw/net/e1000e_core.c:927:9 #19 e1000e_set_tctl /src/qemu/hw/net/e1000e_core.c:2424:9 #20 e1000e_core_write /src/qemu/hw/net/e1000e_core.c:3256:9 #21 e1000e_mmio_write /src/qemu/hw/net/e1000e.c:110:5 #22 memory_region_write_accessor /src/qemu/softmmu/memory.c:491:5 #23 access_with_adjusted_size /src/qemu/softmmu/memory.c:552:18 #24 memory_region_dispatch_write /src/qemu/softmmu/memory.c:0:13 #25 flatview_write_continue /src/qemu/softmmu/physmem.c:2759:23 #26 flatview_write /src/qemu/softmmu/physmem.c:2799:14 #27 address_space_write /src/qemu/softmmu/physmem.c:2891:18 #28 __wrap_qtest_writeq /src/qemu/tests/qtest/fuzz/qtest_wrappers.c:187:9 #29 op_write /src/qemu/tests/qtest/fuzz/generic_fuzz.c:479:13 #30 generic_fuzz /src/qemu/tests/qtest/fuzz/generic_fuzz.c:681:17 OSS-Fuzz Report: https://bugs.chromium.org/p/oss- fuzz/issues/detail?id=3D29586 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1911839/+subscriptions