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 86F8D42D07; Tue, 20 Jun 2023 13:09:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B7474068E; Tue, 20 Jun 2023 13:09:49 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 363F3400D6 for ; Tue, 20 Jun 2023 13:09:48 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2419842D08; Tue, 20 Jun 2023 13:09:48 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1255] [asan] net/mlx5: memory leak on port cleanup Date: Tue, 20 Jun 2023 11:09:48 +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: multipart/alternative; boundary=16872593880.4E6e50E8.2154049 Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 --16872593880.4E6e50E8.2154049 Date: Tue, 20 Jun 2023 13:09:47 +0200 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1255 Bug ID: 1255 Summary: [asan] net/mlx5: memory leak on port cleanup 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: --- This is something I caught on RHEL 9.2 but it might be generic: # rm -rf build; meson setup build -Denable_drivers=3Dbus/auxiliary,common/mlx5,net/mlx5 -Ddisable_libs=3D* -Denable_apps=3Dtest-pmd -Dbuildtype=3Ddebug -Ddeveloper_mode=3Ddisabled -Db_sanitize=3Daddress -Dtests=3Dfalse -Dexamples=3D ... # ninja -C build ... # lspci | grep Ethernet.*Mellanox 98:00.0 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx] 98:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx] 98:00.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen Virtual Function 98:01.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen Virtual Function # echo quit | ASAN_OPTIONS=3D"use_sigaltstack=3D0" ./build/app/dpdk-testpmd= -a 0000:98:00.0 -- -ia ... =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=3D135295=3D=3DERROR: LeakSanitizer: detected memory leaks Direct leak of 80 byte(s) in 1 object(s) allocated from: #0 0x7f14054b4bd7 in calloc (/lib64/libasan.so.6+0xb4bd7) #1 0x7f1405e5ec6c in dr_action_create_generic ../providers/mlx5/dr_action.c:1009 #2 0x294135e in mlx5_flow_os_create_flow_action_dest_devx_tir ../drivers/net/mlx5/linux/mlx5_flow_os.h:409 #3 0x294b3e7 in mlx5_devx_hrxq_new ../drivers/net/mlx5/mlx5_devx.c:924 #4 0x294cb13 in mlx5_devx_drop_action_create ../drivers/net/mlx5/mlx5_devx.c:1169 #5 0xec0f50 in mlx5_drop_action_create ../drivers/net/mlx5/mlx5_rxq.c:3= 101 #6 0x2c62d99 in mlx5_dev_spawn ../drivers/net/mlx5/linux/mlx5_os.c:1556 #7 0x2c68fb2 in mlx5_os_pci_probe_pf ../drivers/net/mlx5/linux/mlx5_os.c:2348 #8 0x2c6a4b1 in mlx5_os_pci_probe ../drivers/net/mlx5/linux/mlx5_os.c:2= 497 #9 0x2c6b08e in mlx5_os_net_probe ../drivers/net/mlx5/linux/mlx5_os.c:2= 578 #10 0xc6afff in drivers_probe ../drivers/common/mlx5/mlx5_common.c:937 #11 0xc6b6a6 in mlx5_common_dev_probe ../drivers/common/mlx5/mlx5_common.c:1027 #12 0xc8ad0a in mlx5_common_pci_probe ../drivers/common/mlx5/mlx5_common_pci.c:168 #13 0xc1e3fa in rte_pci_probe_one_driver ../drivers/bus/pci/pci_common.c:312 #14 0xc1eadb in pci_probe_all_drivers ../drivers/bus/pci/pci_common.c:3= 96 #15 0xc1eb82 in pci_probe ../drivers/bus/pci/pci_common.c:423 #16 0xb72d22 in rte_bus_probe ../lib/eal/common/eal_common_bus.c:78 #17 0xbe317e in rte_eal_init ../lib/eal/linux/eal.c:1300 #18 0x5e80a0 in main ../app/test-pmd/testpmd.c:4515 #19 0x7f140503feaf in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 SUMMARY: AddressSanitizer: 80 byte(s) leaked in 1 allocation(s). --=20 You are receiving this mail because: You are the assignee for the bug.= --16872593880.4E6e50E8.2154049 Date: Tue, 20 Jun 2023 13:09:48 +0200 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1255
Summary [asan] net/mlx5: memory leak on port cleanup
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 ---

This is something I caught on RHEL=
 9.2 but it might be generic:

# rm -rf build; meson setup build
-Denable_drivers=3Dbus/auxiliary,common/mlx5,net/mlx5 -Ddisable_libs=3D*
-Denable_apps=3Dtest-pmd -Dbuildtype=3Ddebug -Ddeveloper_mode=3Ddisabled
-Db_sanitize=3Daddress -Dtests=3Dfalse -Dexamples=3D
...
# ninja -C build
...
# lspci | grep Ethernet.*Mellanox
98:00.0 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6
Dx]
98:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6
Dx]
98:00.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen
Virtual Function
98:01.2 Ethernet controller: Mellanox Technologies ConnectX Family mlx5Gen
Virtual Function

# echo quit | ASAN_OPTIONS=3D"use_sigaltstack=3D0" ./build/app/dp=
dk-testpmd -a
0000:98:00.0 -- -ia

...

=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=3D135295=3D=3DERROR: LeakSanitizer: detected memory leaks

Direct leak of 80 byte(s) in 1 object(s) allocated from:
    #0 0x7f14054b4bd7 in calloc (/lib64/libasan.so.6+0xb4bd7)
    #1 0x7f1405e5ec6c in dr_action_create_generic
../providers/mlx5/dr_action.c:1009
    #2 0x294135e in mlx5_flow_os_create_flow_action_dest_devx_tir
../drivers/net/mlx5/linux/mlx5_flow_os.h:409
    #3 0x294b3e7 in mlx5_devx_hrxq_new ../drivers/net/mlx5/mlx5_devx.c:924
    #4 0x294cb13 in mlx5_devx_drop_action_create
../drivers/net/mlx5/mlx5_devx.c:1169
    #5 0xec0f50 in mlx5_drop_action_create ../drivers/net/mlx5/mlx5_rxq.c:3=
101
    #6 0x2c62d99 in mlx5_dev_spawn ../drivers/net/mlx5/linux/mlx5_os.c:1556
    #7 0x2c68fb2 in mlx5_os_pci_probe_pf
../drivers/net/mlx5/linux/mlx5_os.c:2348
    #8 0x2c6a4b1 in mlx5_os_pci_probe ../drivers/net/mlx5/linux/mlx5_os.c:2=
497
    #9 0x2c6b08e in mlx5_os_net_probe ../drivers/net/mlx5/linux/mlx5_os.c:2=
578
    #10 0xc6afff in drivers_probe ../drivers/common/mlx5/mlx5_common.c:937
    #11 0xc6b6a6 in mlx5_common_dev_probe
../drivers/common/mlx5/mlx5_common.c:1027
    #12 0xc8ad0a in mlx5_common_pci_probe
../drivers/common/mlx5/mlx5_common_pci.c:168
    #13 0xc1e3fa in rte_pci_probe_one_driver
../drivers/bus/pci/pci_common.c:312
    #14 0xc1eadb in pci_probe_all_drivers ../drivers/bus/pci/pci_common.c:3=
96
    #15 0xc1eb82 in pci_probe ../drivers/bus/pci/pci_common.c:423
    #16 0xb72d22 in rte_bus_probe ../lib/eal/common/eal_common_bus.c:78
    #17 0xbe317e in rte_eal_init ../lib/eal/linux/eal.c:1300
    #18 0x5e80a0 in main ../app/test-pmd/testpmd.c:4515
    #19 0x7f140503feaf in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58

SUMMARY: AddressSanitizer: 80 byte(s) leaked in 1 allocation(s).
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16872593880.4E6e50E8.2154049--