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 95C63A04C1; Fri, 22 Nov 2019 07:49:46 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 65B4F2C28; Fri, 22 Nov 2019 07:49:46 +0100 (CET) Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730049.outbound.protection.outlook.com [40.107.73.49]) by dpdk.org (Postfix) with ESMTP id F31312BF9; Fri, 22 Nov 2019 07:49:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rm0ZgnfazFO8qRjZGowpvgIlLYa6POEwB+ui+NLA+EOGznwynoGqCxTL0GZ05vgd1xeEbRsVn3OpovuEoCnP5I05TmY/4lHbpHfH/e+uSSG2VybmqfuCNWP5d22AaOkdsfJ6MOsyBFL56HexVGXStu8JrIWfVYZOmGfq/aR9mHBfSvthoeNUjsgChdoxqGNUuGTG0CXd11CSNTJHdqCjS6IXtvq+nZLJ+y7J5fFILaifmycEOGcPfWWxCzsFDhaRCKv4IRlOPlTjP10tK/ucgTLB4uAqjoyrJ1EtH/pg6oTRHtxbeLLB1MsfKnBGoLRCWrfp9WgO0/6pq4Zx32bN5A== 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=o0VqOqHHjNelXvQvgV0WOtwXy/0SFjeSnYIzKoAITQY=; b=O6MlxhS2I9Re4PRmkJ5VE91Xj1xIeNOWXSV5CaWWSKC+D4OxvIVAOWAor4v+k4vNvWj465He2KlLY1GjKYE0axtbHqab5ghijJhdvnnDK5+KOwLNK3rXljFXdV+lj14sEeEE/cpVWHzPCs+seGhbw5ktV9TGBEpaPi1zpUVmog3XuknxfE69s1WNotv7AGc4Dw4tp9jpC/wGDhRxLBO0YCzQpzVW/wUY6IHt6W/i8PGWX3RJjODngOXXOvKa5BlSmMnCmjvW9RgndFVIuDZC4H+KvEsTqK/WK71xGexhz2XWyE9otGQkz1XRSI/PD0Fr5E8JgqcpWFan0xL8/2N6wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o0VqOqHHjNelXvQvgV0WOtwXy/0SFjeSnYIzKoAITQY=; b=CfhoaRorWqSke2jayRC/7ZAUERFGtJZP4egI+Cu3Nc0DbLf1jMhaBjLZm3OtglQHC0OpdU/Q6/ZPsQSD3cWvbgmi7ST1XQZ0MZqUjjvcq6SlGFhHuAkBwwzuT7bG81/gNONw0qfGKoGgX+mJUV76wVqkBwKfBv2O9Yr49Txgaws= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Amaranath.Somalapuram@amd.com; Received: from DM5PR1201MB2474.namprd12.prod.outlook.com (10.172.87.136) by DM5PR1201MB2473.namprd12.prod.outlook.com (10.172.87.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17; Fri, 22 Nov 2019 06:49:44 +0000 Received: from DM5PR1201MB2474.namprd12.prod.outlook.com ([fe80::3da8:4a0d:72f9:d41d]) by DM5PR1201MB2474.namprd12.prod.outlook.com ([fe80::3da8:4a0d:72f9:d41d%9]) with mapi id 15.20.2451.031; Fri, 22 Nov 2019 06:49:43 +0000 From: asomalap@amd.com To: dev@dpdk.org Cc: stable@dpdk.org Date: Fri, 22 Nov 2019 12:16:47 +0530 Message-Id: <20191122064647.94171-1-asomalap@amd.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: MAXPR0101CA0062.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:e::24) To DM5PR1201MB2474.namprd12.prod.outlook.com (2603:10b6:3:e3::8) MIME-Version: 1.0 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.157.251] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d6043bbc-e848-4edf-2cca-08d76f1827d7 X-MS-TrafficTypeDiagnostic: DM5PR1201MB2473: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:421; X-Forefront-PRVS: 02296943FF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(376002)(396003)(39860400002)(136003)(366004)(199004)(189003)(16586007)(316002)(305945005)(81156014)(99286004)(8676002)(7736002)(2361001)(2351001)(2906002)(2616005)(6512007)(3846002)(4326008)(81166006)(450100002)(9686003)(36756003)(6436002)(66066001)(478600001)(47776003)(6116002)(14444005)(48376002)(6916009)(66476007)(66946007)(186003)(50466002)(66556008)(6506007)(386003)(51416003)(52116002)(1076003)(14454004)(6486002)(5660300002)(4744005)(8936002)(50226002)(25786009)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB2473; H:DM5PR1201MB2474.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ORkKALbzWLG5aXIKWEiHA6klCAQ9H1xBHVTL/bBfmsCYRVHnTeEXCG4mGxlPPHNwtMlK3ow7nkMT5rfeZaqpNChIIfW1K/PQX+I374PF09gUsGR+fl2ZhZjHtuBVs9Mc+GO/tjovq1gT3AmKreA3s/Jeup15vJAFN/C0L+Exj9V5DWw/ZjbVzpu1VNby4qhGWxmMV3g8FgrCm/fonlh13/d0BXTu92/DADYWXv4jgO1vAHaoVc90juI9M5MCXxv2jd8gOt5dGy8cE4jpIqH8QiaqvFk5qwsIBbpA5ifTI4ylM4yDaGtSZPrh7VxucPHHDcu1ByWk6cS5Bj9lexfnWEJtKwG71uoA39bjnPQDq3Y17JMqXcUs1W+6ccCrMUXTFKG3+X1qbVVOIRk/RzJicI+1BXYpO/HsWS0QfidPIkqt0xu79gUOuj05Hkk/AMif X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6043bbc-e848-4edf-2cca-08d76f1827d7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2019 06:49:43.9133 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: znuW4QD6puI1YpRLyyrf+eoGH9ROBUIyesBzuS4nQE4Q0CcBJkgo3PNDOMOOVxjr9+xdkYIqCsyMiveKiisutA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB2473 Subject: [dpdk-dev] [PATCH v2 3/5] crypto/ccp: fix CCP CPU authentication crash 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" From: Amaranath Somalapuram when ccp_auth_opt=1 is set and if authentication error occurred ccp driver crash. The enqueue referance count nb_ops miss match with dequeue nb_ops on authentication error Fixes: e0d88a394e ("crypto/ccp: support run-time CPU based auth") Cc: stable@dpdk.org Signed-off-by: Amaranath Somalapuram --- drivers/crypto/ccp/ccp_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/ccp_crypto.c b/drivers/crypto/ccp/ccp_crypto.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 != RTE_CRYPTO_OP_STATUS_SUCCESS) - continue; + CCP_LOG_ERR("RTE_CRYPTO_OP_STATUS_AUTH_FAILED"); } else result = ccp_crypto_auth(op[i], cmd_q, b_info); -- 2.17.1