From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 58A43A0C4D;
	Tue, 24 Aug 2021 10:58:55 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 0DA4640687;
	Tue, 24 Aug 2021 10:58:55 +0200 (CEST)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
 by mails.dpdk.org (Postfix) with ESMTP id 1E01C40687
 for <dev@dpdk.org>; Tue, 24 Aug 2021 10:58:54 +0200 (CEST)
Received: by inbox.dpdk.org (Postfix, from userid 33)
 id F1ED2A0C56; Tue, 24 Aug 2021 10:58:53 +0200 (CEST)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Date: Tue, 24 Aug 2021 08:58:53 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: vhost/virtio
X-Bugzilla-Version: 19.11
X-Bugzilla-Keywords: 
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linglix.chen@intel.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: <bug-794-3@http.bugs.dpdk.org/>
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 794] [dpdk-19.11.10] loopback_multi_queues: core
 dumped when quit vhost testpmd
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

https://bugs.dpdk.org/show_bug.cgi?id=3D794

            Bug ID: 794
           Summary: [dpdk-19.11.10] loopback_multi_queues: core dumped
                    when quit vhost testpmd
           Product: DPDK
           Version: 19.11
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: vhost/virtio
          Assignee: dev@dpdk.org
          Reporter: linglix.chen@intel.com
  Target Milestone: ---

Environment
DPDK version:=20
19.11.10-rc1:179f2a3a8a56600a66e4e0830bbe993be67f9d7e
Other software versions: N/A
OS: Ubuntu 20.04.2 LTS/Linux 5.11.16-051116-generic
Compiler: gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
Hardware platform: Intel(R) Xeon(R) Platinum 8280M CPU @ 2.70GHz
NIC hardware: FVL-40g
NIC firmware & driver:=20
driver: i40e
version: 5.11.16-051116-generic
firmware-version: 8.30 0x8000a4ae 1.2926.0

Steps to reproduce
1. Launch vhost testpmd
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 31,32 -n 4  --file-prefix=3D=
vhost
--no-pci  --vdev 'net_vhost0,iface=3Dvhost-net,queues=3D1' -- -i --nb-cores=
=3D1
--rxq=3D1 --txq=3D1 --txd=3D1024 --rxd=3D1024

2. Launch virtio-user=20
x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29,30 -n 4  --file-prefix=3D=
virtio
--no-pci  --vdev
'net_virtio_user0,mac=3D00:01:02:03:04:05,path=3D./vhost-net,queues=3D1,pac=
ked_vq=3D0,in_order=3D1,mrg_rxbuf=3D0'
--single-file-segments -- -i --nb-cores=3D1 --rxq=3D1 --txq=3D1 --txd=3D102=
4 --rxd=3D1024

3.quit vhost testpmd
testpmd> quit

Show the output from the previous commands.
Stopping port 0...
Stopping ports...
Done

Shutting down port 0...
Closing ports...
VHOST_CONFIG: free connfd =3D 24 for device 'vhost-net'

Port 0: link state change event
free(): invalid pointer
Aborted (core dumped)

Expected Result:
quit normal

Regression
Is this issue a regression: (Y/N) Y
First bad commit id: commit eb35473b23045d32d4abd4d31ca36483e37953df
Author: Maxime Coquelin <maxime.coquelin@redhat.com>
Date:   Tue Jun 29 18:11:28 2021 +0200

    vhost: fix missing guest pages table NUMA realloc

    [ upstream commit 57589cdfd784e6704ded490d80038584d6ade9df ]

    When the guest allocates virtqueues on a different NUMA node
    than the one the Vhost metadata are allocated, both the Vhost
    device struct and the virtqueues struct are reallocated.

    However, reallocating the guest pages table was missing, which
    likely causes at least one cross-NUMA accesses for every burst
    of packets.

    This patch reallocates this table on the same NUMA node as the
    other metadata.

    Fixes: e246896178e6 ("vhost: get guest/host physical address mappings")

    Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
    Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>

--=20
You are receiving this mail because:
You are the assignee for the bug.=