🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13351

Re: [BUG] bpf: tcp: bpf_tcp_ops_set_rcvlowat() missing from BTF with clang KCSAN

#13351
From: Arnaldo Carvalho de Melo
Date: Mon, 09 Nov 2026 17:51
38 lines
9361 bytes
On Mon, Nov 09, 2026 at 04:33:40AM -0800, Breno Leitao wrote:
> On Fri, Nov 06, 2026 at 07:05:25PM +0000, Kuniyuki Iwashima wrote:
> > On Fri, 06 Nov 2026 07:58:01 -0800, Breno Leitao wrote:
> > > On Fri, Nov 06, 2026 at 09:16:24PM +0800, Jiayuan Chen wrote:
> > > > Thanks for the report !
> > > > 
> > > > 
> > > > On 11/6/26 7:38 PM, Breno Leitao wrote:
> > > > > My arm64 KCSAN builds of linux-next fail since next-20261015, because
> > > > > bpf_tcp_ops_set_rcvlowat() is missing from the vmlinux BTF:
> > > > >
> > > > >   WARN: resolve_btfids: no BTF func for kfunc bpf_tcp_ops_set_rcvlowat in bpf_tcp_ops_set_rcvlowat_kfunc_set
> > > > >   WARN: resolve_btfids: unresolved symbol bpf_tcp_ops_set_rcvlowat
> > > > >   Failed to generate BTF for vmlinux
> > > > >   Try to disable CONFIG_DEBUG_INFO_BTF
> > > > >   make[4]: *** [scripts/Makefile.vmlinux:72: vmlinux.unstripped] Error 1
> > > > Has pahole fixed this issue?
> > > 
> > > I don't think so, see the line below:
> > 
> > Could you try this ?
> 
> Thanks, it fixes my build. I tested it on top of pahole master (9eb594d)
> with next-20261105 and clang 22.1.3:
> 
>  - arm64 KCSAN, CONFIG_WERROR=y: vmlinux links again,
>    bpf_tcp_ops_set_rcvlowat() is back in BTF, __bpf_tcp_ops_init()
>    returns 0, and progs/tcp_autolowat.c from the selftests loads.
> 
>  - It also brings back scx_bpf_tid_to_task() that was work arounded by
>    tejun.
> 
> Feel free to add my "Tested-by: Breno Leitao <leitao@debian.org>" tag.

thanks, I'll check this later today,

- Arnaldo
Technical Details
Message-ID: <avIIO1JOVnK8y3a7@phoenix2>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359489-linux-kernel-netdev=dewy.ru
References: <au27Y9m78_3EH2v1@gmail.com> <a69dd097-7e71-41f0-9a6b-eda001773236@linux.dev> <au347UiVUe5oUuxM@gmail.com> <au4kpSGVSH3tYiZm@google.com> <avG9bk0kxRUvonhD@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359489-linux-kernel-netdev=dewy.ru
From: acme@kernel.org (Arnaldo Carvalho de Melo)
Newsgroups: linux.kernel.netdev
Subject: Re: [BUG] bpf: tcp: bpf_tcp_ops_set_rcvlowat() missing from BTF with
 clang KCSAN
Date: Mon, 9 Nov 2026 14:51:55 -0300
Organization: Usenet Network
Message-ID: <avIIO1JOVnK8y3a7@phoenix2>
References: <au27Y9m78_3EH2v1@gmail.com>
 <a69dd097-7e71-41f0-9a6b-eda001773236@linux.dev>
 <au347UiVUe5oUuxM@gmail.com>
 <au4kpSGVSH3tYiZm@google.com>
 <avG9bk0kxRUvonhD@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="416640"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jIBskrGtmIrM6YCArA6jnYjOS7E= sha256:xX/B9dmzr3PtmQyDKRyQoWyO+DWbqksva/JeoCJirmE=
	sha1:wHBvtt5DcqosM+VMxktmGHu7AEs= sha256:10cCcpUws3aEyvfxJZnNiKOzj8VA3aez8gpOGgozCHA=
Content-Disposition: inline
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 BFC751138A7; Mon,  9 Nov 2026 20:58:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 qTPk9T4jX1N5;
	Mon,  9 Nov 2026 20:58:00 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-359489-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 4B49A113864; Mon,  9 Nov 2026 20:57:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id C8DB4C0AA1; Mon,  9 Nov 2026 17:53:16 +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=1794246725;
	b=3XGGYWPSvzjcxuGrmyrcYvA3Wl3J75I/K/StTAE343qTOcVIU+Lhr1TssLZWuU0ST0hp
	 nYN0VfhxIuu8X0ylVzjXbn6QpxsBZIrwxlB+7doN2a7hWknHT4sWpX2bI/fvntS3MlUhm
	 TEr5DM7RACjDrXONKJ0GXq2bPl43xn5ZZhY4470qiZZDMZhRuaabSFTA9p6PamFZsd9eJ
	 Go0MtTgbLPodlrd9tlM7iTDz7+uFQoKKJPqFB4TlV+1d8/4jZEj76EqripHg6z/1mV7RF
	 kHHJ15wDAk+W5N546MULqP/iNJMlPuDoEgmglzTF3okEGRoxtK83esS9YdbykD488tA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794246725;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=i9Nv6xGB8Ae4NNlgpZyPMXjBlowBRSDkMgoiPDc8DSo=;
	b=2Y6SqBCRkzuFtilfihW8ql0bO7JWzdF4Qc9qhUF8Sm1qRkJOPIABGPCEFnCU6N81zAvE
	 TsJZaHvot4IVtCbW2Got5FCYfc9LqZxlmgp2Yr7ZqeElP0B2jvDt/yi6BsxtQcOycvs3D
	 HVGWNSdVD4tmKST5GbZcTY5f+mgdnmcPbLvjy1c42kzzS25Hk4/s80vMSYRnEEyP7gKdi
	 gqJRvdJ/x3yyQGkY1cdR9JA+JOiL0lkxRp8kjSl56rQ6p2nx0iZLcFHtU1gqr7OIOkAE6
	 G+Oh8AxuAdtEHEuq/ZN7yRdJUVT7VtSklVWys61q26p+JcUwbb710wIqaJlgXvY8u9w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZYB6xKK7;
	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 0D51B606A325;
	Mon,  9 Nov 2026 17:52:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZYB6xKK7
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794246719;
	b=QYGAL8Pgfl9HNXkAFvF4jCxsCOXQKJuw1SClGQrtM7K1V5rqvKWg4O3deE9o831+9dPK
	 7W0rAUqRgBoXOOZAjCwjTtksPyGIFPy2JqSGJLQZl5XBnEIKXZu4Ip76fyZ4uaJwu70P+
	 A58bQu/yiOAtbxNypegW6VOmWPEFSEBcG0GaQ+komHFGf87AsB6PQp7WBAI4O6v4GNWuf
	 MDZMs2qgiBzShOVGuxr5zHEZv7LQq2eWOW+RcYoi8O2HRNaD7ouAQi50aPKHTqvTKSb4x
	 mRapJ0lImz9cxoEaCuivj5SkiDV1HFppLkD/0QwIkF7PHv7EMhvU2ZZM10zIfLpOwow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794246719;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=i9Nv6xGB8Ae4NNlgpZyPMXjBlowBRSDkMgoiPDc8DSo=;
	b=k8Vo4ej4R/ZsFzQl2SnPEz4dOXAo3UXoXg1K8g1Co/co098JdtOcgS2lcMiCyBbJvgFh
	 GI/aThaXgnhO0dKUJkYylUEKqwzZ/1zmhfVlUNKMDcKV7O+dVcN39ZOuJnSY7DtP4kH0O
	 EYkhYaUZjHCESSrU6aBgo0Dtf1FLtYmB0aM3LGsB6MBmkpSW/I2jYVgm6MZ6b84Insgp+
	 0VuYpX0ILyKmyhaHo61S6/irKIjAmiospA1BOWr4WwR6wLe2nF3dyHs2vFuOS9L+IAUEq
	 BRP6AEBB4FmgNTQKSaUOGxn27/F+sBKM1G0R3NdB7RO5v+UQGrUsTqgJhzcRcXRnoTQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ZYB6xKK7;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id E745A606A33C;
	Mon,  9 Nov 2026 17:51:58 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ECD01F008A5;
	Mon,  9 Nov 2026 17:51:57 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794246718;
	bh=i9Nv6xGB8Ae4NNlgpZyPMXjBlowBRSDkMgoiPDc8DSo=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=ZYB6xKK7ikHLcp12dpkvJj5Weru/Un6Bp2RAV9c3ZnLngBPdNf7jlFa/6pacFIadc
	 d/pGjG87WyjjJobuh5kFUC1OQAoc9bRk4WC1pDEeCGQuKci+PF+Uw0eYMsHcnjtlLP
	 s++NIZ8IZuJTW/rEM1mTa4fGTme1jNwWHMubKfSQJSK6DIM7cFtopEW3DmaocUcma+
	 CZXeDcWWnJz/AQVG1Gi3dP+iUzHahrZq6fKhJALiuBAIAGyYp7ziI2PuiuN8h+dcYJ
	 nZjhtm8jNVudg+OXggV+9PHXgsxCrRE+ebIE0fV+E434lKUuqdYNDEcCFPIw0naYPj
	 J7wdNcnd9Gi2g==
X-Cc: Kuniyuki Iwashima <kuniyu@google.com>,
	Alan Maguire <almagui@kernel.org>,
	Jiayuan Chen <jiayuan.chen@linux.dev>, netdev@vger.kernel.org,
	llvm@lists.linux.dev, ast@kernel.org, yonghong.song@linux.dev,
	bpf@vger.kernel.org, kuba@kernel.org, tj@kernel.org
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-In-Reply-To: <avG9bk0kxRUvonhD@gmail.com>