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 0634143279; Fri, 3 Nov 2023 14:39:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76F4C4027F; Fri, 3 Nov 2023 14:39:41 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2040.outbound.protection.outlook.com [40.107.212.40]) by mails.dpdk.org (Postfix) with ESMTP id 3E1E440273 for ; Fri, 3 Nov 2023 14:39:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P+lCazwcAkboogygDxIDlJ+ZD4wUN+tS55/oH+Q17F0mRo0DpRK1IZLKAPEEsMaHHzwhyuhGSIez86Gx80wJ2hoPk4E1pz07L2yal+OymXUvFS4SdLgkPKNMRWaYoWW+JBeMh9gw/usgUMDoAdYWlHXALH5WLFUNZ97/fOGG9w5mnZLatZvn9R1ey5V7OshcUlVc45fKFtvsTAvIRP6viqyfBnNvFK92vSyww26pf7A2rPlWH7bmjS/btqnAr/a0WeY3f0oOInVZ/EJjMT4r+n3yjUcNVx3pvNRXaVVNO+Zx3QMkcxmLZkumKwDvZMevID8oz3rDmrm9VC3Gw9yGog== 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=YdBKcpHcn8WZSt4UmaJcJZbedEcj5fF3uj8Y04qkRgY=; b=fQ4/ycASUQQCkAA7fr5qpxyVh50hRmVvZotYg4IOPWEUABx/cG5lbwEo600tGMDj9254alBMpZRHDq4Lv+2QSpCD4Lu7MPSqfn6tXqj35r+h0lKIKfGWgx/tbiYf32ZR9v4UZBWmruQgIqGYNMPCVsNZMR8XaK2tZRQKJs7z8Pa53595Z0om48Eh6NrB9lUKYjQL1G2hYAMe+40jNOu/UmEIWpZbA0AeBomEOGLDqxvJFrKRMwaGZwcRraCpIaxMLN5lmTW0IygChxq8FnVFStTSX4pBLftiE5JEDDT1bz8MIC6STGQLZs4SFkAaZsp9ZiRDG2IGBKys7tGDnEAnwA== 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=YdBKcpHcn8WZSt4UmaJcJZbedEcj5fF3uj8Y04qkRgY=; b=1yBHr4cn/OyBWbj9x81Nft7YYg8Z3tvohTN/H4HCMpX6CgU9MeTN5XKgFJYl/JDVHJ2waOHApyIFLYmzhAlxoUVVjrKL4ZnMliuMN0tc1iGgHtM79U9YmhCTSGj5F+iiU2LlecFnPHuexRtRxI/ux2TkjB+ZDBMRXS3O7VRb4Ts= 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 MW4PR12MB7192.namprd12.prod.outlook.com (2603:10b6:303:22a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.24; Fri, 3 Nov 2023 13:39:36 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::2569:edb2:670f:816f%6]) with mapi id 15.20.6954.019; Fri, 3 Nov 2023 13:39:36 +0000 Message-ID: Date: Fri, 3 Nov 2023 13:39:24 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 5/5] net/mvneta: fix possible out-of-bounds write Content-Language: en-US To: Chengwen Feng , thomas@monjalon.net, Zyta Szpak , Liron Himi , Ferruh Yigit , Andrzej Ostruszka , Dmitri Epshtein , Yelena Krivosheev , Natalie Samsonov Cc: dev@dpdk.org, stephen@networkplumber.org References: <20230314124813.39521-1-fengchengwen@huawei.com> <20231103073811.13196-1-fengchengwen@huawei.com> <20231103073811.13196-6-fengchengwen@huawei.com> 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 aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQ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seA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231103073811.13196-6-fengchengwen@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR4P281CA0147.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b8::7) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|MW4PR12MB7192:EE_ X-MS-Office365-Filtering-Correlation-Id: cde1c07f-48aa-4693-300a-08dbdc725209 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: miuoOjPzeCD2fOq6XScQ7WCh9COUtTnNIeJVC4oVJBrGuxix1QPiI6zNKY9SyJ9OhlvEJUWmw0qvvfYWOnri0cX1kE0UOJPTdJg03veXLAnvNCnkbeTLI21AY+kA4irsw3Ss3A26ZXRG10llQPocXC1dgXrLivsz7Y23eULg289PZ8wcTDMoqLoxuA96gBkjvk9LPKMvDc3mBDdENHNKhMNZlONijUtgKKcGqtjOaXzGazCcWFzKBcVmur2Z/ZU9MUlzisb/HDFFllu1J3dlngbjHBwfu9OoRjYfE54gymZ2k6mQ08oBrdzxGuoeraKBybQkJ+5OlDh66f9QOD+/boRubg2o8E8AY+gmTtIxHXVzJ/BEVvo04WPr/nKdoAL6EhtVTwo4wOMEQU4PcMyhHNbvZCo/gBB07bn7AsRB1zQ7WMC1hkWKbj0dl9W6NstkI38QD3KXqtm13ZnFjBk684u/onEjOTgN9i085E4TBjbKLjKXD9i01j3LKiCAL/rdRHzW7166VAVFhQUaSyRcHSNgAkGXpSHVpa11vjvBaR5VDfZJ5+TYjanJ1lMmZccS/8l6d7nXwYZsaoNb3XBvgK1jbuitzz5NZmQcm9DnQTwTte1bb1QstGhatMSKc72X8BqUAlzaJropE8wAV2dS3arpJMY4ZNWU8EM7Ie7Ikbg= 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:(13230031)(39860400002)(346002)(366004)(396003)(376002)(136003)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(38100700002)(31686004)(8676002)(41300700001)(6486002)(6512007)(478600001)(6506007)(5660300002)(6666004)(26005)(2906002)(4744005)(7416002)(316002)(66476007)(66946007)(66556008)(110136005)(44832011)(8936002)(31696002)(36756003)(86362001)(4326008)(53546011)(2616005)(21314003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R3pxUzVEZjRpSVNNWEFTcXE2Tzh3ajRmQUtyYUl0MVg0ZHVickpUNm1GZUJL?= =?utf-8?B?R21CM3pjd0xCYithWFo2WWZZMGFPN1c2TENVcXpScGJ5QmEwMENBY0VYTXNC?= =?utf-8?B?U1pqZ21razRDcTg5aHRzamI2alVlNE1tcXZTRGk4UGw3Tlh4YWxTYmtmamVL?= =?utf-8?B?S2UwUjVsUFF4WVZiRjNQR2dxNVNBbVlvOWJDUHZSLzVKQkozcnpJVWVzcE5a?= =?utf-8?B?dnE5dTVRRS9mOFFrMVh4KzBpTnNtR1lvV1hGNmR6YlM2cFowS2JpSWkzSjVO?= =?utf-8?B?TkpvRjRNL1BFNHE5eVNWM20zcGN3NGwwejlmUkYyR2Vpc1F6NGxnMTJYYlNV?= =?utf-8?B?TFFGTzU3dC9SWDFPdTcwYkdGZUcyR2JCemFnc0lRMEIwRWZiajRTa3dQaUtC?= =?utf-8?B?d1I4UFhKSFNmNHJFdFJQQk5GeWJyc3Q0Mm96R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NjArbFIzN2gxMzV1aDR6cE5GSnBZUldpM0kz?= =?utf-8?B?UTllc0F2QmVkdHNtQitCS2J3d1ZweHQ1bFI2cG1rdjE0Q09iUFArK2k1M3NO?= =?utf-8?B?L3pUT09jUnNZRFE1Wnh5VUpMRGZ2VGNsazRlK3NEMVl3ekpZdVBmN3luUWFn?= =?utf-8?B?L3RXNzR4OGlSajlTTDlEbEdDRCtka0JVZWJZdUZrNXVqb0dmM0dPYWZMZEhO?= =?utf-8?B?SEdWRzU2b0tmYkc0ZERlTks4MEdEd05iS3ZOZ3RRZUhVQkJkSWN6RWR2MUNJ?= =?utf-8?B?TlFIRmVTSHZZOE1zM3BSemJDeS9SRG9XQVMxSlNzVHhad0hUZ3pVTXprMzBW?= =?utf-8?B?aHlzd2V4WVlKdFJ0UWlCUlJWVGIvdVpFNS9MYnZ2dHA4N1o5VWxJckFJbVlE?= =?utf-8?B?cUtSa3FDNW5nb1ZEUFVCSE45M09rYUhkVkZ3TWhOYUpQS1RXVE5ZRTFibkxt?= =?utf-8?B?ZUVhUFNXV0FUb245ejI3alB1K0pId2pNcjFsdmJrY01CY1dGRVh2bGY2ZlV5?= =?utf-8?B?SkQxNEJCUzFMY2d4V2ZNYWFwaHUvK0lqVVRtU2FzSVM2L0x6WFNoZUsydWtI?= =?utf-8?B?NnNkMklZaEtadTZBaHRUZzRxWVhOZmpqTXg5Y2FNR3dzNk16emtGdEpoaGlq?= =?utf-8?B?UnhMNzIyaUF5THYzRWJvL1VheS9CZWFLN1V1NS9kL08rY2lHRW5xcEUwWGNL?= =?utf-8?B?UngvR0JrRWd0UWEwZm44L1ovNG5hbjg2TlM1a0oxN1pKaXhzS3ZMY2l6Z1RK?= =?utf-8?Q?uIvSTa66FB2xhq2fKR36Wm1Xn?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: cde1c07f-48aa-4693-300a-08dbdc725209 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2023 13:39:36.5815 (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: gyc7wLHXnAqLXYohRYnjHBomm1OPs2VtgulWXP1m8jl6WncoXzh0TRq1SqzqS2Iz X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7192 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 11/3/2023 7:38 AM, Chengwen Feng wrote: > The mvneta_ifnames_get() function will save 'iface' value to ifnames, > it will out-of-bounds write if passed many iface pairs (e.g. > 'iface=xxx,iface=xxx,...'). > > Fixes: 4ccc8d770d3b ("net/mvneta: add PMD skeleton") > Cc: stable@dpdk.org > > Signed-off-by: Chengwen Feng > Acked-by: Ferruh Yigit