Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3320192pxf; Mon, 15 Mar 2021 07:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg9Rg/7f0GWozJ2KOiJRyOSEtulzXknfQxYr5QtTiRry7QP58EEd+7hyEDLsYhzajviJos X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr30238417edb.11.1615817112387; Mon, 15 Mar 2021 07:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615817112; cv=none; d=google.com; s=arc-20160816; b=v15GgaFYE2d28d/9tcSZekNTOAWG0LCZzLDvfqSQ0j/bDRqajj8RZhakkXHhHEViFP 6C8gisv6QblzSO0bDMcF4j6dbMG/OhJOJ/GdY8jdCOlR+Ma13zpLgP4geig97lR4Xhni IWIe24RF2tS5o8mekxlHkzuALXmPjr0LODMh5wiAQpLQYGTZdQMJnLFuTEwPCR/40zPD kKrYcNRo7H1qcm/gqzFZjqBHrKdMWAfIWLGPYtfNJUrK/brW9JSWcBvsdpTyq7FbbqSu jEvcda8h8JlYmwdIDlk84KdvZta0LhwZg1v/pSmJQgHrPWIkR7i5wECaOmjlitOaHQOI QZ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rqwdlRX47F/nTVSPiaW3IUo5Tmtobp9prchEL42KaRE=; b=dgnPtJfDLHYjltRNkkx4X5+mD5QesDJ2icYjPOifaR9Z+Mj5OZ9FwGUvfGgyPwvZR5 Q8wnolE67HJR7Gf9NH1ZDgk2DRy8OWIV2idvE+4nGgbQ+0/cToRlsozSvcEz6ujuHu07 hRudy6MZzBatqVOjPSdKkHCnbOGFPMOwC4Wf+QX9u7bLAEgKHqHb7is2Gxz2dRCLKJGS Py0p0zrg0QwKNxsCdRY6iSnswjMVwW1IYNfNZQh+EGeErXJw+6ACfxBApnELbQ6Ow3o2 +BkJtn5v+cU4dt+rufgKvx1trBTLRuf3jC0B2NF58ALc/eydSobOko3PVeUbovie+B5n 6N2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sR4uHxg7; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy11si11160573ejb.175.2021.03.15.07.04.48; Mon, 15 Mar 2021 07:05:12 -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=@linuxfoundation.org header.s=korg header.b=sR4uHxg7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234475AbhCOODZ (ORCPT + 99 others); Mon, 15 Mar 2021 10:03:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:34798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231553AbhCON5O (ORCPT ); Mon, 15 Mar 2021 09:57:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F72064EED; Mon, 15 Mar 2021 13:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816633; bh=Y90632oKp6pme6AICtcjNYorJnRMU5a7uKrSrXxBsIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sR4uHxg7ddNi1Ig8Xd9AachhFuLnT/3VhbUP5aSQoENjjARD3xSXi4nvap7B8L2uN cvU1S/5xMyB7z+4x8GlFm7KzXO9hA7dwMv1eN5aOQFKpN/cXV0ay6otVI3VwPEdJ5E gKM+4iYro1OMFiFDqU2iKLvp6ofq3DfjM8teSxt8= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maciej Fijalkowski , Daniel Borkmann , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= Subject: [PATCH 5.11 032/306] samples, bpf: Add missing munmap in xdpsock Date: Mon, 15 Mar 2021 14:51:35 +0100 Message-Id: <20210315135508.714503227@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Maciej Fijalkowski commit 6bc6699881012b5bd5d49fa861a69a37fc01b49c upstream. We mmap the umem region, but we never munmap it. Add the missing call at the end of the cleanup. Fixes: 3945b37a975d ("samples/bpf: use hugepages in xdpsock app") Signed-off-by: Maciej Fijalkowski Signed-off-by: Daniel Borkmann Acked-by: Björn Töpel Link: https://lore.kernel.org/bpf/20210303185636.18070-3-maciej.fijalkowski@intel.com Signed-off-by: Greg Kroah-Hartman --- samples/bpf/xdpsock_user.c | 2 ++ 1 file changed, 2 insertions(+) --- a/samples/bpf/xdpsock_user.c +++ b/samples/bpf/xdpsock_user.c @@ -1699,5 +1699,7 @@ int main(int argc, char **argv) xdpsock_cleanup(); + munmap(bufs, NUM_FRAMES * opt_xsk_frame_size); + return 0; }