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 58E9CA0548 for ; Thu, 4 Nov 2021 11:09:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 486DF40E5A; Thu, 4 Nov 2021 11:09:32 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 08D9640E5A for ; Thu, 4 Nov 2021 11:09:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636020570; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8m5nVsxR4PzsGkKLUTnD79Veb0JmTkKmzAulNi3uCbE=; b=K3YcJbUdS2tSJn2ni55yZWibQutBrYCR2XgrDbKN10Ne3pJefuMgKXjtefUIz8IE9MxCjY 4LCv9QkfIMBES3slHh+JWMSm0TaLajtobiP6qCe0Q+u/65JNvRg/VSopnT352YEcknRFfb SpiZtAjBIGGip9dZfTFpOrPPfRDI3Fc= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-139-9MkIy8hEPGWGB1M7YiqPIA-1; Thu, 04 Nov 2021 06:09:29 -0400 X-MC-Unique: 9MkIy8hEPGWGB1M7YiqPIA-1 Received: by mail-lf1-f69.google.com with SMTP id x17-20020a0565123f9100b003ff593b7c65so1758094lfa.12 for ; Thu, 04 Nov 2021 03:09:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8m5nVsxR4PzsGkKLUTnD79Veb0JmTkKmzAulNi3uCbE=; b=fcYXg8fHJnjGsOvHTd9Z2YJB1lXkO1oDAsSX5Ke4b0AYBwJ1MOvZKP0OOBExnj+oPR DUdmSW8iYSs3J3ctXJAQkOQXOrXuoXgQY23yqCqtZo49P+CdiWaF+h/8YYvkofcB3Wib YIrJMzXEZr0th4dQqKvWrGXRoxL3yrUHirRqRm7rixJNPbOu8K+6YV6wRrBNQrOSn0Od +v4g6h8hk2iNX5cp39fMAEmyCy0AkAMx4Uq17hC9N5qdfsbtlFgtpFQT85KpYs3oKloZ whb+s22tU6P95JiovAqqrsnjWF7nqVToqqfgx9ldNnw6DWQ0MHTnF498a7pAJsouASbA Y05g== X-Gm-Message-State: AOAM530O/J/SacqE9vVWwdn4rJ0AtFIwjSSHcPoiC0TPoRF9lRVrilTS HTy7BLrjWNz/TdJ6QyproQifhjMlpGdZzYTFO0u6BQb2KY6HglRUgftJ2kwShbnvHJ6zhSAUZeT VHhGPPD3IZTvIzlZYeq0kAr8= X-Received: by 2002:a05:6512:3e11:: with SMTP id i17mr44958044lfv.560.1636020567940; Thu, 04 Nov 2021 03:09:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEEjvESDR5Pr1zoSlY62TwovfsD4ECRDu2ohOC4WNFKb27fnhr2Phix0DDnZeTVPkhWX7q7jseLAx3/b/M6UI= X-Received: by 2002:a05:6512:3e11:: with SMTP id i17mr44958029lfv.560.1636020567751; Thu, 04 Nov 2021 03:09:27 -0700 (PDT) MIME-Version: 1.0 References: <20211029121544.13298-1-olivier.matz@6wind.com> In-Reply-To: From: David Marchand Date: Thu, 4 Nov 2021 11:09:16 +0100 Message-ID: To: Olivier Matz Cc: dev , Lavanya Govindarajan , Reshma Pattan , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH] test/mbuf: fix access to freed memory 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 Sender: "stable" On Wed, Nov 3, 2021 at 4:00 PM David Marchand wrote: > On Fri, Oct 29, 2021 at 2:16 PM Olivier Matz wrote: > > > > Seen by ASan. > > > > In the external buffer mbuf test, we check that the buffer is freed > > by checking that its refcount is 0. This is not a valid condition, > > because it accesses to an already freed area. > > > > Fix this by setting a boolean flag in the callback when rte_free() > > is actually called, and check this flag instead. > > > > Bugzilla ID: 867 > > Fixes: 7b295dceea07 ("test/mbuf: add unit test cases") > > Cc: stable@dpdk.org > > > > Reported-by: David Marchand > > Signed-off-by: Olivier Matz > Reviewed-by: David Marchand Applied, thanks. -- David Marchand