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 70B5EA034F for ; Wed, 10 Nov 2021 07:46:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A8F940142; Wed, 10 Nov 2021 07:46:46 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2055.outbound.protection.outlook.com [40.107.94.55]) by mails.dpdk.org (Postfix) with ESMTP id 0E40B40E03 for ; Wed, 10 Nov 2021 07:46:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Icg5V5vwd36NSVdMmwLSw88aswuvZIphbkzwMClKc3psggZnhxoOhXh0mqxKBDwy9CK6iQIkL0zr6m142WvwLUfduZgaHsv+ZdndlloQEz827LOEGsM9dUVUcIm8FRet43WGftDOPAZTMXK/fJz3iJEtJN+U8g8T74VXdhnQXeisXMC/+ErXS1FkLQVRolcDihWwwIDJ+0I4qiRr/I9K9wBw/VJMpPZVJs+q0291NQ0wv9FFWQ716tAgryMR1aqm28SB89MfQ9W7Y2vDdsMHq33Dim87spz7U5Psp1YdBQKVq/QrpmjaPrXWoq8VJ8MGcbh1SGMxUSu8dJEzTkyHTA== 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=GPJzXblcSDcebOHTogsX5p9kVA4AFZ4L+gJUPCTYR4s=; b=DetXGL9Kvj9hpZi44zlwDG3ssNN3lnsRx677SNu1PGLToQWYHoLTrwn8a8nQYG4P1LgtO8tITUr0ueGmpp/kELkV/aFPwg/LrkJZ0LRUUYj1XJGXKzgAoKEyFbRUoKaY2ZvjGO+JCvzq5mcz5xpfvxZr9czfM9PKnQ/6XZoH4zu12e7xtoE+VpN5g4X0tWL9AfsnyRc0eoQ4QkCidOgwbNo6qRFwJ0Eu0uiDJamS8UzNh5AXwXtfJSQQymFPcMiyZVgoYvyt2EMHgVYJjUxTes6+hF1icI7KlKKxk/VFEu4YUwIfRyi7E+rABRgXLWvS2nJzvkiXV/IWMo0ARi3qww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=GPJzXblcSDcebOHTogsX5p9kVA4AFZ4L+gJUPCTYR4s=; b=b0oAZT+ZhQCipgdJ74l4pfjfMtCmfU5jXBhuMVo4v0OtW2qd/2qNxT64wKuS38URXWSuwiPXnM+6eYdTzkgcfFEb/wrItwS/Xpl1geHZHRsKOKYmikDnCb+pglqRc2X1+VNqbj/AojgFmyHj6qsfCN7V3xcmEqasmGxwI94TooG3BxFEGfXRdxHlrcbULRg0yRPp7v9yD8lY9hpmf5yLRaGUxmbSC67Pr/71FFjJeOAXd2WXT8ytFutaJUCitGHXHNS3teILs311rLnPJLis4+cxb9r7bPGtvRfZomhTMV4nEFXT80tzJ3yZIVAoOdnZjALoo4gHbNcQSK0DGrxTsQ== Received: from BN9PR03CA0659.namprd03.prod.outlook.com (2603:10b6:408:13b::34) by CY4PR12MB1349.namprd12.prod.outlook.com (2603:10b6:903:40::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.15; Wed, 10 Nov 2021 06:46:41 +0000 Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13b:cafe::46) by BN9PR03CA0659.outlook.office365.com (2603:10b6:408:13b::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 06:46:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT036.mail.protection.outlook.com (10.13.177.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:46:40 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:46:38 +0000 From: Xueming Li To: Przemyslaw Zegan CC: Luca Boccassi , Fan Zhang , dpdk stable Date: Wed, 10 Nov 2021 14:30:13 +0800 Message-ID: <20211110063216.2744012-130-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b86d122f-3b90-4e78-d18d-08d9a415d9f4 X-MS-TrafficTypeDiagnostic: CY4PR12MB1349: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9DB8B5/w3+mMkmVwiTnjrRL5QkFLADu6KazgHUrSrmVRHltWYZyMiG+8voPsEgEWJYsYvtid6tVk62VU2kWPsfjaHbtTwwPH7kI9najm/hkyL/9nXTmEymr7/Um0wp0H9dgnF0FW/f+R15JrfJvOgAEEyktbvZfVcttoVJ3hSE3J4y/wXBxfl4Hwj/uguidiVySSXvX7HB1q11dcUdBiMO9ovih9omHVk3fhKl5/I5H18lX/uQGuq1+13OUinkuwLMr5lXJ+/W9WoP9IlQ4C6eCCuLOFzkGgtX0muJTLVQvCsfXF12b7FYlA7wdbtpMF2LejLCdlW8MAwNBEijdgz1d1pSp4uWDaLc5cPwHU8V7Wn24nIFsjwd6JcUYAwiZx11p4T6UXBBnJLn+hYksVMCgwU+fUtxN1DpnMji3WNRFVLufNu/vtNt02q1jiLDgnuVKNhrXZ0QhJYqgGHMt1y/QDT+5LeH1xpkp/vlHrozMOdX9BNQeLIJpX7ZIwbB4tKwvI2mhMkyhrystlJBqelhSr0D5Kw4cyAj5XVY9a71khkKoa/Rd2MqC8Q3slkeC5ze+6VTUs1LUK12sWmO8iY+CqIyywVz4ynana4IKmJHB7PGx3FX5UCIE2B6VitGznvOrMw08Tp8x4XemmnTg9CoJJUCMP13cR8FE+2KHVFRCKFGzKfTAFP+N9DsCHMM0q+5RkqPl5GmcqHoQWRjz+9uypH+30ZhH5LJ5n84qE7U6SFsA/0c2sRptlr8oZBYCeHehPrbqKxCvFw1pIWxKvLALbnt0GddZtrZ92R77LuthJhiTLNGoCOSXpuVstjk7o9v6pneakZ3Rp4D9ZXPrqYA== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(55016002)(966005)(4001150100001)(6286002)(16526019)(26005)(53546011)(36860700001)(1076003)(8936002)(336012)(2906002)(70206006)(86362001)(6666004)(186003)(426003)(36756003)(70586007)(4326008)(7696005)(508600001)(54906003)(6916009)(5660300002)(316002)(8676002)(356005)(7636003)(47076005)(82310400003)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:46:40.6065 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b86d122f-3b90-4e78-d18d-08d9a415d9f4 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1349 Subject: [dpdk-stable] patch 'app/crypto-perf: fix AAD template copy overrun' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/2c8268b307e45be2a6dc8137e55b5e8389a4ca89 Thanks. Xueming Li --- >From 2c8268b307e45be2a6dc8137e55b5e8389a4ca89 Mon Sep 17 00:00:00 2001 From: Przemyslaw Zegan Date: Tue, 12 Oct 2021 12:56:11 +0000 Subject: [PATCH] app/crypto-perf: fix AAD template copy overrun Cc: Xueming Li [ upstream commit 49c19c94dc67a3db2f8534a1e6ca253e1f08fff7 ] This patch fixes a possible buffer overrun problem in crypto perf test. Previously when user configured AAD size is over 12 bytes the copy of template AAD will cause a buffer overrun. The problem is fixed by only copy up to 12 bytes of AAD template. Fixes: 8a5b494a7f99 ("app/test-crypto-perf: add AEAD parameters") Signed-off-by: Przemyslaw Zegan Acked-by: Fan Zhang --- app/test-crypto-perf/cperf_test_vectors.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-crypto-perf/cperf_test_vectors.c b/app/test-crypto-perf/cperf_test_vectors.c index 0af01ff911..167bf87bc4 100644 --- a/app/test-crypto-perf/cperf_test_vectors.c +++ b/app/test-crypto-perf/cperf_test_vectors.c @@ -554,6 +554,10 @@ cperf_test_vector_get_dummy(struct cperf_options *options) rte_free(t_vec); return NULL; } + + if (options->aead_aad_sz > sizeof(aad)) + options->aead_aad_sz = sizeof(aad); + memcpy(t_vec->aad.data, aad, options->aead_aad_sz); t_vec->aad.phys_addr = rte_malloc_virt2iova(t_vec->aad.data); t_vec->aad.length = options->aead_aad_sz; -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:07.678303986 +0800 +++ 0129-app-crypto-perf-fix-AAD-template-copy-overrun.patch 2021-11-10 14:17:01.890745927 +0800 @@ -1 +1 @@ -From 49c19c94dc67a3db2f8534a1e6ca253e1f08fff7 Mon Sep 17 00:00:00 2001 +From 2c8268b307e45be2a6dc8137e55b5e8389a4ca89 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 49c19c94dc67a3db2f8534a1e6ca253e1f08fff7 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index 4bba405961..7da1a8fa2e 100644 +index 0af01ff911..167bf87bc4 100644 @@ -24 +26 @@ -@@ -590,6 +590,10 @@ cperf_test_vector_get_dummy(struct cperf_options *options) +@@ -554,6 +554,10 @@ cperf_test_vector_get_dummy(struct cperf_options *options)