Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3321275pxf; Mon, 15 Mar 2021 07:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDAz7/m5snsY4Xn65LCSOZ6UIz5zQnaP387/wC1QY5Ysj8jVDHfxz17UbDpCKRwu66sPmF X-Received: by 2002:a17:906:b2d6:: with SMTP id cf22mr23667310ejb.321.1615817182791; Mon, 15 Mar 2021 07:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615817182; cv=none; d=google.com; s=arc-20160816; b=nDRKiImk1cmixCCr9VRhiTQI6RTpw16qaLZNyQeYGOrwatP4OsXi/6B38rlxMTAgyC 1uZhe51bAuEurLcG27kQUUV6tDJ8SPtjcVYPbklMayOKYlhmSmQ1V5+7ymQaZyp7Ot9p KooH4uZQhnudZ/UC6ws+YZZUB0mf1NJLvA4nhFpvsrwckDPf1Y7gEQk8oKbfro+SjW2K m0gkBgVIPzrpTPm94DRUNzaB1DYdzUPK9ymoONt9UV2mP47bFML5HWyiYCaipip4K0b5 OhzHMWS61UtmNpIPVTzoT5uIKUV1ic78C2IMpuJFsyirWYnnbD8LznRg2Hzg7itNVmMS NPzg== 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=MAIXyPD51PLcedqipI3fxbvMAcp1NroWSvWBxpUseL8=; b=ghzl2PNs8qeA0KWPyePjyYWc9ZWLjQLlnhnkrhJjciltYxqfFgxzwvGz6uHH+7R1q2 ZiRKF2ER2LsBt3kxwMlZFl9+9OXnqOdHfsDzw9auviCzA6zyLbHmDu9ZXUOqG0z0S2iu XTHukAqrb6Hw+OuiVlMxp7y0jgpESYNPpoH7zS36YCu1o+ZPNQAlwi7735iWbI5qQyyU RWcd4cc//xUJBpsI7wmDVfJRt+zoYSltR7zNeD+2NK88emTlgDiUqd6RPzFj5jJ/fyTy LNupW7vFRaWsX9GL9g6Wk3P8nhP1pAWgHi90lRzKc+9Fl9iCCmqLskdWV1754GMzuMAv PvSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CZJzyrB4; 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 i15si11472011ejv.550.2021.03.15.07.06.00; Mon, 15 Mar 2021 07:06:22 -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=CZJzyrB4; 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 S234682AbhCOOEt (ORCPT + 99 others); Mon, 15 Mar 2021 10:04:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:34792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231926AbhCON5T (ORCPT ); Mon, 15 Mar 2021 09:57:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0307264F00; Mon, 15 Mar 2021 13:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816639; bh=fJc62Oz+a/Fiquv8Q8uwC8LC00ejr5byc32G7xfch1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CZJzyrB4z8SPPRJRSlu7M0PjGrn5/YVNxxyN3B6gyxAwox5dlXuSxuWkuXBuQqUef HmyFHRTgOqpxvG0nqclhwqVLjVEzFcV77NYEKfPJUVebgnUGghdVZqF7K0MooxIgrT oWEX5OHpDyL334rQUzYj2O7S6z7G1FN5WdhqxWik= 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.4 019/168] samples, bpf: Add missing munmap in xdpsock Date: Mon, 15 Mar 2021 14:54:11 +0100 Message-Id: <20210315135550.976065939@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 @@ -783,5 +783,7 @@ int main(int argc, char **argv) else l2fwd_all(); + munmap(bufs, NUM_FRAMES * opt_xsk_frame_size); + return 0; }