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 E5042C433DB for ; Fri, 15 Jan 2021 16:17:53 +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 EC82F238EB for ; Fri, 15 Jan 2021 16:17:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC82F238EB 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]:48724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l0RnL-0001VF-M3 for qemu-devel@archiver.kernel.org; Fri, 15 Jan 2021 11:17:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l0RlS-0008Iy-KP for qemu-devel@nongnu.org; Fri, 15 Jan 2021 11:15:54 -0500 Received: from indium.canonical.com ([91.189.90.7]:47676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l0RlO-0005qI-0c for qemu-devel@nongnu.org; Fri, 15 Jan 2021 11:15:54 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1l0RlI-0003O3-Sw for ; Fri, 15 Jan 2021 16:15:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id D96D12E8139 for ; Fri, 15 Jan 2021 16:15:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 15 Jan 2021 16:07:14 -0000 From: Peter Maydell <1911839@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; 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 X-Launchpad-Bug-Reporter: Alexander Bulekov (a1xndr) X-Launchpad-Bug-Modifier: Peter Maydell (pmaydell) References: <161067831357.23424.6214603959170254372.malonedeb@soybean.canonical.com> Message-Id: <161072683510.24216.2221569406300962958.launchpad@soybean.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="511b4a3b6512aa3d421c5f7d74f3527e78bff26e"; Instance="production" X-Launchpad-Hash: 87c29597d0b8f0f338b297e7ac9f85168c1b71dd 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" ** Tags added: fuzzer -- = 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: New 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