From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBA52C433DF for ; Thu, 28 May 2020 13:53:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A186E2084C for ; Thu, 28 May 2020 13:53:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390810AbgE1NxK (ORCPT ); Thu, 28 May 2020 09:53:10 -0400 Received: from www62.your-server.de ([213.133.104.62]:55736 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390804AbgE1NxH (ORCPT ); Thu, 28 May 2020 09:53:07 -0400 Received: from 75.57.196.178.dynamic.wline.res.cust.swisscom.ch ([178.196.57.75] helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1jeIxo-0003jE-DN; Thu, 28 May 2020 15:52:52 +0200 Date: Thu, 28 May 2020 15:52:51 +0200 From: Daniel Borkmann To: Eelco Chaudron Cc: Andrii Nakryiko , bpf , "David S. Miller" , Networking , Alexei Starovoitov , Martin Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= Subject: Re: [PATCH bpf-next] libbpf: fix perf_buffer__free() API for sparse allocs Message-ID: <20200528135251.GA24961@pc-9.home> References: <159056888305.330763.9684536967379110349.stgit@ebuild> <54F16472-92CB-4A18-BC7D-0DB8741496E4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54F16472-92CB-4A18-BC7D-0DB8741496E4@redhat.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.102.2/25826/Thu May 28 14:33:30 2020) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, May 28, 2020 at 09:24:58AM +0200, Eelco Chaudron wrote: > On 27 May 2020, at 19:58, Andrii Nakryiko wrote: > > On Wed, May 27, 2020 at 1:42 AM Eelco Chaudron > > wrote: > > > > > > In case the cpu_bufs are sparsely allocated they are not > > > all free'ed. These changes will fix this. > > > > > > Signed-off-by: Eelco Chaudron > > > --- > > > > Thanks a lot! > > > > You forgot: > > > > Fixes: fb84b8224655 ("libbpf: add perf buffer API") > > Thanks, I forgot that :( Daniel do you want me to send a v2, or will you > add it when you apply it? No worries, added it. Applied to bpf-next, thanks!