From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0F31041D8C for ; Mon, 27 Feb 2023 08:02:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C113410FB; Mon, 27 Feb 2023 08:02:53 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2055.outbound.protection.outlook.com [40.107.95.55]) by mails.dpdk.org (Postfix) with ESMTP id 4CBD240ED6 for ; Mon, 27 Feb 2023 08:02:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QjTzgB5pIT3c7PIo+nYqJcZY6fJq0FUlW4b218KXgPw7qr9bPD2i2/HAWnu64P/TBHmV8uxEcCiHs2PRoimxruWOrL9vLAk47smUVt2SyD9E/U5sofl1YBIjGve0qztO/m8nOS0ZG3dDSaxsArc+UkEqQYpKVQpII8F+dLtrld6kTr2XXain/noKnqZD8y2eXZJ9uAwDffhg2b8z4LrrwLXGdExhqoBK+Hu7aj8trWORI7HQdb1d3cm5qaVp7yXaQXp5Ov1M7zcqB4pmloIyeELPZ5oleaUSXx4uMoarqKIa9TfDBXUVULSW2PSr/URObt+fODs+gEO1A8owJ9yK6g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=//FnWWmn3F+5aEIKcW9O5zRhfiaKLHEDiGo2C6V+ay4=; b=Hm4sDNMgg8EFC0mDL4TAGS6A6sI+fpWCgaAOk4NrNC78/DyQ4UZJdGfX6u0RAY2mDshzwa8afGA1201idaSNTtKnYI5yCP5a4W+zA/LA89JtoDhcBUpFp5FwgcM8ivhW0HcsTCraisBRzDqJo/nxvdrWGzbrOE31bjGtvhmd6/FWCJHZ1RjL8MeTr/+3uPVNWEPBSeJIfreXydIM5R17LNhEN3SPymUkWvjBotemmR8aESI/JPKyTCp/uy1MRqiSU/iucyKhzu9x/UQarvuVRTNjHp4Ofzdhq0D+V6ehqnbb2H78e/IGiLCj2tHlfafBcorahmrBwnOdfFdShEil7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=//FnWWmn3F+5aEIKcW9O5zRhfiaKLHEDiGo2C6V+ay4=; b=cQjbO92Z9QgbNWEXiBWLHQxSFJZY0WDrnGmdYjitLftDjGTbf66w387Qh07pKw+sAZxyERrANG1FheX1ZuAqXzFPwBHrQxlHHTw4LCgdmn/l7DCQLqSOeNt1833CiLeDjdV0bvYlmme3tXctAyGBUKVpgyHTtP9BsRQIqDlzI6Ad+EjvW24ilqP5bGwofc2hBNjAkT5uCIcftCINz4AllPo6MDktP2SwvdIO8qbsxqLP+fBMQYmwNxR1Q+/Con8XY/oAVUBKpG4oAemrMXSuFtNb52+zM6zz1FjPDzG0TIHfZKOzgrzwgOiQzTDRyFKuBc4CY1dQ4tqWdB83tVBJgQ== Received: from MN2PR06CA0030.namprd06.prod.outlook.com (2603:10b6:208:23d::35) by BL1PR12MB5972.namprd12.prod.outlook.com (2603:10b6:208:39b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.25; Mon, 27 Feb 2023 07:02:49 +0000 Received: from BL02EPF000108EB.namprd05.prod.outlook.com (2603:10b6:208:23d:cafe::94) by MN2PR06CA0030.outlook.office365.com (2603:10b6:208:23d::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:02:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF000108EB.mail.protection.outlook.com (10.167.241.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:02:49 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:02:36 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:02:33 -0800 From: Xueming Li To: Ganapati Kundapura CC: Abhinandan Gujjar , dpdk stable Subject: patch 'eventdev/crypto: fix offset used while flushing events' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:58:41 +0800 Message-ID: <20230227070107.15664-13-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108EB:EE_|BL1PR12MB5972:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f1d925c-df4e-4874-8aa9-08db1890a33a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s+GCt+8NUzpQJc4BITgIaP0y39Zql6DpK7+17wP6ZyMdTH3avtIcT9Vi/jlLJNSICD2rrT3vprxw7z4biKlzsMUisUKohVs1TqXfeaP9T4+Ffil+B7bk3ceui/GqHBnuZS0LO1OMei8U3c0l14PkSIUNu8yuX8irIYGRPocZZQBVjwN8VKVxICO5FA+sDbv7zu1rC5Dk0UxTkqgz5fe2lXGj+BDQlf2x9xniamk+2aXzmslSD5kimZ/la2WcjMU/GW1cSUAXv0R+kgJc4I6YFj+rriCwTNwkk6NRDOJEsvlvdm/1YuedDHH8OttG+qR/6gfHq19ZwWDDGVAxI6bYWub0b13DQW7CZIDG0x3JpAp4tuwsKMLS9j16RlXZ+qZyYK/mQvqi9NcD3JvdmvPBpfPf2J7nsdZDB2xrjObYiJ0ZC92+qUbKkI0LUCJaUX748be2gynJf1vFdZ9dxKFK97UYAyCSh//xrNlSmcdVem8WkmliKi2KLFo+CxVGguWaj8ATv4W4VtSmwlFf08ELgZbSu7LlQMuH/LCQHreg5Rxq60JumIk5w+RiS6hmbsZQj9UwypNIGoJ3J9fXgd+oo07ut7xF+CHlADKzs0iCZ5r/3BYeMTdykMiicnK9Q7g7AJodQtKCKAuJdMFoFYK3ufrqwmRDifAmJxJ89WwdO6i/I+c1nQlHyM04Li5PlrUS+nSDmogB3JcFI1bXSwGZJuc2e4uR8uFahL0LDXu0v9aLHRO/gTzvejTQwJQ1IEOwb+uCH+TnnalS0BpcbyPL5N+pp6TfTm67+AgyL+fsg84= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(376002)(136003)(396003)(39860400002)(346002)(451199018)(36840700001)(40470700004)(46966006)(40480700001)(55016003)(40460700003)(8676002)(26005)(16526019)(186003)(478600001)(6666004)(6286002)(1076003)(2616005)(47076005)(53546011)(426003)(70206006)(54906003)(6916009)(7696005)(316002)(70586007)(966005)(7636003)(36860700001)(82740400003)(86362001)(83380400001)(4326008)(336012)(356005)(2906002)(36756003)(82310400005)(8936002)(41300700001)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:02:49.3750 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f1d925c-df4e-4874-8aa9-08db1890a33a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF000108EB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5972 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=e1ca28205f1b781a12ec52c49fbd5c63ab07db2b Thanks. Xueming Li --- >From e1ca28205f1b781a12ec52c49fbd5c63ab07db2b Mon Sep 17 00:00:00 2001 From: Ganapati Kundapura Date: Wed, 7 Dec 2022 00:49:43 -0600 Subject: [PATCH] eventdev/crypto: fix offset used while flushing events Cc: Xueming Li [ upstream commit da73a2a0d10f270acf3bb9c90f79545d27e8f562 ] Events enqueued to eventdev from the beginning of the circular buffer. This leads to invalid or already freed events getting enqueued to eventdev from the circular buffer. Fixed by enqueuing the events to eventdev from the head pointer of circular buffer. Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") Signed-off-by: Ganapati Kundapura Acked-by: Abhinandan Gujjar --- lib/eventdev/rte_event_crypto_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index b10595fbbb..535b087e0d 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -681,7 +681,7 @@ eca_circular_buffer_flush_to_evdev(struct event_crypto_adapter *adapter, else return 0; /* buffer empty */ - nb_ops_flushed = eca_ops_enqueue_burst(adapter, ops, n); + nb_ops_flushed = eca_ops_enqueue_burst(adapter, &ops[*headp], n); bufp->count -= nb_ops_flushed; if (!bufp->count) { *headp = 0; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:41.440554900 +0800 +++ 0014-eventdev-crypto-fix-offset-used-while-flushing-event.patch 2023-02-27 14:08:40.729237000 +0800 @@ -1 +1 @@ -From da73a2a0d10f270acf3bb9c90f79545d27e8f562 Mon Sep 17 00:00:00 2001 +From e1ca28205f1b781a12ec52c49fbd5c63ab07db2b Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit da73a2a0d10f270acf3bb9c90f79545d27e8f562 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -23 +25 @@ -index eaff5778a6..c08984b8cf 100644 +index b10595fbbb..535b087e0d 100644 @@ -26 +28 @@ -@@ -669,7 +669,7 @@ eca_circular_buffer_flush_to_evdev(struct event_crypto_adapter *adapter, +@@ -681,7 +681,7 @@ eca_circular_buffer_flush_to_evdev(struct event_crypto_adapter *adapter,