Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp152610imm; Thu, 7 Jun 2018 15:41:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL6EcNjzQuazKwwMpfX1tYwxtDXId0MpBI2NqT+uVAOJcFWSzm6iIbwSJcc7QA3BOmvIrvf X-Received: by 2002:a63:2f04:: with SMTP id v4-v6mr3048273pgv.33.1528411288947; Thu, 07 Jun 2018 15:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528411288; cv=none; d=google.com; s=arc-20160816; b=g0EsWNrAc91WCqiAYh3DgvHcuh27S3t7LFf0xO8FA3WNp2AI9SXb5g2Zw38a4gNypX +BHlzB/e/QGkwPP7V2uLZJ97XjvzWBQrceiLBo3+HwLJ0GW8j3VwLbRmTiPN9rN09RZb 8AfkD1sysOnE9C37m7+eh9QNrGqygxY9qKbCQ1gCgqsfgGczOcl5YaKxQzbjtV+ST2aj giV2ldnkZCd6X8l6Qn/OA7C6AHN9lmups3s+fa0vYiy1NAKPS5V6vNcWk0S79rxDbYov RD8GIfRXQq4JdK7d/I4uN4qnONdGtMaF3Z2S4dBBTGpagVLn3a2XpHdzN/JBkF23ad9U T9xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=blFYQm3Ml3WBlcrbIakRKAOooAHlNw/VKIh4fsUcZfU=; b=FrmSnJalAU1VqIhHAmQYEzZiZN+fztvM4PtnH/zgoQzctIXrE2bwn2wT7flstdDuuN sam1PUfKYXvY8WVkVJpS8uoBMBv+4IfMD/8jssJeiyup23i0EqbvnJjN9X63PD4s7gyv pxVqClhMfpBFUdSYK2F8CiayH7gyo6aYV/aphwgSbb4dOYJfQpbJfAeIpku59XPdX5oF W1SArm57A25GhxWELCCycd3lA8DNuujlXQ2OtWtKA1/otjHJ2A5f4x9zili1PKNFi3pt Bt7uC7lRwp1nxaSK8+l9lPms3fVIjlZdljMIZsqDy+u6pXdJPtrNN/sDaorrpq2a5T1u zVRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z70-v6si14894327pfi.7.2018.06.07.15.41.14; Thu, 07 Jun 2018 15:41:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752329AbeFGWkO (ORCPT + 99 others); Thu, 7 Jun 2018 18:40:14 -0400 Received: from www62.your-server.de ([213.133.104.62]:46632 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752156AbeFGWkN (ORCPT ); Thu, 7 Jun 2018 18:40:13 -0400 Received: from [178.197.248.12] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1fR3Zi-0002Do-No; Fri, 08 Jun 2018 00:40:10 +0200 Subject: Re: [PATCH] bpf: attach type BPF_LIRC_MODE2 should not depend on CONFIG_BPF_CGROUP To: Y Song , Sean Young Cc: Matthias Reichl , linux-media@vger.kernel.org, LKML , Alexei Starovoitov , Mauro Carvalho Chehab , netdev , Devin Heitmueller , Quentin Monnet References: <9f2c54d4956f962f44fcda739a824397ddea132c.1527419762.git.sean@mess.org> <20180604174730.sctfoklq7klswebp@camel2.lan> <20180605101629.yffyp64o7adg6hu5@gofer.mess.org> <04cc36e7-4597-dc57-4ad7-71afcc17244a@iogearbox.net> <20180606210939.q3vviyc4b2h6gu3c@gofer.mess.org> From: Daniel Borkmann Message-ID: <34406f72-722d-9c23-327f-b7c5d7a3090c@iogearbox.net> Date: Fri, 8 Jun 2018 00:40:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.3/24642/Thu Jun 7 22:39:10 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/07/2018 08:14 PM, Y Song wrote: > On Wed, Jun 6, 2018 at 2:09 PM, Sean Young 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 >> --- >> include/linux/bpf-cgroup.h | 31 +++++++++++ >> kernel/bpf/cgroup.c | 110 +++++++++++++++++++++++++++++++++++++ >> kernel/bpf/syscall.c | 105 ++--------------------------------- >> 3 files changed, 145 insertions(+), 101 deletions(-) >>[...]