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 827C745AF9; Thu, 10 Oct 2024 03:10:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0FD344029A; Thu, 10 Oct 2024 03:10:46 +0200 (CEST) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id 72CCE40156 for ; Thu, 10 Oct 2024 03:10:44 +0200 (CEST) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-71e0cd1f3b6so333584b3a.0 for ; Wed, 09 Oct 2024 18:10:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728522643; x=1729127443; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=N6aIClDyT2GIAHWaiT78SxwhaNUG3nFllyt8T3Z+4+k=; b=RdvgYKFpi6zA+bQ5jC0Ab1h8CftfOsQMwNIYCeiEh3wSgpnUvWrv7wTW2jSModR8e/ maG6eQHtb9pHD3Jrxup+ZJsMTR9UzX/DFlMfAh6KBOPDaIJLzoL5BjugDMVO6qUH7p63 QDvkhc96MvQ0oZGq2lL9OVziu2alTtPM/HD7owJ/jIPGvwiLiRY4ryetAErj5gbW1iwt pOjvpPBIy4MwUfsm5ifcbIcTsZI2GAGGAg+fUs12I1geTX3r0v7JCfhE5I0BVwfzmwI8 Lprk8MbF2JTRrJ456XJuZE8nUoJbxamayxFNOLdh9d1LSs8YZnl99gB/ILXUDl79hb// KgmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728522643; x=1729127443; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N6aIClDyT2GIAHWaiT78SxwhaNUG3nFllyt8T3Z+4+k=; b=KcQYYlm4/ka7sXfVCCU8tlAXYjVfWS5bJtzzfbNJtOEASukmpHkFdLhXmI0GN48T71 5x94e71xaxe1rQkY3V6iNkEpMPctUTP3sarcwtUHdiUwoZP9WF4d/+j47k48QpY5arf2 TIx1F4QsUF2ymiZv6SPMeH2JnUWu+/RuY8vNmUUCLAbsJaSWxKitn12Fi77gzjQXSE6A m0Jemm+2JhFxVBD1uHQx70rrSjufByqGyxLLfSt+tWB5c2yMlk/CCdwxOTqFVcA6ptiO p/e2o4QsbRzloBl7e++xKMVjNgQzLpVJ1jkg71eNLDpVBBB7HZCmgE2hUUUwpN8jluEZ JPBA== X-Forwarded-Encrypted: i=1; AJvYcCUfgB4PuxL6XP0TX7u6qJNhXSupLLP490EIcXrg6wrLS4K9n7Z8n6yGJe+RB5e4yhhnKkk=@dpdk.org X-Gm-Message-State: AOJu0YwWH7U0oKhG92MNpbjG4ZP4x91xsQY7f1cj2l06RBc1zNmaWwCb gzjZiJcmu0xLlGxdghyBDwaAIXGz3+vUTttin2WFLkv/blt754Fwpv15KSnCzPI= X-Google-Smtp-Source: AGHT+IE3ogfvnoeGcLXIjGk8z70i9EQkWluAUJHSG9d4L06Oa8JwR+mH4lPxGUZPc8Q4XgakKSWkfw== X-Received: by 2002:a05:6a20:b598:b0:1d8:ad79:e094 with SMTP id adf61e73a8af0-1d8ad79f38bmr2923232637.24.1728522643618; Wed, 09 Oct 2024 18:10:43 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2a9f8712sm51679b3a.86.2024.10.09.18.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 18:10:43 -0700 (PDT) Date: Wed, 9 Oct 2024 18:10:41 -0700 From: Stephen Hemminger To: Chengwen Feng Cc: , , , , Subject: Re: [PATCH v3] net/mvneta: fix possible out-of-bounds write Message-ID: <20241009181041.2bec5001@hermes.local> In-Reply-To: <20241010005326.17286-1-fengchengwen@huawei.com> References: <20241009022342.39152-1-fengchengwen@huawei.com> <20241010005326.17286-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Thu, 10 Oct 2024 00:53:26 +0000 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 Acked-by: Stephen Hemminger