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 DE9AA45E92; Fri, 13 Dec 2024 18:15:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACF904068E; Fri, 13 Dec 2024 18:15:44 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id 42716400D5 for ; Fri, 13 Dec 2024 18:15:43 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7ea8de14848so1315429a12.2 for ; Fri, 13 Dec 2024 09:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1734110142; x=1734714942; 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=483QnGrsf/LMYenxq05L7UDdnmNRXX0lBaDiSfwQHqQ=; b=V/DxFnFpLFQfujlVee9d/QqCcsmWp/6lpaLy1MPy3S913+LDjfhssCRbOHH97gMjZN 5WGoV11b76ktW9m9CzoLYhzB0MIh5IgY5C70V0sonWCuZ6LCSosNDzCTB9B059kWbA+F B29mu8VwULSJMq62W9DOz04QRdognXpX92IWkWJTwVTE4S5sBRJ74QGyaMaHGd0cCoqX /MSIPJ38BkdpmrrzNj3O0fr/WZVimfy723Mr8ILPQkiLfyyz07yGas1iha3o62tOqEjt yPwJV9hTJRHbdVPqqruKVNuCVi5CGNNm/8InO/FgkSZXAXu8JIYxMUVcA5/dCs6cMgLS ActQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734110142; x=1734714942; 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=483QnGrsf/LMYenxq05L7UDdnmNRXX0lBaDiSfwQHqQ=; b=XcAFNBu4vFTSJlW9R+Dx6X7T2yC0iMEf5n9WdidapwyC7HsjxyjJUPXXfX1SIcqfzV qlx0ae6Da15g1ZkYcJVe81arlxb9veYU3InWhUoAQzxFWu6+AC2zrqnaBN6iirK5OM4T vUoDRlfSH1IKBNdrfWJL0p20ETyeckyqVproCZjAbxFKcfOFcctqXc8wU4Q1FSiK3vNO pu8YN0Dg6whVMv7riQSrQptM9OU7uhS8Gx77Ef2+Xav30n3Rk5M3IXr1xf8MbFHpyoZQ KzCwF1/vX+30oFjFV3VBTephsoJjklhGhcSpm1j39Sw2X6A9eqjGiQaEtJfZPfQ57fxE 04qA== X-Forwarded-Encrypted: i=1; AJvYcCWaYW1MIDVQ0eNAG7aqvDLt3BDl/PzCNKODqX6j7jNIHZu/r0FRygNK3f6wmyynGZw9vKg=@dpdk.org X-Gm-Message-State: AOJu0Ywf2gbeZm51Vtqj5W8tyjd4tG2kUd6eI0HQeWBWRqXVci4Ktw6j gCZiOEfEZStgh1N2FNGlg+qAgzh53/u5/qBY4peHfkBg2okkg7J9zsQmKRgbeM8= X-Gm-Gg: ASbGncsyHQy6r8q1zwI8V1tihki3QcdzPIDAmGCmMKcZh+6y5+MHIagTGWlVvLliAd5 8fKpQFbBHbSH2lqGylACfndumfo9wm4mLmBtxLEA3HpuRbQnzT4R7OUcuaIk5bbmX64BYVAaMGd N/5b7cdgxs7E8SsJpgxFu274uy4a8xeHmKZTnA+4LqX7SW5qtTkPQCfuAVrcc17v6O0vlTRiCi2 88AP2d2jkCwb8iDRzevUN7eIzSSkjfVLs9ULcU8CpK2l2tgPJmXguI3NGKAWnRDo+JdvHIBkwaw Ef0WaYgXTBwBSdB2A/nGnPr7APrm+sJblA== X-Google-Smtp-Source: AGHT+IEz5EkzmiSRwlHXoA1WHxsgHCjaGy14C8YKuHW7N07OjDxvQvZj4lxfMJM0bS6RqLYtqtKvbQ== X-Received: by 2002:a17:90b:53d0:b0:2ea:a9ac:eee1 with SMTP id 98e67ed59e1d1-2f28fb5fd68mr5664134a91.10.1734110142142; Fri, 13 Dec 2024 09:15:42 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fd545ed7eesm8015407a12.86.2024.12.13.09.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 09:15:41 -0800 (PST) Date: Fri, 13 Dec 2024 09:15:40 -0800 From: Stephen Hemminger To: Andre Muezerie Cc: bruce.richardson@intel.com, dev@dpdk.org, vladimir.medvedkin@intel.com Subject: Re: [PATCH v2] app/test: fix stack overflow in lpm6_perf_autotest Message-ID: <20241213091540.68294d17@hermes.local> In-Reply-To: <1734109702-3647-1-git-send-email-andremue@linux.microsoft.com> References: <1734057571-20367-1-git-send-email-andremue@linux.microsoft.com> <1734109702-3647-1-git-send-email-andremue@linux.microsoft.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 Fri, 13 Dec 2024 09:08:22 -0800 Andre Muezerie wrote: > + struct rte_ipv6_addr *ip_batch = > + (struct rte_ipv6_addr *)rte_malloc("ip_batch", > + sizeof(struct rte_ipv6_addr) * NUM_IPS_ENTRIES, 0 Cast is not needed here. If you are going to allocate an array, use calloc() or rte_calloc()