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 6A5C0A0542; Thu, 13 Feb 2020 10:31:21 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4DA1E2BE9; Thu, 13 Feb 2020 10:31:21 +0100 (CET) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80080.outbound.protection.outlook.com [40.107.8.80]) by dpdk.org (Postfix) with ESMTP id D23B21B53 for ; Thu, 13 Feb 2020 10:31:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EhtDimYwzVSDO1SRvqDxzVcidGff7lJ2p3EmApHs+zlulynzo7xKwSJaoIK0t2nf9qepCRm3/iPSwfdPXRztukSc/Ai+vdibnHUlDGnTMABKqKd8gZxvTD51JvFSyl7ks99EIY3/9MoeSuoS3c7yZt/Em6w8PqWzTvjvLoyCEhsgt+mhrtcVH+aYmWVvpil/bjeiOEHV35qWJkuYPQneXBDZKQGi8AbEz1DwAdq8Gsmd63MV7n2QxX9KX21cjbMpEvi7xc/MSpGBVcNsZHnWL4oSWcrHuowCNq53q7HYhZNZ1m32KvEUcGqfgLPqPtXQfJenhSipW4GB3iRrZnXrEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b7VswQupCBoKzcurfR+JOlGrLaMw+C6thkfsNznULgY=; b=GE9q7enBcwexepXefBcTadDgT3Qidgaa2GCJIWoPL59KIlnDJdQlddc1jwMRhOvdNhA64m0M4DKsFgAgWpc0cDMT39r2EGXPc1Hdu0CNwvF73Q04bkzDFnUoI+QW2+ddhGFUtqn59EEc8psHc708rPb4YaF3ShAoiBVFw263NVGU5DMe7qVdU/gQ0wiv4QZF+bCosCLHFbTRRJUQz2z8JcD/fKZgf2h43PhtqiEJ37OGtY+kV0mj+su/wMlyscZpyXxtOWJrIXOAiRPrx8VihUE6xgbIlxpDjh/H9JMi2YGpcHAA7+SgSz3zOcZdweMPvADwvAovCnletcYWSAygDQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b7VswQupCBoKzcurfR+JOlGrLaMw+C6thkfsNznULgY=; b=a9gqXqaNnllEkpTmlSPQ/6wu3pofAMVVoNObyDP+3oj6XiaoNmP15blnKcxbWe+oiXC/W5aCZnn5epe4FRwjnOt4oq5MgC2wvaEdHSefhrdfhaluR4k3n7HlVMdPmDDB1fDRx/VAvXj8NNja9arJRr076nc3+LLr2uqXS648zxE= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6349.eurprd04.prod.outlook.com (20.179.235.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.30; Thu, 13 Feb 2020 09:31:19 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::25b0:b1ac:aed0:63e1]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::25b0:b1ac:aed0:63e1%7]) with mapi id 15.20.2729.025; Thu, 13 Feb 2020 09:31:19 +0000 From: Akhil Goyal To: Junxiao Shi , "dev@dpdk.org" Thread-Topic: [PATCH] drivers/crypto: fix set_sym_session_private_data error in sessionless mode Thread-Index: AQHV1VXiDRPpOyfnJEO1reRFYGOK7qgY9e6A Date: Thu, 13 Feb 2020 09:31:19 +0000 Message-ID: References: <202001272108.00RL832Y004622@lectura.cs.arizona.edu> In-Reply-To: <202001272108.00RL832Y004622@lectura.cs.arizona.edu> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.72] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: f09bcc3e-3304-42fd-76d9-08d7b0677b4d x-ms-traffictypediagnostic: VE1PR04MB6349: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 031257FE13 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(136003)(39860400002)(366004)(346002)(396003)(189003)(199004)(478600001)(2906002)(71200400001)(66446008)(66476007)(44832011)(55016002)(64756008)(6506007)(66556008)(33656002)(4744005)(52536014)(81166006)(9686003)(5660300002)(86362001)(26005)(186003)(8936002)(110136005)(66946007)(316002)(76116006)(81156014)(7696005)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6349; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3N/ABZfrRsHHU04xgYVFziM0nfYix7xlLHZpUDEi0TbijKUT3YM5mDQqspxrAXOT01dD+UnPNigQ5TfM/lOiVYm7rzuFhLK9elhOCmN8HzYsZhlI2yG2/EY8xH5a9ls2zx0mrOWt38UiaHFvi0NDzROH2aiLfKnRhg3pW9J+ognPJ6Wx612GqWUZbcOGlvvZc018dJ2dszjI308Tixn5reW7fU0AhbWoVWW1TIfNQmSLFDq5VCMu+hDat9JDV2FEjvidzgXfAEKCzIdzIh3GIn307ltQZPsd9hIYWLuWmr0t6VN2Ben5wnYk1GHuIF0/A3NmjnLUaxNIrodVfwRfrGErYXpifTs9w/ux29rNa4xK4HOLXcYlM6kxChdbI0H93qI2vHtJswpBKpPCkKz+VNmZd16FBMH9A+L2i75hCJu7NkLYUkXdLM31wGhPzE5f x-ms-exchange-antispam-messagedata: /v4IqRoX/fzv4ckRsVT9iBaFwCnoUIYF5uEhA5eCMC2kFNbwJBSyVf5z7vsXz/t34/9dyYp8TYvAlh5e7XrU71swz8T+d1R65QG4znciRdSR9JOuOVS8aTsj4loEPnXfjw4vlA491K089lIS4Kn45g== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f09bcc3e-3304-42fd-76d9-08d7b0677b4d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2020 09:31:19.1139 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5jp22dTtUyZOhJRyoQN1eX8wCVGE3r6iC+c7UE6JtUj6Vzp1n6eBkOXrOAWUUCHiD6ZvDNY39hsQrC7Sk1pgew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6349 Subject: Re: [dpdk-dev] [PATCH] drivers/crypto: fix set_sym_session_private_data error in sessionless mode 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" >=20 > When OpenSSL or AESNI-MB cryptodev is being used in sessionless mode > for symmetric crypto operation (e.g. SHA256 hash), the driver prints > error message: >=20 > CRYPTODEV: set_sym_session_private_data() line 489: > Set private data for driver 0 not allowed >=20 > Then, AESNI-MB driver segfaults in post_process_mb_job(). >=20 > Bugzilla ID: 377 > Fixes: b3bbd9e ("cryptodev: support device independent sessions") > Fixes: c68d7aa ("crypto/aesni_mb: use architecture independent macros") >=20 > Signed-off-by: Junxiao Shi > --- Applied to dpdk-next-crypto Thanks.