From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0117.outbound.protection.outlook.com [157.56.112.117]) by dpdk.org (Postfix) with ESMTP id 64F4A68FC for ; Thu, 19 May 2016 18:20:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=radcom365.onmicrosoft.com; s=selector1-radcom-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZHRyuZBNE3THr2HhknJ4GR7eJ3f+1Z1Z0RTkq41NWm4=; b=M5n9PZu4680E1X5xUHb/3Zg53UpzPIE66inIVOx/zh7JyeZTVrOYD7TLlKxpICow5CMSVv+ugn3vNm2sC7nFf5q72Mc3eli6f0w36YDh+f7ruwS8ErmZ8+/q/gWYM4v1bUwhZUneCdN+Uez+0TmA3BbDSbJZspbRlhbL8PMGr7g= Received: from DB3PR05MB491.eurprd05.prod.outlook.com (10.242.132.22) by DB3PR05MB492.eurprd05.prod.outlook.com (10.242.132.28) with Microsoft SMTP Server (TLS) id 15.1.492.11; Thu, 19 May 2016 16:20:40 +0000 Received: from DB3PR05MB491.eurprd05.prod.outlook.com ([10.242.132.22]) by DB3PR05MB491.eurprd05.prod.outlook.com ([10.242.132.22]) with mapi id 15.01.0492.020; Thu, 19 May 2016 16:20:40 +0000 From: Yoni Gilad To: "dev@dpdk.org" Thread-Topic: virtio: crash when using multiple processes (16.04 regression) Thread-Index: AdGx5RWqcoQVeLktT7iCLox9jJ+1OQ== Date: Thu, 19 May 2016 16:20:40 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=radcom.com; x-originating-ip: [80.74.109.2] x-ms-office365-filtering-correlation-id: c9deed26-a1df-4797-0bf1-08d3800184fd x-microsoft-exchange-diagnostics: 1; DB3PR05MB492; 5:fXGQUGvntO13ZNSda25NrJml9eRxIXfoIlbFu9ui9UO5HTCrm4dlJmAeowtdQaxkyV4Bb6mpB+R3LyCBLqKcRiuc7adsLmiqHkDX38+PRWeepyNhsx4tafpeY9q+YZbgYDDLtGm6GgaBMAvuSfxiIg==; 24:fT/KSvCdxT8BJ3nYf5enwYFk9EOkompcMdu9NyM4ralatTSITdK5PNiSJuQbvofA9eV0J1HAFkniiaPyUAeMB4u0h8NNzMnWiZlXimU/SgI=; 7:mu0fmyfM3rvsMsfmInqt30o2L0HhL3PVUDjVy54+AT+aM37DgXHs1pmaIMDdV16meG3rH7o5RSusy6pBptOhkTbb8+YHGOE59ww3XNoa+eR/AiNySMfCpMoQdTkQ34mJPGC9eIaMalQG2TJbtyt+i7t+JUtIV3L0ABKU+fY9a8C6bn3FbS6sX2DyTvIKst5Q x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB492; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:DB3PR05MB492; BCL:0; PCL:0; RULEID:; SRVR:DB3PR05MB492; x-forefront-prvs: 094700CA91 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(5002640100001)(16236675004)(2501003)(50986999)(5003600100002)(66066001)(110136002)(9326002)(9686002)(1220700001)(54356999)(19625215002)(2900100001)(77096005)(586003)(450100001)(80792005)(15975445007)(8676002)(3660700001)(86362001)(87936001)(3280700002)(19580395003)(5008740100001)(2351001)(5630700001)(3846002)(33656002)(19300405004)(6116002)(8936002)(76576001)(790700001)(189998001)(122556002)(10400500002)(2906002)(102836003)(92566002)(74316001)(81166006)(11100500001)(5004730100002)(5640700001)(107886002)(1730700003)(229853001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB3PR05MB492; H:DB3PR05MB491.eurprd05.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: radcom.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2016 16:20:40.2151 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0eb9e2d9-8763-412e-9709-3f539e9e25bc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR05MB492 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] virtio: crash when using multiple processes (16.04 regression) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 16:20:41 -0000 Hi, We have encountered a crash in virtio_xmit_pkts (specifically, in the call = to virtqueue_notify) when running DPDK in a multi-process setup. This is a = regression in DPDK 16.04. The culprit seems to be the field vtpci_ops in the virtio_hw structure. Thi= s field is stored in shared memory, but points to a struct in the primary p= rocess's address space. If the same struct was loaded in a different addres= s in the secondary process, it will lead to a crash or other issues when th= is field is dereferenced there. The referenced virtio_pci_ops struct contai= ns function pointers, which can also be different in the secondary process. Regards, Yoni Gilad