From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DD07FA0547; Fri, 29 Oct 2021 14:15:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF4F04111F; Fri, 29 Oct 2021 14:15:29 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 8E9DC410E1 for ; Fri, 29 Oct 2021 14:15:28 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 7C33AA0C41; Fri, 29 Oct 2021 14:15:28 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 29 Oct 2021 12:15:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.marchand@redhat.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 868] [asan] thash: use after free in thash_autotest X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D868 Bug ID: 868 Summary: [asan] thash: use after free in thash_autotest Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: david.marchand@redhat.com Target Milestone: --- Using series https://patchwork.dpdk.org/project/dpdk/list/?series=3D19821, calling thash_autotest shows: 88/97 DPDK:fast-tests / thash_autotest FAIL 0.87 s (exit status = 1) --- command --- DPDK_TEST=3D'thash_autotest' /home/runner/work/dpdk/dpdk/build/app/test/dpd= k-test --file-prefix=3Dthash_autotest --- stdout --- RTE>>thash_autotest --- stderr --- EAL: Detected CPU lcores: 2 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: WARNING! Base virtual address hint (0x100005000 !=3D 0x7f997d147000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: Multi-process socket /var/run/dpdk/thash_autotest/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available 1048576 kB hugepages reported EAL: VFIO support initialized EAL: WARNING! Base virtual address hint (0x10000b000 !=3D 0x7f996cf3a000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x100011000 !=3D 0x7f996cd9f000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x100a12000 !=3D 0x7f956b200000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x100c17000 !=3D 0x7f996cd3e000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x101618000 !=3D 0x7f916b000000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x10181d000 !=3D 0x7f996cb9f000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x10221e000 !=3D 0x7f8d6ae00000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x102423000 !=3D 0x7f996cb3e000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes EAL: WARNING! Base virtual address hint (0x102e24000 !=3D 0x7f896ac00000) n= ot respected! EAL: This may cause issues with mapping memory into secondary processes APP: HPET is not enabled, using TSC as default timer =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D27442=3D=3DERROR: AddressSanitizer: heap-use-after-free on address 0x= 7f956b268000 at pc 0x00000044eabf bp 0x7fff53190980 sp 0x7fff53190108 READ of size 1 at 0x7f956b268000 thread T0 #0 0x44eabe in printf_common(void*, char const*, __va_list_tag*) (/home/runner/work/dpdk/dpdk/build/app/test/dpdk-test+0x44eabe) #1 0x7f997becc20b in rte_vlog /home/runner/work/dpdk/dpdk/build/../lib/eal/common/eal_common_log.c:503:8 #2 0x7f997becc20b in rte_log /home/runner/work/dpdk/dpdk/build/../lib/eal/common/eal_common_log.c:520:8 #3 0x7f9978f1cdf0 in insert_after /home/runner/work/dpdk/dpdk/build/../lib/hash/rte_thash.c:469:3 #4 0x7f9978f1cdf0 in rte_thash_add_helper /home/runner/work/dpdk/dpdk/build/../lib/hash/rte_thash.c:552:11 #5 0xe3b238 in test_add_invalid_helper /home/runner/work/dpdk/dpdk/build/../app/test/test_thash.c:253:8 #6 0x517294 in unit_test_suite_runner /home/runner/work/dpdk/dpdk/build/../app/test/test.c:345:20 #7 0x4d7600 in cmd_autotest_parsed /home/runner/work/dpdk/dpdk/build/../app/test/commands.c:71:10 #8 0x7f9979bc05c8 in cmdline_parse /home/runner/work/dpdk/dpdk/build/../lib/cmdline/cmdline_parse.c:290:3 #9 0x7f9979bbd467 in cmdline_valid_buffer /home/runner/work/dpdk/dpdk/build/../lib/cmdline/cmdline.c:26:8 #10 0x7f9979bc57aa in rdline_char_in /home/runner/work/dpdk/dpdk/build/../lib/cmdline/cmdline_rdline.c:446:5 #11 0x7f9979bbd82c in cmdline_in /home/runner/work/dpdk/dpdk/build/../lib/cmdline/cmdline.c:148:9 #12 0x516ce1 in main /home/runner/work/dpdk/dpdk/build/../app/test/test.c:214:8 #13 0x7f99730edbf6 in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:310 #14 0x42ff59 in _start (/home/runner/work/dpdk/dpdk/build/app/test/dpdk-test+0x42ff59) Address 0x7f956b268000 is a wild pointer. SUMMARY: AddressSanitizer: heap-use-after-free (/home/runner/work/dpdk/dpdk/build/app/test/dpdk-test+0x44eabe) in printf_common(void*, char const*, __va_list_tag*) Shadow bytes around the buggy address: 0x0ff32d644fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff32d644fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff32d644fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff32d644fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x0ff32d644ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =3D>0x0ff32d645000:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff32d645010: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff32d645020: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff32d645030: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff32d645040: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff32d645050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07=20 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc =3D=3D27442=3D=3DABORTING ------- --=20 You are receiving this mail because: You are the assignee for the bug.=