From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5DC34A00BE; Mon, 27 Apr 2020 11:33:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 285821C235; Mon, 27 Apr 2020 11:33:34 +0200 (CEST) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 0321F1C234 for ; Mon, 27 Apr 2020 11:33:32 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id DCC0DA00C5; Mon, 27 Apr 2020 11:33:32 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 27 Apr 2020 09:33:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: Lijian.Zhang@arm.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 463] In Mellanox MLX5 driver, NULL pointer access in mlx5_ipool_malloc() X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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=3D463 Bug ID: 463 Summary: In Mellanox MLX5 driver, NULL pointer access in mlx5_ipool_malloc() Product: DPDK Version: unspecified Hardware: ARM OS: Linux Status: UNCONFIRMED Severity: major Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: Lijian.Zhang@arm.com Target Milestone: --- With the last dpdk master branch code, Mellanox ConnectX-5, Ubuntu-18.04, b= elow code is trying to access NULL pointer. rte_bitmap_scan(trunk->bmp, &iidx, &slab) is calling with trunk->bmp, but i= t's a NULL pointer. (gdb) p pool->free_list $1 =3D 65535 (gdb) n (gdb) (gdb) (gdb) p trunk $2 =3D (struct mlx5_indexed_trunk *) 0x17ff01d80 (gdb) p *trunk $3 =3D {idx =3D 0, prev =3D 65535, next =3D 65535, free =3D 4096, bmp =3D 0= x0, data =3D 0x17ff01dc0 ""} (gdb) p trunk->bmp $4 =3D (struct rte_bitmap *) 0x0 (gdb) Below is the system information of my server. login@vpp-tx2-01:~$ cat /etc/os-release NAME=3D"Ubuntu" VERSION=3D"18.04.4 LTS (Bionic Beaver)" ID=3Dubuntu ID_LIKE=3Ddebian PRETTY_NAME=3D"Ubuntu 18.04.4 LTS" VERSION_ID=3D"18.04" HOME_URL=3D"https://www.ubuntu.com/" SUPPORT_URL=3D"https://help.ubuntu.com/" BUG_REPORT_URL=3D"https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL=3D"https://www.ubuntu.com/legal/terms-and-policies/priva= cy-policy" VERSION_CODENAME=3Dbionic UBUNTU_CODENAME=3Dbionic login@vpp-tx2-01:~$ lscpu Architecture: aarch64 Byte Order: Little Endian CPU(s): 256 On-line CPU(s) list: 0-255 Thread(s) per core: 4 Core(s) per socket: 32 Socket(s): 2 NUMA node(s): 2 Vendor ID: Cavium Model: 2 Model name: ThunderX2 99xx Stepping: 0x1 CPU max MHz: 2500.0000 CPU min MHz: 1000.0000 BogoMIPS: 400.00 L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 32768K NUMA node0 CPU(s): 0-127 NUMA node1 CPU(s): 128-255 Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpu= id asimdrdm login@vpp-tx2-01:~$ sudo lshw -c network -businfo [sudo] password for login: Bus info Device Class Description =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 pci@0000:05:00.0 enp5s0f0 network Ethernet Controller XL710 for 40GbE QSFP+ pci@0000:05:00.1 enp5s0f1 network Ethernet Controller XL710 for 40GbE QSFP+ pci@0000:08:00.0 enp8s0f0 network I350 Gigabit Network Connection pci@0000:08:00.1 enp8s0f1 network I350 Gigabit Network Connection pci@0000:0b:00.0 enp11s0f0 network MT27800 Family [ConnectX-5] pci@0000:0b:00.1 enp11s0f1 network MT27800 Family [ConnectX-5] pci@0000:0e:00.0 eno1 network FastLinQ QL41000 Series 10/25/40/5= 0GbE Controller pci@0000:0e:00.1 eno2 network FastLinQ QL41000 Series 10/25/40/5= 0GbE Controller pci@0000:91:00.0 enp145s0f0 network Ethernet Controller XL710 for 40GbE QSFP+ pci@0000:91:00.1 enp145s0f1 network Ethernet Controller XL710 for 40GbE QSFP+ pci@0000:9a:00.0 enp154s0f0 network MT27800 Family [ConnectX-5] pci@0000:9a:00.1 enp154s0f1 network MT27800 Family [ConnectX-5] login@vpp-tx2-01:~$ ofed_info -s MLNX_OFED_LINUX-5.0-2.1.8.0: --=20 You are receiving this mail because: You are the assignee for the bug.=