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 B15A3A034F; Mon, 11 Oct 2021 12:45:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3429D40150; Mon, 11 Oct 2021 12:45:51 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id EB81840142 for ; Mon, 11 Oct 2021 12:45:49 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10133"; a="287725317" X-IronPort-AV: E=Sophos;i="5.85,364,1624345200"; d="scan'208";a="287725317" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2021 03:45:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,364,1624345200"; d="scan'208";a="591283340" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga004.jf.intel.com with ESMTP; 11 Oct 2021 03:45:48 -0700 Received: from fmsmsx605.amr.corp.intel.com (10.18.126.85) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 11 Oct 2021 03:45:48 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 11 Oct 2021 03:45:48 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 11 Oct 2021 03:45:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFb4dms1RCBH6gR3jzSD0tGUZFazDCdsTmtUQx6J0iVT3+acdLb/3bJHgrbxRhMjDGD2V5/kv0iDveK7EAyKVauZB9s6+MC+RSFCXWbfYIMrFLAjMpDZ8mjIwYiukCXFEE/Kat6jXgx1G/l1/xq0ao44Pm3olDkOWgehDZ3ZsMym+TUGSY6mmlcV3QD3/mioUVkKo+AMCfWv9ms6dqDeec/ZSk27cRA04kkTdSVPQu5tA5Kd8VuyFIIH97oZ9F7MfOHbyAriFTEEqBrK4HZf8ZZV14PtkA24qjNw/uQrHq9A834h4QheJURAFPQjWtDrndQrbc1hWJeAWVamWuQZZA== 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=cvlASwRDpEjo+m/U2L7ScwncwD8m3UhNACjDaatw4Mo=; b=npO5yJPJ9T3S9tRyscCUAWtcwOXeLw9z9qUapBrZO/oe0ZxxFIptTwM4wq4MebPM9tq299yuGD2AUQKbn6NBLXxZI1FwPDy9hn/+YOx9EggIGFuWi76JYxNuNFl3MQBya9vZkupGjMxB0eYOmIB8v7GFYPl/WJTzfC98lOIpgoxouZnTczGqvwIv3Utkc20eZy0t3BP/r3jOnPlRon/WxYb1jX7Sm/Z/xTSlmm3qwIO90/ThO0j40qfM0dERk1kUr3nh7XcrW5q+1IOngSzuZFkEFG7hwgDYKPB6TKT4ObbTxoI3HQBmEjvMl0ffERIFwbl7MxnenaNGS9mPc2mOPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cvlASwRDpEjo+m/U2L7ScwncwD8m3UhNACjDaatw4Mo=; b=ymPNgpUKImbNUtZqYbwOfeSPwHxybpPmXoUbUtmAOALRHAz9KVZYJVvGDDMORnplA4JMilO6ThCHQ9X0pEoeXNDs5NXzmUNzUo+zde//qqVmKu975ceyPwHC2sq47I/BPvWei3NAZa2NNpxvqBS8hzLO4V7qLLe5sUfHq8M1rOw= Received: from MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by MWHPR11MB1504.namprd11.prod.outlook.com (2603:10b6:301:c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.20; Mon, 11 Oct 2021 10:45:06 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::2c31:1470:3036:959b]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::2c31:1470:3036:959b%6]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 10:45:06 +0000 From: "Zhang, Roy Fan" To: "Zegan, PrzemyslawX" , "dev@dpdk.org" CC: "gakhil@marvell.com" , "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev v3] app: fix buffer overrun Thread-Index: AQHXvnbDsoatZ9P+8kKNZL1l7ep08KvNnPYg Date: Mon, 11 Oct 2021 10:45:06 +0000 Message-ID: References: <20210922101511.10395-1-przemyslawx.zegan@intel.com> <20211011080452.2710095-1-przemyslawx.zegan@intel.com> In-Reply-To: <20211011080452.2710095-1-przemyslawx.zegan@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b45d6b9b-72bb-4c83-63c6-08d98ca43077 x-ms-traffictypediagnostic: MWHPR11MB1504: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1332; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9GPAy7H9Djzd+MnN2OwgeM6dI+ov74Wn3oozI/3QcrO1k3Ob2I8dVexydrIVqv7rPY/JrwB8wZmwrdqtI30Kz9s8zcb/ATmT+LIlNV1L8AS8paafcI12iLCyCxTEFHYp1AgfEh8KVpyA9BPJLpb8UpL2PHOrkgZjyh7kGDUCZDKu05WIGp+Xalo2rLuzbShc/dlpXoZR9Ydxp+5X9WBAJ/JzBZWEc85TPeGwGYcw3k7gquqRHQI+mXWT/KciKcQm0KTB8r+Gpd96xej/C3VxUy4hFju5MohcTVJyJ3A7uoW0iyFrw2tpO9ULNf8MMJd810uIjPPWnhE9Hl1IIt8KUIrTjKplRFidx64Y+GXwKpd909/jBIsbJ1Vn4AKEWjZ1gVzZclYSIsc98PoP60Tvvk2w2RJJZvy+cv4ylLfpfw/pcFYwqE0OjMfhTFLcMAb82JMPikIx39mnZSRsNNUjKtY9jTKnrMmlvHJiWGkJOiINOItqGaD2ERY3mrQAKfwkApFbapB+gv7UyssgNMwgyVceSvqle9h/EVu0suUKG/pdgws8Y4akrLz8kGA9HP2sVLHSZ9ERLBb9ERPtJcE6M3txpJihMDMtLcdD1i6VWCXKnBEiZgKt/oaLRNobItou9RFznx+Wptc92VJec0XkCQtMBPdYDcy8R3h9c2p4QmGcQc2nBoAbX+SoZc/a+MZ/e0bpUic03JMtNci216KDsA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(52536014)(66476007)(64756008)(66446008)(38070700005)(66556008)(66946007)(55016002)(4326008)(107886003)(508600001)(2906002)(76116006)(54906003)(9686003)(316002)(110136005)(6506007)(7696005)(8936002)(71200400001)(8676002)(186003)(53546011)(33656002)(83380400001)(86362001)(4744005)(122000001)(38100700002)(26005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?CbElfLBBQJ4XaSmhKe7PwgmCEooA9irNl3+8C1wutreYwS+OFrASKlrU?= =?Windows-1252?Q?uYL6tyj6MbjiAf/3E+sQsZig4ZIFgePxyyg5HnAfPdVh9vTHCKJnUn7c?= =?Windows-1252?Q?+EX1cp/bED9F15UltgadBeGvPBRhcVsJkoVYc2dFGfedtApCa7sdNKTi?= =?Windows-1252?Q?bMcjU1cDYLn8e7yp+gAhp8qy0Y6H/hAei9WnEtD0leGal3mvcx00Zl3b?= =?Windows-1252?Q?bSbpVTXtXIrMSURF4m9g8ActWKNoalomUZT73Ko4/cug+zA4Z8GMN/RT?= =?Windows-1252?Q?1NK3aL5LIxmNkX5Fji0UrC+moaXk4TimhMMHzdfQwJ6W/fb8vidOst+Z?= =?Windows-1252?Q?VF90YJtMtDVLEwf7KW3u1KfKWVLQIxDtsvZueYs1umYkgJt3rXbm8qw3?= =?Windows-1252?Q?xdjHqFYVsZtKXP4Gt5cp5FphQmQVILt1+hRW2F8GWTDHdmkODElfUZ8I?= =?Windows-1252?Q?NkcCwY8js4dTYhIQtAq35qiShRqJwetCmGsUNCg6qPAfRXxQXwA5seBi?= =?Windows-1252?Q?TGDlOijNIs4+KxXgicM4rE7LRwqt58cJiEL4hS5BgPvp4xg3TZmT+fjW?= =?Windows-1252?Q?8iBUWevaVoc+KK69JRGo+Y17J1odpVWdqefnSY570xaMXdj8AcMW4ThR?= =?Windows-1252?Q?phIAtzHB7sHZKQlaYPApCDnE6FoD2oSUCk3+WV+MLZbIROkMVZfzP35F?= =?Windows-1252?Q?RX4BuS6IjJ/Os7Nkg02MpShAPJ+/8Jwd7TxwR9UdEsof8GXuUXB8ftjs?= =?Windows-1252?Q?n1duY6enmG5cAKvYhd80TK3kxgZBMfppS8c1/Gpw4RiCO/loAE1r9FSN?= =?Windows-1252?Q?Ifirs3+UUSCTZ5UB4iZ+WMLKz+qoNROBTEd9HVjEO8m8E8nLLc440EOe?= =?Windows-1252?Q?46tqjQiiXUjs3ewrTXd4KikTX37iG/0/iV4pb99Th/tQISLMwIp/2LgV?= =?Windows-1252?Q?O0LNQINLPwqLESGdf3YM54ya6xANHpLgowjLM/DTNpyul1968lQSrPxc?= =?Windows-1252?Q?vAgINOcgg9BU5V1YHnncbnmBqmcnzqhoItfEVtoBfHjz/CGQC2HByak5?= =?Windows-1252?Q?3tDyYVA4yrTlSC9iuvkwiBKuBozCnXBWhebVqMQyNKtssnHo3QMhZCo9?= =?Windows-1252?Q?yvPbxbGxF+YmOvK2VlpkaOwBWA6kBjuEX1GvtFrWNgQqNH8qKOx1+vJ5?= =?Windows-1252?Q?ADnle9yX4xvLnS7kD9LQKch0l3h1TZ8XmLVsd8fFLeEXXZAR9P04CKRN?= =?Windows-1252?Q?sQuz0hEygZ8eOAveVpUVUpUfHSemScIJaD89OWL4x8N7AkRNy3XVflkK?= =?Windows-1252?Q?ktyTLRaiDGT4Y84R9pqJV7sPocg2NzBIvOiSTJevQiiINFa7Ad1klSAg?= =?Windows-1252?Q?d61FAl8pKoXKMFUmLOmGDmZPgU73NoGj1BD79ivT0lOCtClwSSfvActL?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b45d6b9b-72bb-4c83-63c6-08d98ca43077 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2021 10:45:06.4515 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: q5/WERUqSzW6YZglYjlCsMValkQsnrw9LLrBLz+kpYB0KB2nSupdaAPCiBHxNGikWMYrj6y1UVNcWFO86hOlIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1504 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [dpdk-dev v3] app: fix buffer overrun X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > -----Original Message----- > From: Zegan, PrzemyslawX > Sent: Monday, October 11, 2021 9:05 AM > To: dev@dpdk.org > Cc: gakhil@marvell.com; Zhang, Roy Fan ; Zegan, > PrzemyslawX ; De Lara Guarch, Pablo > > Subject: [dpdk-dev v3] app: fix buffer overrun >=20 > 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. >=20 > Fixes: 8a5b494a7f99 ("app/test-crypto-perf: add AEAD parameters") > Cc: pablo.de.lara.guarch@intel.com >=20 > Signed-off-by: Przemyslaw Zegan > --- Acked-by: Fan Zhang