Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp46920ybg; Mon, 27 Jul 2020 23:01:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgaQbJqsmaXXHsSQlYxJNaGkxR4A6VDqmyAHxhcUgEgPqp9hlQuZnSOXoG6MtN+mhLZgCb X-Received: by 2002:a50:cf09:: with SMTP id c9mr25250403edk.90.1595916095241; Mon, 27 Jul 2020 23:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595916095; cv=none; d=google.com; s=arc-20160816; b=R4X/EY82hZFTEJwkZzBRFNJIwIz/JlLR9+g8mKgw4RL5RJ6KS9qKvVTKLlrnfGBwcn krLPRWP8ebfPyPrhxV++ZdKbTRw5MPVl6YsxRWvnGOnb7Ua0LnwZBzPo9hVhwc7sqIUC DFYHI3jLyoixPckDIfTPPHWKZXF3EgUVk/v8T1rnMHnn1g63YFdYyT1aYLUMGOVlzB/w OEUaSpZRHw95aFZj7GZgR+hK/3GTfut7+G2cB68T5iQ8DjD05sdQqSHtTELohRQgjc1Z 4gZQidAuH2WJl635s2ChmGpAxW1ehKIp7C6pq6rvLWNCXva/Un0a36v0rOpTqXH4XMD4 rihg== 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=BE6SS10lfsQtZlsbH6eTAUSCgCje4KornwWwzZylYrA=; b=kRtyj56cgmY7ewmRrjeqG6JqIyCGTV5E2ZoItJuubR3nX2v/pN1Eyv1BpqtMAcRu6J Ctq9cDnyQDAWYIdZMoEXo1WCmfJWzvwaWvK/lFZdsv77dSP0hlcqBSqR6s3xiw92PGXp GBblQ96pt0n1cmAnDiWyiENddamHROWTB06C0pyK65O7uLlP5q7fnLEcRRFV069yHZZO 9WZOBcfmXs22ZN7ILS+9O5KZxgRfqc/KrM0qqqG9zGTeiX8wL+Flpg9AcsxagTQBPeHM aXToTgOy65zRkPFwDvEQ54rGp2nFH9HA8BC4bfLScMm6CfB6hkh1evZDo40P3Il+t6Si peLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f2yGdb0M; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si6982338ejt.197.2020.07.27.23.01.11; Mon, 27 Jul 2020 23:01:35 -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=@gmail.com header.s=20161025 header.b=f2yGdb0M; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727085AbgG1GAu (ORCPT + 99 others); Tue, 28 Jul 2020 02:00:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbgG1GAt (ORCPT ); Tue, 28 Jul 2020 02:00:49 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1CDC061794; Mon, 27 Jul 2020 23:00:49 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id s15so4197461qvv.7; Mon, 27 Jul 2020 23:00:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BE6SS10lfsQtZlsbH6eTAUSCgCje4KornwWwzZylYrA=; b=f2yGdb0MIYCqjngaPYjPgclMP3jXg1zdeo8u9Xo80GhMCISW4/fasrYBqXbTfR/3Ui 2fn1EAWRQUJ6Qy6JBMfUM5NfOGF40XCV6NFkk5pO4l4w7+VMLIRE5TwtRIfsQSAt86N5 7vbty2J3uyqxNy/aE6c7HZBCUlIpU6ozOOTa3K5/6ObeRZBvZeHkIgU1/VfdNP3sxXXs TbjDIhCT6vhy+IHPKVxnxFo0AoPokMqWvzmAkeMdvf8yaYmR895w34knaIoMMdgTOWAC LwKZ+IaKkgs/t7Fgl0Z2/g80ByiQvb5k6AfP9QueGn8Vpwp4hzGxZjQqsrvhTRDdOCZt Mi+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BE6SS10lfsQtZlsbH6eTAUSCgCje4KornwWwzZylYrA=; b=sjEnXaBz+JbG7g3GHFyDX8d02bmibr1gVQjl5IVhZ+k7NgBlNM4s7Vr5zMLlOAPJq+ aVcJ48Gc5jvmNj0hHvgQ64ZQwq62CQSIhSi1HZ/tvPALwUart6SPAakho7a5XvQMJpTa TWwUJ+yG9vIHwB1uXpbwf6M7TbL4dxAvI+xalWRlhy2shejF6XGwyUIAHVQDeB9KCNLn o6cGLOdSnyzuffnsbRxr0SyzoRX3DDYCfo/gLaoUJuV6wUQcTJW6hd+9BF9XIwWJD31g lSD7iUDFUMf9DapaS9vqxDGEGHYOm6NNo67Kr81eqRQwXJJHwxTOPYnPpszly4z7yKP5 yxOg== X-Gm-Message-State: AOAM530FvHF3Lu5zckB9zuiR/3J9Eom+/TRqdXvkYl32H5LuKUMqccwa APBh+mmAmy4QS9oCiz1Q7RJAxt29kIfYNcanokg= X-Received: by 2002:a05:6214:8f4:: with SMTP id dr20mr24691534qvb.228.1595916048616; Mon, 27 Jul 2020 23:00:48 -0700 (PDT) MIME-Version: 1.0 References: <20200727184506.2279656-1-guro@fb.com> <20200727184506.2279656-31-guro@fb.com> In-Reply-To: <20200727184506.2279656-31-guro@fb.com> From: Andrii Nakryiko Date: Mon, 27 Jul 2020 23:00:37 -0700 Message-ID: Subject: Re: [PATCH bpf-next v2 30/35] bpf: bpftool: do not touch RLIMIT_MEMLOCK To: Roman Gushchin Cc: bpf , Networking , Alexei Starovoitov , Daniel Borkmann , Kernel Team , 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, Jul 27, 2020 at 12:21 PM Roman Gushchin wrote: > > Since bpf stopped using memlock rlimit to limit the memory usage, > there is no more reason for bpftool to alter its own limits. > > Signed-off-by: Roman Gushchin > --- This can't be removed either, due to old kernel support. We probably should have a helper function to probe RLIMIT_MEMLOCK use by BPF subsystem, though, and not call set_max_rlimit() is not necessary. > tools/bpf/bpftool/common.c | 7 ------- > tools/bpf/bpftool/feature.c | 2 -- > tools/bpf/bpftool/main.h | 2 -- > tools/bpf/bpftool/map.c | 2 -- > tools/bpf/bpftool/pids.c | 1 - > tools/bpf/bpftool/prog.c | 3 --- > tools/bpf/bpftool/struct_ops.c | 2 -- > 7 files changed, 19 deletions(-) > [...]