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 7AAF84591D; Fri, 6 Sep 2024 13:16:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 630B242E12; Fri, 6 Sep 2024 13:16:57 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2078.outbound.protection.outlook.com [40.107.101.78]) by mails.dpdk.org (Postfix) with ESMTP id 8AFDA4029E for ; Fri, 6 Sep 2024 13:16:55 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=R0CtzZUbxQlnSdsDJjrJoTSFsN3U1kOWQSaxZxbTXDFfUjs/0AjHHEMoC+he95cfbaosFlVfm4Uaq/UhgtVP7PzaCStLQ9bL6691JUGGNmwGzh5eH3YkYWIOleKtgJ42J463SNkJ0zZQwbcfZcyQfg/BoRL1MlhLMAPYEQ+hh6ayG1mOTCAkoF6vViDSyJ9/Gk8WD0QWNDQMPmyIPUY/GKV1KfrjwDtKFYZBlP+996Q6m7YMP61u0rKLXPs1ntINwGjGZnJmN9NzRi2yPssZHrcsNGR1TRbmX/IC4c5htYgSDiHBR081i5JEhlrB7NLJcR62Ip9TUPcxHDasawCqPw== 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=ljI6UrQgPjm9+e8Ivjsf1zjmqCAk/5MZZeQXDYf/WXM=; b=OecZJbtjdtHDvszFzFRC/NTLAT/XcbdzzK5gA/uukkzHc/ehTwNXJZRMViRRC29fccng8bKpizZ3jWkGeY3wPJk7kVk7WP/beQFxpBON2pSUmkGxxcaSKfeVMiHRh9YtJGI02DZIY5nuVuKBkXzwz1CRugWnu8D8YbBJwGGM6gbwbRhjfFXiWr5dk/CI0/QjzBRU3T757+i1do48QIH8s5axmBV/K/3dusVL2jbAAsEzopQic4rQ0jZFljlz5meJwksGQAyUJ7QZEolakHkziiO4ekz4DDP9qNF+ySoxFx3fUH1cDvgBXNjkqmWofm80vt+ee98ml/JXu1WXfJFFwA== 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=ljI6UrQgPjm9+e8Ivjsf1zjmqCAk/5MZZeQXDYf/WXM=; b=0w4sZ8iaFp9H2br0sqzF1OIpoAI5VO6/BY0yioZ//DACm7yrvj477Nuv1Mn7A6o7EpjZ60BUIHtqbY1sUFttpDDq4yJ5vsgd83zx2qyo/CDgVEVdnUSiT606vOoZQ8HjbaUhCPD5CEChnmTgb/uQBHgsxJuB3vkAWtEFvv1bmRA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by PH7PR12MB7377.namprd12.prod.outlook.com (2603:10b6:510:20c::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Fri, 6 Sep 2024 11:16:53 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::ebfb:2f9f:f9ca:82cd%4]) with mapi id 15.20.7918.019; Fri, 6 Sep 2024 11:16:53 +0000 Message-ID: Date: Fri, 6 Sep 2024 12:16:47 +0100 User-Agent: Mozilla Thunderbird Subject: Re: Crash in tap pmd when using more than 8 rx queues To: Edwin Brossette , dev@dpdk.org Cc: Olivier Matz , Didier Pallard , Laurent Hardy , kparameshwar@vmware.com, ferruh.yigit@intel.com, Stephen Hemminger 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/kEp49a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8Zk= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB9PR01CA0030.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::35) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH7PR12MB7377:EE_ X-MS-Office365-Filtering-Correlation-Id: 023bfaeb-8858-4fc9-1a95-08dcce6568e7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?B?aEFaSW02UWpuOWFoZTczcnhZQmlKczlpeitrMkZnTEtzUHFuL0JpUzJnTXA5?= =?utf-8?B?SEVWbGE5MFBaaVBDU20rSWJLcVV5bXJGd0JXb3pqVlRQT2F0aFNHeWVuOWJo?= =?utf-8?B?WFBsVHFpQ2dTSmF0aGc4UjlyYzV5Uk5UQjMrd20vbVlXcmRvTjladUx6VUJx?= =?utf-8?B?S0J3TE5LSkR3Szl6NjNrWWRFZ2hhbDA2Q1EyRnhRMDNpMXJhaEMxL2lZeG01?= =?utf-8?B?ODhpeEM5Y1lBSXplS05JdzlVMFZURDN6V2lTN1VxSFcwTTFPUGZmMSt6bHZ1?= =?utf-8?B?UzBPam9YeDduSjcyOXNQRFJxdllRSTVQQ04zbWQ2UEkvR0RuZ1ZsSkc1dFN4?= =?utf-8?B?N1VLU0ZyMytjbjJZZHNRLzQ4KzlpSklmcFV1S1Awb1IramFTcW0rUU15Zlo5?= =?utf-8?B?R3NveEwvUVBtY3NqSjJ0NHdPSGU0YTNCdEtlZzhvNVF5bmxwUGlIR3dSOFdS?= =?utf-8?B?USs2RVdQSFF4ampYSU1sV2M1MUpLNXJCMWVxa1NWTzcvcFRZbHhicGdWK2cx?= =?utf-8?B?aXdnRms2NTl5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5R2owSGExL0hOT29hSmJPM0U3UVlnSVFWVU1aUVdhaENuTzE1?= =?utf-8?B?a2tNUkNoVVRsZ3F1SkV4SFphajdBOFpYT1ZKaXNQaTBUSU5pL2JHVnZoMnFK?= =?utf-8?B?VENzdnhEUUxROFdvS2NvWG5SRTZObk5uUndUeEdMYnA0SmhlTTVYR1RVTUZH?= =?utf-8?B?U3d4bVJlaWdaM3pJcWhUZ04yWWY0Ym9odjhJTTBvWWZzQ1Q3NEMxTTNReXdx?= =?utf-8?B?TDQzWmZvQ2g2ZVNmWDNneTFackJRL2lCVWdzZHFxb1lXTlJ6RlhmTDJBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SE5WWTYxK05IOTFIMlY1aDlIcjcyeDdNRm5PSjhuQlRSdmFzektuUnVvQkJ1?= =?utf-8?B?dk9pcW1Uc2VsQ3NjTDFtTW0wcVVMQ0VMM0xGNEU3NGZJa3Z5N0tMenYvTm1t?= =?utf-8?B?dXhBUStvZ2hYUUJ6czlSUDFKWW5mL1VFQVVrODc3M2d0dlI5OENMNTJidG9k?= =?utf-8?B?eG1CL0QzRDRLODZjdWhKRzk2d2Rwa2h5VjRhNkVTc0ptZjMxcXpwQm1ocSsx?= =?utf-8?B?L29QUHBqS2JTN1laSFBJdjZXbFNSRVdSUU9RdnZDb2ZSUDhmMm01WXZzYXlY?= =?utf-8?B?WllnL2NQZkR5bVE5SHhtSXBBclprbndFVWFUL055Z0FleC9SSG9EaVV6d2RC?= =?utf-8?B?alpyaTlUbUU4eEpsVEQ0bXMvY3d5OTgvUUF2WVdsU095T0FlcmxQdit0ZEZ3?= =?utf-8?B?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rossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 11:16:53.0115 (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: eBI6K6tdaH8WyH1q4UdXVlGu49xzRdaALZFDvE8ZY+xa7jJMFqZXypXv06KNrliw X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7377 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 On 9/5/2024 1:55 PM, Edwin Brossette wrote: > Hello, > > I have recently stumbled into an issue with my DPDK-based application > running the failsafe pmd. This pmd uses a tap device, with which my > application fails to start if more than 8 rx queues are used. This issue > appears to be related to this patch: > https://git.dpdk.org/dpdk/commit/? > id=c36ce7099c2187926cd62cff7ebd479823554929 commit/?id=c36ce7099c2187926cd62cff7ebd479823554929> > > I have seen in the documentation that there was a limitation to 8 max > queues shared when using a tap device shared between multiple processes. > However, my application uses a single primary process, with no secondary > process, but it appears that I am still running into this limitation. > > Now if we look at this small chunk of code: > > memset(&msg, 0, sizeof(msg)); > strlcpy(msg.name , TAP_MP_REQ_START_RXTX, > sizeof(msg.name )); > strlcpy(request_param->port_name, dev->data->name, sizeof(request_param- >>port_name)); > msg.len_param = sizeof(*request_param); > for (i = 0; i < dev->data->nb_tx_queues; i++) { >     msg.fds[fd_iterator++] = process_private->txq_fds[i]; >     msg.num_fds++; >     request_param->txq_count++; > } > for (i = 0; i < dev->data->nb_rx_queues; i++) { >     msg.fds[fd_iterator++] = process_private->rxq_fds[i]; >     msg.num_fds++; >     request_param->rxq_count++; > } > (Note that I am not using the latest DPDK version, but stable v23.11.1. > But I believe the issue is still present on latest.) > > There are no checks on the maximum value i can take in the for loops. > Since the size of msg.fds is limited by the maximum of 8 queues shared > between process because of the IPC API, there is a potential buffer > overflow which can happen here. > > See the struct declaration: > struct rte_mp_msg { >      char name[RTE_MP_MAX_NAME_LEN]; >      int len_param; >      int num_fds; >      uint8_t param[RTE_MP_MAX_PARAM_LEN]; >      int fds[RTE_MP_MAX_FD_NUM]; > }; > > This means that if the number of queues used is more than 8, the program > will crash. This is what happens on my end as I get the following log: > *** stack smashing detected ***: terminated > > Reverting the commit mentionned above fixes my issue. Also setting a > check like this works for me: > > if (dev->data->nb_tx_queues + dev->data->nb_rx_queues > RTE_MP_MAX_FD_NUM) >      return -1; > > I've made the changes on my local branch to fix my issue. This mail is > just to bring attention on this problem. > Thank you in advance for considering it. > Hi Edwin, Thanks for the report, I confirm issue is valid, although that code changed a little (to increase 8 limit) [3]. And in this release Stephen put another patch [1] to increase the limit even more, but irrelevant from the limit, tap code needs to be fixed. To fix: 1. We need to add "nb_rx_queues > RTE_MP_MAX_FD_NUM" check you mentioned, to not blindly update the 'msg.fds[]' 2. We should prevent this to be a limit for tap PMD when there is only primary process, this seems was oversight in our end. Can you work on the issue or just reporting it? Can you please report the bug in Bugzilla [2], to record the issue? [1] https://patches.dpdk.org/project/dpdk/patch/20240905162018.74301-1-stephen@networkplumber.org/ [2] https://bugs.dpdk.org/ [3] https://git.dpdk.org/dpdk/commit/?id=72ab1dc1598e