[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34406f72-722d-9c23-327f-b7c5d7a3090c@iogearbox.net>
Date: Fri, 8 Jun 2018 00:40:10 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Y Song <ys114321@...il.com>, Sean Young <sean@...s.org>
Cc: Matthias Reichl <hias@...us.com>, linux-media@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
netdev <netdev@...r.kernel.org>,
Devin Heitmueller <dheitmueller@...nellabs.com>,
Quentin Monnet <quentin.monnet@...ronome.com>
Subject: Re: [PATCH] bpf: attach type BPF_LIRC_MODE2 should not depend on
CONFIG_BPF_CGROUP
On 06/07/2018 08:14 PM, Y Song wrote:
> On Wed, Jun 6, 2018 at 2:09 PM, Sean Young <sean@...s.org> wrote:
>> Compile bpf_prog_{attach,detach,query} even if CONFIG_BPF_CGROUP is not
>> set.
>
> It should be CONFIG_CGROUP_BPF here. The same for subject line.
> Today, if CONFIG_CGROUP_BPF is not defined. Users will get an -EINVAL
> if they try to attach/detach/query.
>
> I am not sure what is the motivation behind this change. Could you explain more?
Motivation was that lirc2 progs are not related to cgroups at all and there
are users that have compiled it out, yet it uses BPF_PROG_ATTACH/DETACH for
managing them. This definitely needs to be more clearly explained in the
changelog, agree.
>> Signed-off-by: Sean Young <sean@...s.org>
>> ---
>> include/linux/bpf-cgroup.h | 31 +++++++++++
>> kernel/bpf/cgroup.c | 110 +++++++++++++++++++++++++++++++++++++
>> kernel/bpf/syscall.c | 105 ++---------------------------------
>> 3 files changed, 145 insertions(+), 101 deletions(-)
>>[...]
Powered by blists - more mailing lists