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 6653D48AFA; Thu, 13 Nov 2025 14:44:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3717F402E9; Thu, 13 Nov 2025 14:44:51 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id C64D840151 for ; Thu, 13 Nov 2025 14:44:49 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id AF86148AFB; Thu, 13 Nov 2025 14:44:49 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: =?UTF-8?B?W0RQREsvY29yZSBCdWcgMTgyN10gbmV0L21seDXvvJo=?= Date: Thu, 13 Nov 2025 13:44:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: core X-Bugzilla-Version: 24.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: zhang_zx0130@163.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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 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 http://bugs.dpdk.org/show_bug.cgi?id=3D1827 Bug ID: 1827 Summary: net/mlx5=EF=BC=9A Product: DPDK Version: 24.11 Hardware: All OS: Linux Status: UNCONFIRMED Severity: critical Priority: Normal Component: core Assignee: dev@dpdk.org Reporter: zhang_zx0130@163.com Target Milestone: --- dev_probe and mlx5_dev_interrupt_nl_cb are two threads with race condition: (1)dev_spawn function will free dev->data when handing an error;(thread 2) (2)mlx5_dev_interrupt_nl_cb will access dev->data when handing netlink event;(thread 1) CoreStack: Using debugging using libthread_db [enabled] Core was generated by `/sbin/ldconfig -l 34 --proc-type primary --lova-mode= pa --syslog --log-level 8'. Program terminated with signal SIGSEGV, Segmentation fault. #0 mlx5_link_update_unlocked_gs (link=3D0xfffff25a0b598, dev=3D0x17a6300 ) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:459 459 ../drivers/net/mlx5/linux/mlx5_ethdev_os.c: No such file or directo= ry. (gdb) bt Thread 1 (Thread 0xfffff25a0e040 (LWP 80593)): #0 mlx5_link_update_unlocked_gs (link=3D0xfffff25a0b598, dev=3D0x17a6300 ) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:459 #1 mlx5_link_update (dev=3D0x17a6300 , wait_to_complete=3Dwait_to_complete@entry=3D0) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:490 #2 0x0000000000b3b7c in mlx5_dev_interrupt_nl_cb (hdr=3D, cb_arg=3D) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:702 #3 0x0000000000c4b84 in mlx5_nl_read_events (nlsk_fd=3D64, cb=3Dcb@entry= =3D0x8b3a60 , cb_arg=3Dcb_arg@entry=3D0x5010ac7a9480) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:1959 #4 0x0000000000b419c in mlx5_dev_interrupt_handler_nl (arg=3D0x5010ac7a948= 0) at ../drivers/net/mlx5/linux/mlx5_ethdev_os.c:725 #5 0x0000000000a972d4 in eal_intr_process_interrupts (nfds=3D, events=3D) at ../lib/eal/linux/eal_interrupts.c:1017 #6 eal_intr_handle_interrupts (totalfds=3D, pfd=3D69) at ../lib/eal/linux/eal_interrupts.c:1091 #7 eal_virt_thread_main (arg=3D) at ../lib/eal/unix/eal_interrupts.c:1163 #8 0x0000000000a91fe4 in thread_start_wrapper (arg=3D0xfffff0dac8e8) at ../lib/eal/unix/rte_thread.c:117 #9 0x0000000000f25c6fc4 in start_thread () from /lib/aarch64-linux-gnu/libpthread.so.0 #10 0x0000000000f2ade2e0 in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:89 Thread 2 (Thread 0xfffff25e026f0 (LWP 80589)): #0 0x0000000000f25c71234 in nanosleep () from /lib/aarch64-linux-gnu/libpthread.so.0 #1 0x00000000004cbec4 in mlx5_int_callback_unregister (cb_arg=3D, cb_fn=3D) at ../drivers/common/mlx5/linux/mlx5_common_os.c:1= 106 #2 mlx5_os_interrupt_handler_destroy (intr_handle=3D0x5010669cc00, cb=3D0x= 8b4170 , cb_arg=3Dcb_arg@entry=3D0x5010ac7a9480) at ../drivers/common/mlx5/linux/mlx5_common_os.c:149 #3 0x000000000002a22a in mlx5_os_free_shared_dev_ctx_uninstall (sh=3D0x5010ac7a9480) at ../drivers/net/mlx5/linux/mlx5_os.c:3025 #4 0x0000000000076b6c in mlx5_free_shared_dev_ctx (sh=3D0x5010ac7a9480) at ../drivers/net/mlx5/linux/mlx5_os.c:2073 #5 0x0000000000a604 at drivers dev_spawn (dpdk_dev=3D, spawn=3Dspawn@entry=3D0x5010669c3600, eth_da=3Deth_da@entry=3D0x0, mkvlist=3Dmkvlist@entry=3D0x0) at ../drivers/net/mlx5/linux/mlx5_ethdev.c:1= 837 #6 0x0000000000b0b45c in mlx5_os_pci_probe_pf (cdev=3Dcdev@entry=3D0x5010dfd9d4200, req_eth_da=3Dreq_eth_da@entry=3D0xfff= ff0dac380, owner_id=3Downer_id@entry=3D0x0, identityreq=3D0xfffff0dac480) at ../drivers/net/mlx5/linux/mlx5_os.c:2706 #7 0x0000000000b0b1ac in mlx5_os_pci_probe_one_driver (cdev=3D0x5010dfd9d4= 200, sh=3D0x5010ac7a9480) at ../drivers/net/mlx5/linux/mlx5_os.c:2855 #8 0x0000000000b2110 in mlx5_os_pci_probe (cdev=3D0x5010dfd9d4200, mkvlist=3D0xfffff0dac480) at ../drivers/net/mlx5/linux/mlx5_os.c:2999 #9 0x0000000000b4bd428 in drivers_probe (mkvlist=3D, user_classes=3D, cdev=3D0x5010dfd9d4200) at ../drivers/common/mlx5/linux/mlx5_common.c:938 #10 mlx5_common_dev_probe (eal_dev=3D) at ../drivers/common/mlx5/mlx5_common.c:1028 #11 0x0000000000aeb90 in rte_pci_probe_one_driver (dev=3D0x11421000, drv=3D0xcacd0c0 ) at ../drivers/bus/pci/pci_common.= c:297 #12 pci_probe_all_drivers (dev=3D0x11421000) at ../drivers/bus/pci/pci_common.c:381 #13 pci_plug (dev=3D0x114210a0) at ../drivers/bus/pci/pci_common.c:652 #14 0x0000000000a6d87c in local_dev_probe (devargs=3Ddevargs@entry=3D0x1154= d400 "pci:0000:02:00.1,rq_cqe_comp_en=3D1", new_dev=3D0xfffff0dad5c0, new_dev@entry=3D0xfffff0dad600) at ../lib/eal/common/eal_common_dev.c:230 #15 0x0000000000a6d9dc in rte_eal_hotplug_add_local (busname=3D0xb2d2c8 "pc= i", devname=3Ddevname@entry=3D0xfffff0dad658 "0000:02:00.1", args=3Dargs@entry= =3D0x0) at ../lib/eal/common/eal_common_dev.c:179 #16 0x0000000000f231c40cc in sf_eal_hotplug_add_local (port_id=3D0xfffff0da= d68e, devargs=3D) at /root/rpmbuild/BUILD/sdn/platform/src/include/dataplane/primary/eal.h:77 #17 attach_port (port_id=3D, devargs=3D, local=3D) at port.c:61 #18 0x0000000000f231c6020 in cmd_handler (cmd=3D0xfffff0dadae8, cmd_rep=3Dcmd_rep@entry=3D0xfffff0dad808) at msg.c:369 #19 0x0000000000f231c31f0 in command_handler (reply=3D0xfffff0dad7d8, req=3D0xfffff0dadab8) at backend.c:110 #20 0x0000000000f231c1040, req=3D0xfffff0dad7d8, rep=3D0xfffff0dad7d8) at backend.c:162 #21 0x0000000000f231c13f8 in process_msg (ep=3D0xfffff0x1140a140, req=3Dreq@entry=3D0xfffff0dadab8, sa=3Dsa@entry=3D0xfffff0dad48) at xipc.c:= 206 #22 0x0000000000f231c1728 in xipc_loop (handle=3D0x1140a140) at xipc.c:273 #23 0x0000000000f231c4244 in run_main_loop () at main.c:408 #24 main (argc=3D5, argv=3D) at main.c:505 (gdb) like: https://patches.dpdk.org/project/dpdk/patch/20250829053532.445865-1-rongwei= l@nvidia.com/ --=20 You are receiving this mail because: You are the assignee for the bug.=