Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp746565ybg; Mon, 1 Jun 2020 13:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNMYfYWweFLp+3GBhwjakkzZEvfdt0NsFEI08FNuWr099TeXqFIBQkta5XS6uPIuAh6R6N X-Received: by 2002:a17:906:b04b:: with SMTP id bj11mr16291924ejb.516.1591042833334; Mon, 01 Jun 2020 13:20:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591042833; cv=none; d=google.com; s=arc-20160816; b=QUZXkbDzeQ+GINYvDDyhIeURGorrPf+x/rZeTOSndRC1Rt+VAD8dQrojVRKjhnlB5D LrIDenjMrkayGzhq6pmxPx5tBWsz33mbutQuSfGUZwQtz9Fv1goovY5EvLTYwvSppyZx DzkZ/xOgo9VqocZC8AoQh8Ep9913xhiQ0kg1o1HYt18imTs23sNkA5LwAENzpVU/WGJS zuqCp0uwMM9Jwh2pkuCwXotSRMlQjvzMEr2AWn+EPEmsXGLlLgg9ZM/un7/nmtqrA/LT UvImNxjGvt69tQ/QrYTF4/TUyv2ZLCd10Ax3Wt3R7rKYB5Vlc+xKFh5KxLbju0HP2kXm Kd9A== 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=gTxHNUn+c76zemOeMmtcdzx9uVaCHcJ5E/m8Bh3yCOI=; b=PqNnv2qB2/C5IReWbTw7NELqU3y0TwnJiM/0ZzVhgu3d2JNhciy/LPYV0jsYQSOOXk tMbOj+pUkNtriMGQm41Hne6mQyJZuUw+SNLxpL+x9q+RmtDXcugNd/rRheldZh2E+KM+ zwfphxzVT32lztWEx3vl1rfeRa+rsUFWb/0D/xTS4wXi7jcsrhuGlae6mPk7NEvB9J8m BorteIDwm1v0sG0o2kVehBGVXMZLDj3J7dKwBS/LwNNxYR8KTy3shaGJfIgR/+CKgWKF 0704EMUBOjSjEkpFiJhNYvGd1+/YWoKpgZREu+ED2+trlqwm9LXwtDsjlYACrlAR/n9r lcJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tr0RQWR6; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i13si287738ejc.659.2020.06.01.13.20.08; Mon, 01 Jun 2020 13:20:33 -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=@kernel.org header.s=default header.b=tr0RQWR6; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728467AbgFAUSI (ORCPT + 99 others); Mon, 1 Jun 2020 16:18:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:50398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727996AbgFAUSH (ORCPT ); Mon, 1 Jun 2020 16:18:07 -0400 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 693312076B; Mon, 1 Jun 2020 20:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591042686; bh=gTxHNUn+c76zemOeMmtcdzx9uVaCHcJ5E/m8Bh3yCOI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=tr0RQWR6oS6AssPXqfmeq9xuvj7d9qQdiRkCMfNRT8f863omNQQQ2qQyRZ8vm7t1D rch1yJSLWyZrBmgTyZjcbBNVWJ7hipC9qOlpLIdgK/DkatV8GES6dxiLZJ/hTmhRI1 rqj3JlCgX/JZtZLpuG+rsFrE9Ii/CzYzflWPHbuk= Received: by mail-lj1-f182.google.com with SMTP id m18so9788390ljo.5; Mon, 01 Jun 2020 13:18:06 -0700 (PDT) X-Gm-Message-State: AOAM530bHzQY8XD2MiWIKcVsPjzAJMSHNk5FXCECBMQdyyu/vynKu7r5 iEBZvMRaa8Xy9QR6C6/XmdZCyUoAEpGAQ6XQxJs= X-Received: by 2002:a2e:9115:: with SMTP id m21mr763659ljg.350.1591042684664; Mon, 01 Jun 2020 13:18:04 -0700 (PDT) MIME-Version: 1.0 References: <20200601162814.17426-1-efremov@linux.com> In-Reply-To: <20200601162814.17426-1-efremov@linux.com> From: Song Liu Date: Mon, 1 Jun 2020 13:17:53 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] bpf: Change kvfree to kfree in generic_map_lookup_batch() To: Denis Efremov Cc: 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 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 Thanks, Song