Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8744416ybi; Thu, 6 Jun 2019 19:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxPkXKyFVYUkLnBSVr5b/KOhtkKkyV+AIVmIDeqkCyd2L1m8zgPzc9v8Q+X7XEh3GsuCMj X-Received: by 2002:a63:d658:: with SMTP id d24mr720517pgj.191.1559873242863; Thu, 06 Jun 2019 19:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559873242; cv=none; d=google.com; s=arc-20160816; b=vnuDjIlr10kUlrCSSryNzCsB/1nF9/ms6eUDGYWGt5WsMIGNPeMhmmWgbn55SvbNEz nbLM7utRfzrHLX8KMNpzdNLbwa/77d0il1IYF7hWXYwXjayLy08YKfc3oPzP9QLfW0n8 ulsKW8fzZ/MIpe69LBsZyeLNXIn4hhHlLHXNKHuwjatMG8FU5V3OnY4L0loJKfo8hGpQ hHW6fhGWiVaw1L5DLCG9bnWgkJzWMtXrB019Vwm578qtTrd+CKuFIMFIa95FBesgDIIZ wQuVdiIQVYL0eS6yf2ypeLeT09Sp2wF9PcYto43ldcuvSx36wp4yV3A+7Tpo/Pwk3Sba y2CQ== 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; bh=aDcWBwtFrNDWdzQ9akQy1T2gHi5mW5VH2FFcezQweMI=; b=I+Dmb58ht9FW/VaBNiu19rH0Vz0ZQXW3FYRHVKmglGSoH1P4R8Kzru99LrVDAl/2GV qvssfxJEuf9iU8vnTiW3RjWGQME3PrSHAXklaV9SlfKT4zCuq0qYkWg7T/71NblolnJU J05KN4f27RrumMwbU0TSP/Ps2qbc7rKTcqj+Uv5smT46FELGydUnHPDCM0IuzqjV/glp cbXF8yuX2O/LDwNBCsaWB2GJcVOki5VJvZO5ADBy1i2/JnlW2SWDfOzapTBpqWc/bW7Z onKzbP+Aenxb8vLjG49VQmXlPv7FHwRSdmBjQ4BDKGPqUs222NvlO6HKdg2llvK0qYq8 1dNQ== 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 u9si568493pjn.105.2019.06.06.19.07.05; Thu, 06 Jun 2019 19:07:22 -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 S1728121AbfFGAAX (ORCPT + 99 others); Thu, 6 Jun 2019 20:00:23 -0400 Received: from www62.your-server.de ([213.133.104.62]:49298 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbfFGAAX (ORCPT ); Thu, 6 Jun 2019 20:00:23 -0400 Received: from [78.46.172.2] (helo=sslproxy05.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1hZ2Iv-00063l-2q; Fri, 07 Jun 2019 02:00:21 +0200 Received: from [178.197.249.21] (helo=linux.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1hZ2Iu-0008B5-Rw; Fri, 07 Jun 2019 02:00:20 +0200 Subject: Re: [PATCH bpf-next] bpf: allow CGROUP_SKB programs to use bpf_skb_cgroup_id() helper To: Roman Gushchin , bpf@vger.kernel.org Cc: Alexei Starovoitov , kernel-team@fb.com, linux-kernel@vger.kernel.org, Yonghong Song References: <20190606203012.130071-1-guro@fb.com> From: Daniel Borkmann Message-ID: Date: Fri, 7 Jun 2019 02:00:20 +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: <20190606203012.130071-1-guro@fb.com> 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.100.3/25472/Thu Jun 6 10:09:59 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/06/2019 10:30 PM, Roman Gushchin wrote: > Currently bpf_skb_cgroup_id() is not supported for CGROUP_SKB > programs. An attempt to load such a program generates an error > like this: > > libbpf: > 0: (b7) r6 = 0 > ... > 9: (85) call bpf_skb_cgroup_id#79 > unknown func bpf_skb_cgroup_id#79 > > There are no particular reasons for denying it, and we have some > use cases where it might be useful. > > So let's add it to the list of allowed helpers. > > Signed-off-by: Roman Gushchin > Cc: Yonghong Song > Cc: Alexei Starovoitov > Cc: Daniel Borkmann Applied, thanks!