🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #3923

Re: [PATCH bpf-next v6] bpf: allow ksock connect/send calls from wq

#3923
From: bot+bpf-ci
Date: Fri, 16 Oct 2026 09:34
73 lines
7822 bytes
--===============1992164897828636348==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

> bpf: allow ksock connect/send calls from wq

TL;DR: Nits only, all in the ksock_wq selftest: a possibly unneeded bpf_misc.h
include, an unneeded "err = 0" initializer, and a stray extra blank line.

> diff --git a/tools/testing/selftests/bpf/progs/ksock_wq.c b/tools/testing/selftests/bpf/progs/ksock_wq.c
> index 16a1873d132e..24246bf2c748 100644
> --- a/tools/testing/selftests/bpf/progs/ksock_wq.c
> +++ b/tools/testing/selftests/bpf/progs/ksock_wq.c
> @@ -2,9 +2,11 @@
>  /* Copyright (c) 2026 Isovalent */
>  
>  #include "vmlinux.h"
> +#include <bpf/bpf_endian.h>
>  #include <bpf/bpf_helpers.h>
>  #include "bpf_experimental.h"
>  #include "bpf_tracing_net.h"
> +#include "bpf_misc.h"

this isn't a bug, but is the new #include "bpf_misc.h" needed by this
program?

None of the macros defined in progs/bpf_misc.h seem to be used in
ksock_wq.c (bpf_htonl() comes from the bpf_endian.h include added just
above), so could this include be left over from an earlier version?

[ ... ]

> @@ -35,28 +41,86 @@ static int ksock_wq_callback(void *map, int *key, void *value)

[ ... ]

> +static int wq_set_callback_start(int (*callback_fn)(void *, int *, void *), u32 key)
>  {
>  	struct ksock_wq_value *value;
> -	u32 key = 0;
> -	int err;
> +	int err = 0;
>  

this isn't a bug, but is the 'int err = 0;' initializer needed here?  err
is always assigned by bpf_wq_init() before it is read.

[ ... ]

>  	if (err)
>  		return err;
> -	return bpf_wq_start(&value->work, 0);
> +
> +	return 0;
> +}
> +
> +
> +SEC("syscall")
> +int ksock_wq_start(void *ctx)
> +{

this isn't a bug, but is the second blank line before SEC("syscall")
intended?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/38878629001
--===============1992164897828636348==--
Technical Details
Message-ID: <6b87bbbbc031c06f1b95355aa6f5df72b4d598885ad5d219d9cc30b75a475566@mail.kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347229-linux-kernel-netdev=dewy.ru
References: <20261016085353.9512-1-mahe.tardy@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347229-linux-kernel-netdev=dewy.ru
From: bot+bpf-ci@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf-next v6] bpf: allow ksock connect/send calls from wq
Date: Fri, 16 Oct 2026 09:34:19 +0000 (UTC)
Organization: Usenet Network
Message-ID: <6b87bbbbc031c06f1b95355aa6f5df72b4d598885ad5d219d9cc30b75a475566@mail.kernel.org>
References: <20261016085353.9512-1-mahe.tardy@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1992164897828636348=="
Injection-Info: usenet.network;
	logging-data="2731299"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jQ2o3HOdl+xH1CCXuH91K9j1om0= sha256:OUBgGGW8Dnrc4nFiwZ1RJuGDi6rx1HNULw3tQX4fjhk=
	sha1:69n6lPto7nYuRIbv5PRnUqHpKac= sha256:W8LZ5Gg95ghBl1x5DQNkq0kucL49LY7DPLUgPamvpXY=
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 64F391104CF; Fri, 16 Oct 2026 12:42:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.34
X-Spam-Status: No, score=-1.34 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, 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 YG0DvWJF1fil;
	Fri, 16 Oct 2026 12:42:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-347229-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 472111104C8; Fri, 16 Oct 2026 12:42:22 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id E70C233649; Fri, 16 Oct 2026 09:36:57 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 7159846C856;
	Fri, 16 Oct 2026 09:34:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CcFeJeHh"
X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58C2743E9FB;
	Fri, 16 Oct 2026 09:34:22 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1792143263; cv=none; b=lV2sRzvZ3Gg0xMMp7ACkQwhXaksrwpXoZcBxuSZgNBQqwBLyHybVLjBJYdWK4RBJ3XkqImLrOqK8LB+bduOi4azeJ03vrFWaBIqL8Fq3yQD6KRS44YV4EFEtGp6xt5pX8iAKWiyAXReBXt/WGJUM52qpujE8eTeBD88F1UKumkI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792143263; c=relaxed/simple;
	bh=x3e7JFL7g+Lboyfi5AfNETW+d7AigUz1qAmmDRhaCig=;
	h=Content-Type:MIME-Version:Message-Id:In-Reply-To:References:
	 Subject:From:To:Cc:Date; b=lZDql+GMVYApph/1nLKHAL+UD6JokxIwJ/+0ia/bGlT7XICfT+4njawx11ty+5dvhs6dgXnKYHmvtC6rhTWsGGTTpTXeFaNYt+wtoc1/H8YD+N/TDKavE9+0DMefktE+jwimDkmiO4t7LUuR8ynk4XtRs7N73yve4Yu30q1JZe0=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CcFeJeHh; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 939B21F000C4;
	Fri, 16 Oct 2026 09:34:19 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792143262;
	bh=I0t6Wvt7LkXoLJn6wAMqnAnbwTwxXW+PnWR1YWVNFEE=;
	h=In-Reply-To:References:Subject:From:To:Cc:Date;
	b=CcFeJeHhxkoA9ZjTXaJ2+vpvCR8HXD7k/lvNGco18zVac58DNgb/gTVHJqZegAHET
	 LSTYZ/y5uZdknuQlnJ0jnQdtYybYtJtkJ/WO1YRQirWbZVmsqPnroaagANHkjaQU13
	 Y3J7U7I6QuSgTBvoDIwaPK/3BN7JSH/Q4bVXZcKgyRwc5Qh+j2uFbu+58Xrj9+5ko5
	 zGT2HBhf0zVrp/Vs0Rsmp3sFVosRZByz2obRAbNMX0ykZhjHJzNEhtoh+61QdJoS1r
	 TDzUmSUB5lntsJOwyHX3/YcUwS2xAZGc3TDXjAE2cnlCHiHsiPRVQRaebl+ZyWrNlI
	 37XqoqDakb2qw==
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-In-Reply-To: <20261016085353.9512-1-mahe.tardy@gmail.com>
X-Cc: andrii@kernel.org,ast@kernel.org,daniel@iogearbox.net,davem@davemloft.net,eddyz87@gmail.com,edumazet@google.com,john.fastabend@gmail.com,kuba@kernel.org,liamwisehart@meta.com,martin.lau@linux.dev,pabeni@redhat.com,song@kernel.org,netdev@vger.kernel.org,sdf.kernel@gmail.com,ameryhung@gmail.com,kuniyu@google.com,memxor@gmail.com,jiayuan.chen@linux.dev,almagui@kernel.org,mahe.tardy@gmail.com,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev