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 BF33042609 for ; Tue, 19 Sep 2023 16:58:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B86F540649; Tue, 19 Sep 2023 16:58:15 +0200 (CEST) Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by mails.dpdk.org (Postfix) with ESMTP id 584AB402C5 for ; Tue, 19 Sep 2023 16:58:14 +0200 (CEST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-53fa455cd94so4167103a12.2 for ; Tue, 19 Sep 2023 07:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1695135493; x=1695740293; 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=okewhu0Seb/++WoWwQzwSVwsBHLCB1qyS5Cdd2wy8fk=; b=H6KDa/Gq6/2WJ+pZQOPRm2fhOGhoClL9v1IEPYuHMQX+dbgXFWpgXRZWf1fEQ8q5Af JfhUlsMttm/b0ykE+9NkO/4T3fIZZ/ccfu4QT+Dk0ErNiYbjYskwQQCmr1LCj+uturA+ e2RD6itSjrmxBIJPn55LbVpP2S2cGbeYvU/g9w2HdLORi6x9ZthENHBR1x8v9FG9hJEf HdAr2ah+CzRXCwFyXtOzqgZ/udj/rLiFbkO88/jH3WFv3C/ZvwLI4FWjkoZ7SoULRV6s lHFeFTf0j5EEElgKp2ry7QSM+34gBdpjmt84T0uPNH5y7Y2uA2CXUj6gfYP0UWVo4tgQ ZW4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695135493; x=1695740293; 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=okewhu0Seb/++WoWwQzwSVwsBHLCB1qyS5Cdd2wy8fk=; b=o/M9t2vPOwzc2IDrINmd2oWc1iURzcQa3Rf5Sk7LlA5yCIogfSl8CvcGOhwiLmgeGv zuogLdW0r7kXg8jYbBggNNMnKXWTktm/S4ABuVl5B6ItoTmaElyJJZoBlZL5FDp8mf1+ siZ0NA4W0G/yQDi+eYquzuHQRx5r3qCVPb/lkgsTcMyhXxpYCNXWA3DAnSH5BtEo7XPp G1+iN/QZv4AyM4nUJq3YMHIVMo5gTxWk83usJajtNJSynbRbs1y+kjuBt5wdP4h56zl8 FPaP6JrOsGMGQvDNJqqq83GXHgPhmgSm61gzUpu6qHE1mSr18DR/7TfKC9IyfZjpgLV4 ZmLg== X-Gm-Message-State: AOJu0YyNEa2z+U6wBBpwL+MdCnSEh/C6Gz6OqSJ6tAJYBBzVslNtgjxn zy19tu31eZJFbsBS3XMgHEah3w== X-Google-Smtp-Source: AGHT+IEv6TAKh/c/zGjQ4KfJns8XHeSfKM0zEIfU/MQdcinwYuYesRTkPlgevuL7dsDPdtEDcfLWUA== X-Received: by 2002:a05:6a20:1608:b0:15a:540b:bd66 with SMTP id l8-20020a056a20160800b0015a540bbd66mr11171378pzj.44.1695135493406; Tue, 19 Sep 2023 07:58:13 -0700 (PDT) Received: from hermes.local (204-195-112-131.wavecable.com. [204.195.112.131]) by smtp.gmail.com with ESMTPSA id y13-20020aa7854d000000b0068fcc7f6b00sm1072832pfn.74.2023.09.19.07.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 07:58:13 -0700 (PDT) Date: Tue, 19 Sep 2023 07:58:11 -0700 From: Stephen Hemminger To: Akhil Goyal Cc: , , Subject: Re: [PATCH] test/security: fix buffer leaks in error path Message-ID: <20230919075811.0f70b113@hermes.local> In-Reply-To: <20230822173316.465078-1-gakhil@marvell.com> References: <20230822173316.465078-1-gakhil@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Tue, 22 Aug 2023 23:03:16 +0530 Akhil Goyal wrote: > diff --git a/app/test/test_security_inline_macsec.c b/app/test/test_security_inline_macsec.c > index 20670fe5d2..8b57bc51fb 100644 > --- a/app/test/test_security_inline_macsec.c > +++ b/app/test/test_security_inline_macsec.c > @@ -837,6 +837,11 @@ test_macsec_event_callback(uint16_t port_id, enum rte_eth_event_type type, > return 0; > } > > +#define FREE_PKTS(j, m) { \ > + while (j--) \ > + rte_pktmbuf_free(m[j]); \ > +} > + This is just a slower version of rte_pktmbuf_free_bulk!