Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3323338pxf; Mon, 15 Mar 2021 07:08:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygTHjxUVvCOfUvaegaer59I3/gEBcgccIKZqOqPRj5A/0ZoPrI/+8ys2h8iq3nicieDFT5 X-Received: by 2002:a17:906:39cf:: with SMTP id i15mr23980016eje.534.1615817304653; Mon, 15 Mar 2021 07:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615817304; cv=none; d=google.com; s=arc-20160816; b=DgqH+CTQBjhyATYevUOlrMoxr9X3yv1u/P4CrHxvvkVuRGuqVSdzvxjFdooy7Hj4vZ sGN1a8yiKov8yjvfTcSq9ezE/FjizZizNp07PNxri2KwKNJ6vcjDvtxj+p6ISnGNHRMZ RT9uSKKIxoDV44mMsZIxdckD9qB7WjyVmZe3uE7q05hdnn7cvdoLKDFhasIHINXUjwO4 PF5vBZ/EFK+0mKPcFKBT3jjTlZxoLH+0EQkqxST6SZshg0f4Poxee+oJq1tXf02kqvhS 0NLr5GZmjrOBSPyhd3GyyeL09uSCTEoh5PbZ0hDIRch/un21Z7g69X+jOT5DWfP+kVK2 5GaA== 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=DALn96I/tTP44g5jLhy3FrSj5Y1yqQluY/VOxkzR5e8=; b=Qh0t6ve1e4innl4czglP3rI/WYZCNLNpc1Cn+cTOzwbRQsH9+OfcTMssP896wPA6L4 1p2FQ8ch+wgsY5+y9u+1LXkyQWMKbW+hP61cH0FtrCkGfPxj83v3Hqc0NP6abFvVFyOr COFA7S7bGdcz6sh+k4Qu74ys7UMwXxaSUm9pj7dXeSGjBRQXKvT4y4cxIZgaeJyxzz8d J6cY7kYJXZ4lrhe1TpGttzOSWbj7iOu55xfZ9Esa54b0H8hPJ2CzeWUbxvRlO4+sBHQf 6FW3U/vEFVtStz+w5fYo4MykKkMBSSfKKb9vvU1wu2G7/js7fQTn1bHsLFTnPVdiz8uz fyow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ufva10Tr; 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 p14si11627277edq.556.2021.03.15.07.08.01; Mon, 15 Mar 2021 07:08:24 -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=ufva10Tr; 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 S234447AbhCOOEJ (ORCPT + 99 others); Mon, 15 Mar 2021 10:04:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:34198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230440AbhCON5P (ORCPT ); Mon, 15 Mar 2021 09:57:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5B9164EFD; Mon, 15 Mar 2021 13:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816635; bh=evrf6oqzd8CNxRcF1PGp1PXD0H2LYHfWSV6wHhLQ3DY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ufva10Trf5Qx1b9Qn1LjY0L7oqBDX+w9P1VXxfwWiLHoD6VkImdkmc0DlLOBZdQkw srYuMw480X/6mrvtczQTKKwH/lsHuRsNUKx2MTP2dzleS6UWEnsxd1fpvh+BewdeFb IeDGoA5w/sgAkHO2MKBXFekITNAjNR/2afvpCM6Q= 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.10 025/290] samples, bpf: Add missing munmap in xdpsock Date: Mon, 15 Mar 2021 14:51:58 +0100 Message-Id: <20210315135542.785343842@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@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 @@ -1543,5 +1543,7 @@ int main(int argc, char **argv) xdpsock_cleanup(); + munmap(bufs, NUM_FRAMES * opt_xsk_frame_size); + return 0; }