Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp789755ybg; Mon, 1 Jun 2020 14:39:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz357VlM5kXfXCec1bOtD0+Ugc0quNIERQOMAzL/ITRHbLwILScAC7S9VJez2az/O/voSrW X-Received: by 2002:a17:906:944c:: with SMTP id z12mr20745375ejx.472.1591047598140; Mon, 01 Jun 2020 14:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591047598; cv=none; d=google.com; s=arc-20160816; b=ls+je3FU/RWGQThlLZyV1JHXRBugEawkIKS4ACZWqO0GADIXH6/B1zIg31HxK2SjWl Hjtp7MhaU1Gx/YN1/CUPPAKPPz6nqqFzZERYy7vJnoAm95KeI5n6lcZapoz6ELA+2aBb bkNYKxRfc2fDz8Bxunnxp9lvISoja4xmnW3nNTlu+tiHx4uZIwDI8XD6EIuqUH97gv/1 5+r+PUBT/NGKaiwe1/3jjYoxYPtv3sCpR7RXagnc/YpmOCtNxaIpKduF/ZK0yeKvi5/D aU73kYGibl5m6yQVglhKjr+1ZhNr7ARvdyoklQYKK8ZOhhd3Dx2jAFZi5eiEuuXEkY+f dCXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uVZG2Doh1PmLAHVn6vdj6AlyPcscZ+MeO0l2qGEctuM=; b=cqWvQf+AZAUaJ+i5bNdXAnZmIZuG13rEfBSQ9zxfvngYa0rkKd43suUHWhRWIH4T9+ 3uocnrTL1bxYOJSaMf4LQJLMWtgFuZizdNx5DgNMCzhNuFDfSj9dWnjFh7aTWAgfXxy7 PutQLv6rDaIDKNG9raMDJgBpXJy45BS3mNMbMg3WENYN0rV0ILvgzc9YgbdAd6A+/qFk i8/aPIIU/hzR4bDLcAcJcICw9PLuuZAX5HIK+KXW2EW24/7W7rbwmvJ5L7nY9S4k1TkQ Lg8nyYd06FTCKJJMRW5O+fHvGv/mTkTbQXyF9xLMXUUEF2lGYpwcEzdOKHfyLPmpYSFe VuOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="US7Mg1/e"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dd12si464238ejb.59.2020.06.01.14.39.34; Mon, 01 Jun 2020 14:39:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="US7Mg1/e"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728742AbgFAVhd (ORCPT + 99 others); Mon, 1 Jun 2020 17:37:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbgFAVhd (ORCPT ); Mon, 1 Jun 2020 17:37:33 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0739AC061A0E; Mon, 1 Jun 2020 14:37:33 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id w15so4814434lfe.11; Mon, 01 Jun 2020 14:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uVZG2Doh1PmLAHVn6vdj6AlyPcscZ+MeO0l2qGEctuM=; b=US7Mg1/e++fEaTDMd+METlG/dC4cutb6FNfgoozF5Ue8ccMAgVKcCugdaNrzWb4VPU bcw6CB2NI7T+mD/zqugAeUqqXcgye0luQGh12pJtl2zldqnCioL4me5utiLPLXHxNUOm 4Rq5lq6+OP+zjv23VwtY2hZfZAM3wnjNNoff79nWA1onEjrYGtOQSE14r6MGYG6qXpE5 ILEZMy0+ahc7xSjEHeOGmabLhROPvUs8Dkg/AVUd/UCE6e3CWup2rLjKQu0HlyzsePeh 3Vct2/OHDp299WBD1lwfk12ws0I3wTJDYPdoMZLuaDcYBKKxXDIK/C59yY+Bpa50q2o9 Qvgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uVZG2Doh1PmLAHVn6vdj6AlyPcscZ+MeO0l2qGEctuM=; b=Moyqx00LNzhVyygK3d8XWP4ev2nUAa7HTe9NN9HoYPTWiRdfRlq8N0ZFOFXW6fc2PI TkzFDRA/smrP5Pu0+wKGAp7eqXHu3ziGJ4eR1DqxyFsqZ4P3suw7vk9xlF2ThfduD0Pg vkcEVuhubezhOVAdxrLosxiRJbkPGLkPjMBqo/V65TSz5f/TJnPQDF8BmJayd/E7F/ib hFqXSVCrVG9cAh6+2mJIgrD2zTkqPrMBJmLWE9VIYtTbyX799xPA8tekLZralhGnzbU9 ALyYjzfXaDYFsA4v7sxFm0f3ZmxIH7YU4KJ7Y2yLtTI6EzuSUbkOljWy9fZn4L09J20e weYQ== X-Gm-Message-State: AOAM531xGKsaLZo1NgVNHKrrM4KUBL4RNG17SXOjBIMzj7gjKv1e+GuZ bEJmPat2cHIgOkXM5AMWg2L8dqg8gDFCErvotDM= X-Received: by 2002:ac2:5f82:: with SMTP id r2mr11760068lfe.119.1591047451409; Mon, 01 Jun 2020 14:37:31 -0700 (PDT) MIME-Version: 1.0 References: <20200601162814.17426-1-efremov@linux.com> In-Reply-To: From: Alexei Starovoitov Date: Mon, 1 Jun 2020 14:37:20 -0700 Message-ID: Subject: Re: [PATCH] bpf: Change kvfree to kfree in generic_map_lookup_batch() To: Song Liu Cc: Denis Efremov , Alexei Starovoitov , Martin KaFai Lau , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 1, 2020 at 1:18 PM Song Liu wrote: > > On Mon, Jun 1, 2020 at 9:29 AM Denis Efremov wrote: > > > > buf_prevkey in generic_map_lookup_batch() is allocated with > > kmalloc(). It's safe to free it with kfree(). > > > > Signed-off-by: Denis Efremov > > Please add prefix "PATCH bpf" or "PATCH bpf-next" to indicate which > tree this should > apply to. This one looks more like for bpf-next, as current code still > works. For patches > to bpf-next, we should wait after the merge window. > > Also, maybe add: > > Fixes: cb4d03ab499d ("bpf: Add generic support for lookup batch op") > > Acked-by: Song Liu Applied to bpf-next. Thanks