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 C2B1D45AFC for ; Thu, 10 Oct 2024 04:33:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB912402ED; Thu, 10 Oct 2024 04:33:25 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2089.outbound.protection.outlook.com [40.107.244.89]) by mails.dpdk.org (Postfix) with ESMTP id D1CAC4025C; Thu, 10 Oct 2024 04:33:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=o6b9G2US8MsKY9FkVm57zE43bUnao9NoX3PlmeDje41XvaKRdIMcFsjyEaDwBQQ62MHtjxhbdqrAcyCv3Nul87Avk035qw8qFX+pxPJuQyPO9Hd1ByQ2GxigujowiTrrttwgNEHGHd0C37AoN60I7MIMGS/7DLbT51h4qPt+jcYJpDj3nzEwNNllRNVBs6Dm06vpCCGLR3LYvyqUCfTX0wI4DnFacNDwn/qIQqU7b7GehsSwWLRv/ugc2IExFaWlk7V4+rBG9oyUq2YrYFc4oDgvPY5d8BgQwJgoEjH4pSwIuxnjgrGIKLqY+YqoD3Bz0lE0m/goUwzdd5IMp7CDzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=f2xHDKJR0aoA4o0hLOyQ1wV5RUtq59tW72eIE4NM154=; b=H7ocSb6CTyNb+Xl/BJ6o9zclAXKAWm5hfOtsU4n5rBIq517lfnHAsFihZUk8S+de9LLJalYeQF5gFaiWEN5El+B2dVV3zEhTwXNFBwceS2EMAZGeZmeKnOvYo47Qlzsv17ZgGGiEURK/+4kZH6CkARaOreBW/jYtyimppJcsK2EU+AZhY6Lm2HCrl8R+LeoUfXrJzMWUlmHOBYW2hnLeZUmhnTz2Cl8NNw2ko/STi9sCrvQKbXt2p58hfzipiu12CjvdGx7t6IloBXqHn3teNe6BmqLrw2snQnPUPbfknIRBSrwPLsM/m/SM49kNv/1DMYukcrBHhr/htNzGY4j0CQ== 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=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f2xHDKJR0aoA4o0hLOyQ1wV5RUtq59tW72eIE4NM154=; b=fBGsDr82TLL73rYqt3OJ19sFjI8BN1S4ynB99kSlgAhqvxKBJqrM3xbz2aI5KeoBHdVDUEksnb68AK8y7ccVm0M3zhH5LPNvr8tRRECeOAXrOAIlac3sI7PZAXr9NeBI7InpeskEUePBBPZS87zzPjjJVlIGEr50j7rz+bH0NAM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) by CH0PR12MB8487.namprd12.prod.outlook.com (2603:10b6:610:18c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Thu, 10 Oct 2024 02:33:20 +0000 Received: from SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055]) by SJ2PR12MB8830.namprd12.prod.outlook.com ([fe80::c3eb:df02:eaa9:2055%4]) with mapi id 15.20.8026.020; Thu, 10 Oct 2024 02:33:19 +0000 Message-ID: <2c3e4967-0a78-41f5-b46d-94d0764ee401@amd.com> Date: Thu, 10 Oct 2024 03:33:09 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] net/memif: fix buffer overflow in zero copy Rx To: Mihai Brodschi , Jakub Grajciar Cc: dev@dpdk.org, stable@dpdk.org References: Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeAQIXgAIZARYhBEm7aYjps5XGsPHCElRTPtCKKm/6BQJkdyEEBQkE3meNAAoJEFRTPtCK Km/6UdcP/0/kEp49aIUhkRnQfmKmNV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Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR01CA0186.apcprd01.prod.exchangelabs.com (2603:1096:4:189::14) To SJ2PR12MB8830.namprd12.prod.outlook.com (2603:10b6:a03:4d0::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR12MB8830:EE_|CH0PR12MB8487:EE_ X-MS-Office365-Filtering-Correlation-Id: fa4f1f4b-638a-4d2b-b300-08dce8d3e74e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MjBFNFdXZkw3aFk2VGgwRmQwaWUvUTAvRWdHbXV2dmN1ZUVINzNHM2NtZDdK?= =?utf-8?B?QnR6SGhvUVhHRGxzY3U2d0pRUTVSelJnWmFWMDV4b0wycm5QbXh0UGp3UkZM?= =?utf-8?B?ZjRyQ2ZIenJxWE1QYnBDUG0rNkhFWUVMRHBLTzFtVzVWU0s3bGE3OU5ZSWlB?= =?utf-8?B?a2ZBcFRsNFpnZGhLdGxDZ3V2ajdsVEI4Q2p4NE54RzBvTTRkRVNiOXlLbkFV?= =?utf-8?B?MWVTeHpjVXI1UDk3dCs0S2ROZ3EwZ3F2eUE4dFdKNk0vL1pwS21DaC9TQk5C?= =?utf-8?B?MXIwQWl1MlU1WG12SDdienFiakUybTlrUjF5MjgwaDZucGd6aVYya24rV3pa?= =?utf-8?B?L2VERlRwcFpBZUI5N0dWMUdDb0svVjZsRi9hckRRWnNsbXExTU9VS2ZhZGhw?= =?utf-8?B?cWxBNjN4WkJESzExN080OHcwWEdSdjcwS2w0dHY4N25ZV3c5TDFlcmduSThh?= =?utf-8?B?cFVJeGhGeTdpNFVmUUVwQVlSaDl5bHU5YUsrSVZrLzlSYUlIL1hrVmI0d3FF?= =?utf-8?B?eEJVT3cxQlpGaEtZTFV4MlFHW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eWc3SURKL1VVcUZKSGJPZHprZ3JrSWtDYUFYbEhHWkpBekRicG9m?= =?utf-8?B?K20yajcwUmlHRlVDdmhuMGFON3lHZ2Q5SFhpLzZwMm1venJsL3ZkZzNqcHMx?= =?utf-8?B?cWh1VEVTV2VKa09uRzFaMU5VeTBxeDdjNG5nZXhJSzN4djd1bjNqVUIrbXQx?= =?utf-8?B?dGhURllWVDc1K2o4QkVXSzZ3OG5tR25XMUxCYXBBeTAxN1FmQTFWWVdrQjRG?= =?utf-8?B?UW04Q1NkOTVoOE5odlZWcjlzQWVueGs4NFVNWlJ6YzRXbHNPbkVuTG5RPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR12MB8830.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(366016)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?THBWTENjcTc5MEE2S0RCS2paaVVTM1RrbzhJZ0RnV1ZHZ3l3SVR1K1ZBQmtY?= =?utf-8?B?MHp6S25ONmZ3elRuVWtwWHlsK3VoeHBlWlAyRVRFWFJGYmRHK01yS3FReXZ1?= =?utf-8?B?S1gzSDN4azVpNHNqdCt6NHg0V2tvM1cyYVl5ZDI4NG1iZzZEWXJFWWhpeCtP?= =?utf-8?B?WFkzNWgvU3ZTU1dFYjlOS1l6QXdDNnBmeG5LTFdnUU9IQWpwSmdWNTNmM1JG?= =?utf-8?B?dFJDYk1wTWZ0eXR2b0dtZU1rT0I5Y1R0L2JHU0dZSXA1VjZNcHJpVmtwM3RR?= =?utf-8?B?YVRERVhLeHBVTzIyU1Ayb3o2eXhyWDVFKytaeXd5OHUyMlRhWUVGNVlaWjlG?= =?utf-8?B?UWcyZFFaRndHUldkSVJMdms3K1V5TXR6ZFhTTEIxOEExNTdmSUh0NlNuZGV6?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-b300-08dce8d3e74e X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8830.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2024 02:33:19.8813 (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: 3ir/aaaAXj4KExImpf4bG7nsx7gjBn4gYb25b/bFcDSu979vYmMU7TCX9nKkjNTR X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB8487 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 On 6/28/2024 10:01 PM, Mihai Brodschi wrote: > rte_pktmbuf_alloc_bulk is called by the zero-copy receiver to allocate > new mbufs to be provided to the sender. The allocated mbuf pointers > are stored in a ring, but the alloc function doesn't implement index > wrap-around, so it writes past the end of the array. This results in > memory corruption and duplicate mbufs being received. > > Allocate 2x the space for the mbuf ring, so that the alloc function > has a contiguous array to write to, then copy the excess entries > to the start of the array. > > Fixes: 43b815d88188 ("net/memif: support zero-copy slave") > Cc: stable@dpdk.org > > Signed-off-by: Mihai Brodschi > Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.