Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp849727ybi; Fri, 12 Jul 2019 05:40:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHxyYdzBryauQvNqu3Wqp/jzH6vts3CSyvHpgbSN2JfcnYuHxYEQqiEIT0D4/pSWFUWN4L X-Received: by 2002:a17:90a:d593:: with SMTP id v19mr11568853pju.1.1562935258738; Fri, 12 Jul 2019 05:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935258; cv=none; d=google.com; s=arc-20160816; b=gnwwBl6DPHq65cDc9POUAIKUuzUYAvFd80ih39norrNiIWRETlU5+121MxWyF42niR h+tn1de/G5xmZ958cHewiGn+FS2eGjVLPV674tL82R0JzjOt7R8HFg+qnm2zP9QStoln YqeD0MWKZZMpv1Pr2pFwUe8Biz+sP4FPdACYsdneCIyeZ59M6n2NHzO4H5DdEmlshddn kRNU8FiU00Trb++oEgd4SEIdPnF/0qO1GqVfRR8+PhdedT6Gg5XlavUjzHrBfy6lYLCE 0Mi6YByKTxDf35J7dlhAIA1DPQFajEsKx7kKKd6TWpF5bd0MbhIZY14gcW3QHRPJlTPm WvEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S8MUzZbA50mFfHMSC2ykkugPHAFLFMaxXWY82t6vbTA=; b=g693pNR4FG3ORqhXXD3m/btObhWXwO+6lpWNRL4/DgE+WjQkzlOGd6KwYmbDVZPBwJ M0YbPmI+nbB87WloTOL/HJ6cbMRtv3THWuSIPkiyUxAg9dJo0i0r9sc6KZheMahhPaqc WBvBvgKKWod73WLuUJszf9Baw9y7MrlqJCsA66FUDKg7SNtayr3pD8lEB0o5sbs29G/F 5jYMpSwWJxaizjV727CNXv8JIWxpn2pPO6q0N4iJDT4iqrpDUIh6yqe7TjCZunOjxIhe ATHp6JJLoU5BMBQL7UttmAMzdMzrgbRoyNyx7aWVIhXzsAVdOmtZq+5ByKhXvrf6Y9Dm 61Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FWcEdRjf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si12066515pjb.1.2019.07.12.05.40.43; Fri, 12 Jul 2019 05:40:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FWcEdRjf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727732AbfGLM1z (ORCPT + 99 others); Fri, 12 Jul 2019 08:27:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:41056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728694AbfGLM1w (ORCPT ); Fri, 12 Jul 2019 08:27:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77C8D2084B; Fri, 12 Jul 2019 12:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934472; bh=IK2zhGaF/SO+co1gOpELFAiaA54IetBWtJdanPhix90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FWcEdRjfFWYy1lVcg4xY0XkcdxVhOS9c4NyaZodiX9Oi6EdaqewWyX24/b2g/Jn84 pkbX5kM92567Lfe9uAU9jSs1hiUbWPs668GrbEU99vPp/8NTTnD4vIFofWBwuwO7Wq TBxUAe5o5niTaN21TXUNbaOK9uSdijSMXLaO/agw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Toshiaki Makita , Jesper Dangaard Brouer , Daniel Borkmann , Sasha Levin Subject: [PATCH 5.1 065/138] bpf, devmap: Add missing bulk queue free Date: Fri, 12 Jul 2019 14:18:49 +0200 Message-Id: <20190712121631.168716634@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit edabf4d9dd905acd60048ea1579943801e3a4876 ] dev_map_free() forgot to free bulk queue when freeing its entries. Fixes: 5d053f9da431 ("bpf: devmap prepare xdp frames for bulking") Signed-off-by: Toshiaki Makita Acked-by: Jesper Dangaard Brouer Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin --- kernel/bpf/devmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index e001fb1a96b1..a126d95d12de 100644 --- a/kernel/bpf/devmap.c +++ b/kernel/bpf/devmap.c @@ -186,6 +186,7 @@ static void dev_map_free(struct bpf_map *map) if (!dev) continue; + free_percpu(dev->bulkq); dev_put(dev->dev); kfree(dev); } -- 2.20.1