Article View: linux.kernel.netdev
Article #5442Re: [PATCH bpf-next 2/8] selftests/bpf: Test allowed bpf_ksock operations at send LSM attach
From: bot+bpf-ci
Date: Tue, 20 Oct 2026 10:52
Date: Tue, 20 Oct 2026 10:52
42 lines
9714 bytes
9714 bytes
--===============6036520422771328630==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
> selftests/bpf: Test allowed bpf_ksock operations at send LSM attach
TL;DR: Commit message only: it names ksock_socket_sendmsg(), which isn't a
real function or hook and is renamed by this patch. Suggest naming the
socket_sendmsg LSM hook and mentioning the rename.
> selftests/bpf: Test allowed bpf_ksock operations at send LSM attach
>
> This test makes sure that bpf_ksock_acquire() and bpf_ksock_release()
> can be called from programs attached to ksock_socket_sendmsg().
>
> Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
This isn't a bug, but is ksock_socket_sendmsg() the right name to use here?
There is no kernel function or LSM hook with that name. It was the name of
the existing BPF program in ksock_lsm_verifier.c, and this same patch
renames that program:
-int BPF_PROG(ksock_socket_sendmsg, struct socket *sock, struct msghdr *msg,
+int BPF_PROG(socket_sendmsg_ksock_send, struct socket *sock, struct msghdr *msg,
so after the patch is applied the identifier in the changelog refers to
nothing. The attach point is the socket_sendmsg LSM hook
(SEC("lsm.s/socket_sendmsg"), i.e. security_socket_sendmsg()).
Could the changelog name that hook instead, and also mention that the
existing program is renamed?
---
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/39408886865
--===============6036520422771328630==--
Technical Details
Message-ID:
<af7818e22b8336b796a951e86dcb6a63c8ed79e8643e264cfa8ba147e83b594d@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-349222-linux-kernel-netdev=dewy.ruReferences:
<20261020102512.518479-3-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-349222-linux-kernel-netdev=dewy.ru From: bot+bpf-ci@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH bpf-next 2/8] selftests/bpf: Test allowed bpf_ksock operations at send LSM attach Date: Tue, 20 Oct 2026 10:52:15 +0000 (UTC) Organization: Usenet Network Message-ID: <af7818e22b8336b796a951e86dcb6a63c8ed79e8643e264cfa8ba147e83b594d@mail.kernel.org> References: <20261020102512.518479-3-mahe.tardy@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6036520422771328630==" Injection-Info: usenet.network; logging-data="3836711"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:X5bBpSbWaaOc2slF8yZkrTb0cuo= sha256:znRDpzilqnCwlit1GBuQSW0uhIgDKG5PMw3wHZImC1k= sha1:H4tJi44tgDxrvPL022cktmeepnA= sha256:UGzu/Eb2EWwjVtEecWI7NwmOI9Wk3oriOQBKT3gqNSM= 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 0B213110CAD; Tue, 20 Oct 2026 13:59:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.829 X-Spam-Status: No, score=-3.829 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.329, 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 aSEVsWPjGub3; Tue, 20 Oct 2026 13:59:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-349222-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id A0B38110CA7; Tue, 20 Oct 2026 13:59:43 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 4A082618E21; Tue, 20 Oct 2026 10:53:32 +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=1792493548; b=E90IeTxv3MUQECzX7d8WDCcocl6aSpHNN8lsWGx5cd9NfqxiZUomAVj7E9d38swtm5wj QlbR5AU59JGoBxtev6Z4VuhYexQTDai8u53+XxKsf4UIwh4zIqPG3RQV3E1Sev/x+NgcP WbWp8yDjgBObG3eexocCwOwGGN+HxBzqx4XrqCgBVpfHfjkdXf0vewb6QSTfz2Ymy1B/5 +wORYVWNKqIOmJGWoW6SolDPxhA0GU94vRT0V81tdtmeIFLCy1uBe5UI2tq6k9N2/p0B0 kefGlFa46pi33r4Or5pW6MYNFe58EoT60fluwv6rLoR2Ee+ozXNvUvGvDu+pCxJf/Yw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792493548; h=X-Original-To:Received:Received:DKIM-Signature:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=fMvWIQiVeXksTVschiof9sJSZQhCHQiDXoi94hJip8g=; b=37w1p9dOQzIHkqUsgFCB/MoM0Repi7ZNAJGXAjbF6QF5V/O40sOUa9gnlyaFbHvv+vzH Df/iqt9OGykeSp8peg3QzoAUoSyuk4xAspSB7E9hSH1ivfe7dtT1KYTjM+D6XKK4GJ+i9 jnmPZ+pjyeb7W28J0pJr1Jqbp5UeyBXbb0O4ZfrbfzCbdF/iieyD7KwYVoy1RwSRJwftr NLuE9wXvSdzM8hI8tfuw5zdDz00jvvHEg97PHcAyc02ap7FPWZP+cFkcDsLyfnVy8FuJp 7W1oSk65JyF2v5Vrj3+Lo5HrgmvJhrwLVb+Dd1TUTQCbdPPWgde23NtZkOTNZOq50GA== 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=D4ROAHa2; 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 A463C60A5BC6; Tue, 20 Oct 2026 10:52:28 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=D4ROAHa2 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=1792493536; b=1tP4b0cVazE4GyxBQ9dq+itbAN6QmUBN0Z49oOZp5vi3Hsl6AobaIX40dPx4RC0oQw0v Ul878vv9UwRRI1gpu2cr702NHXz7+Op+R4Avsv+rlNUnufRTnqcNTXq63k/dkfhHGeQRH vGuKpE4fYRmmLd6fM8OxnvaOvOJsB1NYTuhqfmci6Q15JCIYyIEwi648N4H1qVh7CKgNx wieuvHx3r00RgHQj1m+35ThiSk+kbRt4ScNr/To2+zOmLO1UkNpPkkPNpTdRlcQm8Xs+P QVzz+O1U3NwhawMSFaMFOUI1P7m2W/MtE3gqCU7q5vQTnHntK5lJbl542pseY37FtNA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792493536; h=Received:DKIM-Signature:Content-Type:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=fMvWIQiVeXksTVschiof9sJSZQhCHQiDXoi94hJip8g=; b=s3tlbKCaTdewGi7tXniun9udBaWxEUsH9DtivqqPlFa43dCsj4VjzUb2JKLFggxmbk1E 8AqlC4Ql/iNCdy/nhy2889/MKsVHPcJx8RRpICy6b3DT3m0YkXs5iLg9UMTNjMi4LcNY8 spplwDVsdmnWlkIM9ds/Dyemi33zm3iJwubn131eNt1GOKgJwkI4uMkdlbE8atXFrFlY7 XWYEKZ1wGgFXW+xD7eiZkkWcjrULrFzHff8NeM+nTXgVoPElrXYskqSZ7S+R48z0Zly0l Ic8J2gowXM+hbjhZfjH9ZwWvIWfHhB/SXXiuC9toqxS0xkgdwwRMW7KTdrQrH2VPEZg== 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=D4ROAHa2; 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 A0CD1606A319; Tue, 20 Oct 2026 10:52:15 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 064561F000C4; Tue, 20 Oct 2026 10:52:15 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792493535; bh=fMvWIQiVeXksTVschiof9sJSZQhCHQiDXoi94hJip8g=; h=In-Reply-To:References:Subject:From:To:Cc:Date; b=D4ROAHa2eEyZd6tUFe2yMEelBgsfsKVVE05phHZ5RnsYTFF7kp64QqTrk6tzZfLYA EnMoBUYqjiyIbMimSpNo/x+QOjTVxPaMkCi69poviwrG133dzrUqY5OnmEn72xJMzp kB5Mtto3nxbsAAvIS1U83VF935dlH0YTyrR+CBa6wC+HYvFZySX7WBYM79QtmG3d8j 0LMBPCpweuNA8Y5t0oV3QFbTqw+wfND0hY7BgvNRYz+8NizabY/b2LDkL4Sf2+/TVV RZU9OxPfuK47pOF38Dfc+8eHeUvZ4wb/WgBdGlXVCk3XurvXggYUC84YspwytdeSxj 4Q1d5O6VjoDew== 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: <20261020102512.518479-3-mahe.tardy@gmail.com> X-Cc: andrii@kernel.org,ast@kernel.org,daniel@iogearbox.net,davem@davemloft.net,willemb@google.com,eddyz87@gmail.com,edumazet@google.com,john.fastabend@gmail.com,kuba@kernel.org,horms@kernel.org,liamwisehart@meta.com,martin.lau@linux.dev,pabeni@redhat.com,song@kernel.org,netdev@vger.kernel.org,sdf.kernel@gmail.com,yonghong.song@linux.dev,jolsa@kernel.org,kuniyu@google.com,memxor@gmail.com,emil@etsalapatis.com,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