🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14614

Re: [PATCH bpf-next 4/9] bpf: Add log support for cgroup prog link_create

#14614
From: Leon Hwang
Date: Wed, 11 Nov 2026 15:32
36 lines
10012 bytes
On 2026/11/9 22:47, bot+bpf-ci@kernel.org wrote:
>> bpf: Add log support for cgroup prog link_create
> 
> TL;DR: Nit only: the new <linux/bpf_verifier.h> include in bpf-cgroup.h may be
> unnecessary, since a forward declaration would likely suffice and avoid
> pulling it into tcp.h users.
> 
>> diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h
>> --- a/include/linux/bpf-cgroup.h
>> +++ b/include/linux/bpf-cgroup.h
>> @@ -4,6 +4,7 @@
>>  
>>  #include <linux/bpf.h>
>>  #include <linux/bpf-cgroup-defs.h>
>> +#include <linux/bpf_verifier.h>
>>  #include <linux/errno.h>
>>  #include <linux/jump_label.h>
>>  #include <linux/percpu.h>
> 
> this isn't a bug, but is the <linux/bpf_verifier.h> include needed here?
> 
> bpf.h already forward-declares struct bpf_verifier_log, which is all the
> new cgroup_bpf_link_attach() prototype and its stub need, and cgroup.c
> already includes bpf_verifier.h for bpf_log().
> 
> Since bpf-cgroup.h is included from include/net/tcp.h, would a plain
> forward declaration (as done for trace_events.h earlier in this series)
> keep the verifier header out of those translation units?
> 
Good catch.

Will drop this include.

Thanks,
Leon
Technical Details
Message-ID: <9f9f10e5-d9f2-4cac-9376-a5802424de04@linux.dev>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361149-linux-kernel-netdev=dewy.ru
References: <20261109140816.5196-5-leon.hwang@linux.dev> <8a2b570a4d824e7a7acb46464af3318cc99a87ac6b620dc5cb76d9966101fd1d@mail.kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361149-linux-kernel-netdev=dewy.ru
From: leon.hwang@linux.dev (Leon Hwang)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next 4/9] bpf: Add log support for cgroup prog
 link_create
Date: Wed, 11 Nov 2026 23:32:25 +0800
Organization: Usenet Network
Message-ID: <9f9f10e5-d9f2-4cac-9376-a5802424de04@linux.dev>
References: <20261109140816.5196-5-leon.hwang@linux.dev>
 <8a2b570a4d824e7a7acb46464af3318cc99a87ac6b620dc5cb76d9966101fd1d@mail.kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="893777"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:smtXGli9L9cZHawaHpCMi2o1Ba0= sha256:mthD3xN2pn9/WyrfDh7qJlBkJq11Q31ZtJ5ObOuCsSc=
	sha1:qtT1/q9T8Oa4HT4zpRC/QtxegOc= sha256:s99opeOSINIO9IlIIJAApQiL+A4UHO15RlFCibhAMac=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id A73F1113F53; Wed, 11 Nov 2026 19:32:08 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.dev
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 5Zq4fHWEYffv;
	Wed, 11 Nov 2026 19:32:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-361149-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 4F87A113F38; Wed, 11 Nov 2026 19:31:54 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 79A41123B56; Wed, 11 Nov 2026 15:32:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794411161;
	b=P0/KnLSZd4N7dPDMS1YqcRPnstaWeDNmqynFiiRJCOPeyITbwGUbAYqYV7ADAJ1lblKh
	 3QkXfs9x6U8DF412CrHGPkq9+tJ5GOosVsfauX7RyC8aNx95jkB1DPKpZ1xvXDMPTxKgX
	 3JOEVVVUcpopIlLy9gNFIz5a7OVkyLPV9ho8ijJdHSUEGltmaKjZ78BUe97QVOomfaLVt
	 YKWo+9Xdoz17XvILkzyJ1Kr8voZMSsk0GHSsw7qbMdt2LCnWKBVeFxnRd/WhJOo5dVIaZ
	 bNyEpzKzfRPfNyRWNd/B/lhYHJPZ5FxHDT7RQQ1PxwOC/UdriUYbe3BFa+5ahBYJoDA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794411161;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=BwTjyGbtFLiEfqJNojU1wBEH3l3XXwkDvqFxjFfKBuI=;
	b=YWieOZGWXtcr40tHIDVO/Qk9pLTKcmO7PstTcmi5pOsFCxxmgA6pILxqqrsoQpV7t52I
	 6rKpDkwc0kqb/znDXswiR9z6dcE8zGVeDUwEIZ464ptLXLifiGs4l/FWoStc3LbZnr40W
	 J32/7oKXzKMSO1nOGsFw3eM7s9Nv9YTdOz479WDuz+ixm3rxx9q9Wom+rOQzd4gB5G8vX
	 MUc/0n98B4tinaa+w7TFXIG8NAdc8Hfkg0jCim2wbqIsVKagdWqtVRI6DNgif+1iKLXPH
	 85TA6U40xUQ786wsh+RntmIisQccEfWBt6nDPZLDZP1AEhZJqvBfq+Tp8OkrgOJvKUQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=pQ+jt0uJ;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2738B606A324;
	Wed, 11 Nov 2026 15:32:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=pQ+jt0uJ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.27
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794411160;
	b=SgsJKsIwLEEq0Bjk5uKXGZ9KhrGu1/UN39byFoyfCr4gA+GmrVUTuO8c5ORfxigjtbam
	 tQLGlkj6m3Ado0yIbDOMpozz83XWm3PGsyoFbOI67VJtNaob8xFj/nlKPXcVGnQGdBwSk
	 e+ZKMjv++j9YuCr55gMIKlzpmEwaDF2T782C61ZJ77UMbOhliy00pS7rFInVtU7DDz3M6
	 3Myfa/biLBh2UQFIEIMTB5DbJAobFlXTzEYzo/CwF5LReDexXWtkoeQgNwgwVqv/tOv0d
	 fqX7Vm2C8RoFB7fgQkPrYTEfmb+QmFTXcw8vmx0gpWmDD5t1OIJwHGAjSpivI6rmVbw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794411160;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:Cc:References:Content-Language:From:In-Reply-To:
	 Content-Type:Content-Transfer-Encoding;
	bh=BwTjyGbtFLiEfqJNojU1wBEH3l3XXwkDvqFxjFfKBuI=;
	b=euZMTmuEoNMQXy3Auh9NxV0lZaGU+OxyADT8dMeKpMn9AYf6BBALZCpGMtIU5UswyYsI
	 H8W/NniVhxsxaZ4Ry/YeVToAy6pOm8Ql8UtfH7KYX4bLomnqaDWPQpM8VQdLGxwSpRW20
	 8FSno4DhNeOeCae7BUwdRvlJ2bhIDiXEyO8nr9JfKIHEx78C0Ka69w/1C7KrC8eLXN+yp
	 x1tgZB6uhEAaYd5S8CO1H3L9R684iwh4QpbnG6l0ULPS/fVgI2R2E+NqEWMkgnZKuW7b/
	 wVibm776beAHY4tI58qs33JcTeJoL3geo+hqDjLuSsJzR5AQOoGX6z7eLABbVy2CHJQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=pQ+jt0uJ;
	arc=none smtp.remote-ip=91.218.175.27
X-Received: from mta0.migadu.com (out-27.mta0.migadu.com [91.218.175.27])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 671DA606A326
	for <netdev@vger.kernel.org>; Wed, 11 Nov 2026 15:32:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 671DA606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=gboru3Ec6G1jPwlPZvGIx8shx83LrPwzmsUnld/c0C0=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1794411157; v=1; x=1795015957;
 b=pQ+jt0uJZ/2p351+1YLvo885EhD0y2HXpGXhnWMSSmV8oV1mqKg00THyRDyeO3MQB7YCxX1q
 x2WMXsm3Zr7zPsieI8QnpG7bNQkiqY80Dd7bPHJS7T0rmPbAcchPLaJaYToEddfmoi7lI/dXgEx
 BMWfBYUL5b9Y7gw6Dm/04L60=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id 17a7bba5a94a6255;
	Wed, 11 Nov 2026 15:32:36 +0000
X-Mizu-Trace-ID: 17a7bba5a94a6255
X-Migadu-Flow: FLOW_OUT
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-User-Agent: Mozilla Thunderbird
X-Cc: ast@kernel.org, daniel@iogearbox.net, john.fastabend@gmail.com,
 andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com,
 martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev,
 jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev,
 rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com,
 kpsingh@kernel.org, matt@bobrowski.net, shuah@kernel.org,
 linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
 linux-kselftest@vger.kernel.org, netdev@vger.kernel.org,
 martin.lau@kernel.org, mason@kernel.org
X-In-Reply-To: <8a2b570a4d824e7a7acb46464af3318cc99a87ac6b620dc5cb76d9966101fd1d@mail.kernel.org>