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 B3B3BA2EFC for ; Tue, 15 Oct 2019 13:01:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7D8681EBBA; Tue, 15 Oct 2019 13:01:03 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10042.outbound.protection.outlook.com [40.107.1.42]) by dpdk.org (Postfix) with ESMTP id AFF741EB9B; Tue, 15 Oct 2019 13:00:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dATg3+9QLQnnhO/H/WWoAXLCNjDfdVvrXKEmJCBkcDAzO0dgM0sfVsKhXIo3i8SxQnCh3VOB85Ced4ygLJlfdLAglqlT6HAeyjP1+lpN7AnnDjhNcrwtKIYQuYa1tVfX+b5xFjA0Psr0VmT6m3QJbkb19IvnoQxoDo2Tp6qNKZPlszCAC96UFGrPYI1pz3/Z8zlrNdvTkUWQFULtR75xokiTPacmgEyt3HAsJtTZUU3gkPAbYcygXUEkiGcdnHdbwU9p6R6mU0oR/qaZghKppqVImmJhF5QaD2NVqP7rEgfRQexoBs8pQCIlvFZD3/7FPxeTaYwGLlm/g+3YWvYUzQ== 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=xfXsheRC/BnN+Mc/IW2zPChYaCFi9dzzVuRu2SDb7gE=; b=EC+w/beoZnE6WKcXjhWoU56e7ln7ges+H+s5/8eSBawiNTfzaOBiKbyZpRlOGdTDfOfFeKFTxsmZbKzG6P/8G+FooqSGJqVC7WHwTLNwDE0S1h0bVCFxXRBHhaI8jEd2V7KSyqasLTp58dD+3+euEiCHinpTN7y/puRxLwlhdJXneczB66nBkb11EFtSr8J0RjNdLiXsE9mEAJOxUVoZQo1bWFGraDVajhpNlfJjSBoGCagqrMdFYaPH8TFeh4E9lbreL9IcHk5DZ/PgaTgHp9dTPjPLdcbdvUsrLPEQ9+Y1ByekXimDeQdjCiVDo2+4Mwo8b7CRrY3sjvL9it2mDw== 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=xfXsheRC/BnN+Mc/IW2zPChYaCFi9dzzVuRu2SDb7gE=; b=q/rUpQ+EFf9D3o4eeu/WKLLMkOEMcKkrl5NrwSfdogDB5G3MBK+dxDbT5hoNgVHYCswHkcfPOhR7kLthpneaIYwiQbXW2++mAfeWKhajpuOrmp5q2HXNQE8Hud6j54NntcVuBD31x6D/VvHvvsXhZMQ24JS544ug/x2SPHZCKj8= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1SPR01MB0014.eurprd04.prod.outlook.com (20.179.31.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Tue, 15 Oct 2019 11:00:58 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee%5]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 11:00:58 +0000 From: Akhil Goyal To: "asomalap@amd.com" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH v1 3/6] crypto/ccp: crash when using ccp cpu authentication is used Thread-Index: AQHVgyZjqDIZFySiFUO55qa6IdDkV6dbiM7g Date: Tue, 15 Oct 2019 11:00:58 +0000 Message-ID: References: <20191015070112.92937-1-asomalap@amd.com> In-Reply-To: <20191015070112.92937-1-asomalap@amd.com> 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.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ce25a955-07b4-4532-4059-08d7515ef5ce x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1SPR01MB0014: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:597; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(189003)(199004)(71200400001)(25786009)(478600001)(316002)(4326008)(71190400001)(486006)(5660300002)(229853002)(66066001)(6436002)(52536014)(55016002)(11346002)(6246003)(476003)(446003)(4744005)(9686003)(44832011)(110136005)(99286004)(76176011)(7696005)(186003)(6506007)(33656002)(8936002)(102836004)(66946007)(76116006)(81166006)(81156014)(26005)(64756008)(66446008)(66476007)(66556008)(8676002)(305945005)(6116002)(7736002)(3846002)(74316002)(2906002)(14454004)(2501003)(86362001)(14444005)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1SPR01MB0014; 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: BiqsUKIK3gNVyjFzveVeBrzpdqF0vdOB7Gf9kPjtW3iFjby22GViUzbQ4H0VtzHGfrRCMVuW6q5Zv6cKIIPTRF7JItChpqLmKaLQUWdC0kGuJ+v+hdI3Shtb7s6wLLP52bS1YihKDnLQc5rUvpGZtLWo0++y5T3OBTIH5rCPSK7/vtFbiVgQBvyvdnejtVl1eQCqesVZ8OmRZYD9r2YFv82P98d0e/rlUbBMIyIaaAZuXhFRZxeshoEdXYfpdt2wNFRI6vsqor2i3CMf95Y+6bzLx+lP2nyZGFddYBxvwwchFBwdXvcsnR2sIaVDg78U/hTJ3qCKcEcP5NBZTXaykuVJWWqc6zbgZQaSLwasl3jdYyNJ7ME5a8xM99eU8LfFCMpSATFChWsksQ1j+DAh9CN/jY7s2s1jTzAaoHS3igQ= 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: ce25a955-07b4-4532-4059-08d7515ef5ce X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 11:00:58.7735 (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: rUjU8k2AZP1x73koy1l2IBT1li5k1h9Vh+477D39mgN3Wyhw9W9fvl6JeWCSSyi+ywFj4VsSk4qHb4XBgGBOZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1SPR01MB0014 Subject: Re: [dpdk-stable] [PATCH v1 3/6] crypto/ccp: crash when using ccp cpu authentication is used X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Title: crypto/ccp: fix CPU authentication crash >=20 > From: Amaranath Somalapuram >=20 > when ccp_auth_opt=3D1 is set and > if authentication error occurred ccp driver crash. > proble is enqueue count and dequeue count miss match if we continue. Please rephrase this description. Fixes line?? > Cc: stable@dpdk.org >=20 > Signed-off-by: Amaranath Somalapuram > --- > drivers/crypto/ccp/ccp_crypto.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/crypto/ccp/ccp_crypto.c b/drivers/crypto/ccp/ccp_cry= pto.c > index 19ae9153d..1837c8543 100644 > --- a/drivers/crypto/ccp/ccp_crypto.c > +++ b/drivers/crypto/ccp/ccp_crypto.c > @@ -2738,7 +2738,7 @@ process_ops_to_enqueue(struct ccp_qp *qp, > session, auth_ctx); > if (op[i]->status !=3D > RTE_CRYPTO_OP_STATUS_SUCCESS) > - continue; > + > CCP_LOG_ERR("RTE_CRYPTO_OP_STATUS_AUTH_FAILED"); > } else > result =3D ccp_crypto_auth(op[i], cmd_q, b_info); >=20 > -- > 2.17.1