Article View: linux.kernel.netdev
Article #26547Re: [PATCH net] rxrpc: Do not return client slots for service calls
From: netdev-bot+sashiko
Date: Thu, 03 Dec 2026 18:14
Date: Thu, 03 Dec 2026 18:14
75 lines
10553 bytes
10553 bytes
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 ยท High: 0 ยท Medium: 1 ยท Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The commit message describes a much narrower bug than the one
the code fixes.
--
rxrpc: Do not return client slots for service calls
With this commit, rxrpc_put_call_slot() returns early for calls that have
RXRPC_CALL_IS_SERVICE set. Releasing a service call then no longer calls
up() on the client call limiter. Only client calls take a slot, in
rxrpc_new_client_call().
> rxrpc_put_call_slot() calls up() on the client call limiter for every
> released call, but only client calls take a slot, in
> rxrpc_new_client_call(). Closing a socket on which a userspace service
> has precharged calls with RXRPC_CHARGE_ACCEPT releases those service
> calls and raises the limiter's count above 1000.
[Severity: Medium]
Is this description narrower than what the code change actually fixes?
The only caller of rxrpc_put_call_slot() is rxrpc_release_call(). Every
service call reaches it when released, not just the precharged calls
discarded at socket close.
A userspace service call that completes normally is released in
rxrpc_recvmsg():
net/rxrpc/recvmsg.c:rxrpc_recvmsg() {
...
if (!(flags & MSG_PEEK))
rxrpc_release_call(rx, call);
...
}
In-kernel service calls (AFS cache manager, rxperf) are released in
rxrpc_kernel_shutdown_call():
net/rxrpc/af_rxrpc.c:rxrpc_kernel_shutdown_call() {
...
if (!test_bit(RXRPC_CALL_RELEASED, &call->flags)) {
rxrpc_release_call(rxrpc_sk(sock->sk), call);
...
}
rxrpc_service_prealloc_one() creates service calls with only
RXRPC_CALL_IS_SERVICE set. RXRPC_CALL_KERNEL is set only in
rxrpc_alloc_client_call().
So before this patch, kernel service calls also did
up(&rxrpc_call_limiter) on the userspace limiter, not
rxrpc_kernel_call_limiter.
If so, every incoming call served by any rxrpc service added a permanent
slot to the global userspace client call limiter. A remote peer could then
wear down the 1000 call cap just by making calls.
Could the commit message mention the normal completion paths? It could
also note that remote traffic can trigger this, and that kernel service
calls raised the userspace limiter.
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202181321.74079-1-bugs%40stellman-greene.com
Technical Details
Message-ID:
<179632169515.3146.8139316852801630735@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376817-linux-kernel-netdev=dewy.ruReferences:
<20261202181321.74079-1-bugs@stellman-greene.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376817-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] rxrpc: Do not return client slots for service calls Date: Thu, 03 Dec 2026 18:14:55 +0000 Organization: Usenet Network Message-ID: <179632169515.3146.8139316852801630735@kernel.org> References: <20261202181321.74079-1-bugs@stellman-greene.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2563105"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1+2YwCb1SJH3Ka+aojQAv8qkmtk= sha256:0/ABgp14WHN0IhRy+mFwmVw71EdrSfHwuBNf7khfWM0= sha1:pChbFEDfe1SPVrjjKe8aKnqUYMM= sha256:zpBELZ4/DFny5M8hLDsWdQT8A7fZ3fJpsvS5rgi1cSg= 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 692F6117A0A; Thu, 3 Dec 2026 21:15:18 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.64 X-Spam-Status: No, score=-3.64 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, 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 KcTR6Qb0CFHz; Thu, 3 Dec 2026 21:15:15 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-376817-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 4726C117A04; Thu, 3 Dec 2026 21:15:05 +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 05C4C2198C; Thu, 3 Dec 2026 18:15:03 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail; t=1796321697; b=1Pt7qFeoa4+D3w1yUq7RZV+K0lR8brpvR7gMqwA4ueBMl2U9345ulXhaEYkJ3QAHUjZL r16sVRPo6P2Nh7Bz3vgJaq0a4LtuFPkwFtaltn8DNQk3+PG4um0AKRuwTPOrgfRd7u0Dv idqLIAeE5kJjnBs0Oc2juyB79CwFyJ8oGIdBmp1F9FhYD11tKuXcLc+2915tZvsvSsjBx iKSvGUkIdxmhvlJQ48CUc90f0IjgCCIQkmdA9SPwrmwSDB9frpsBegQLRWOJ+opyQzgfg iFj78cxRGaXs/k72FAkH+JNxtv2HXuoUAPo/2pS1BT31onypdJiVSvmkyrYoTTlrdcg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321697; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=vGJY3eE6kMfoKd00/EYSKr88rxDtgP4uOQQYXCXa4ek=; b=KFrs+4Xg9JL3HijABxiZJFqZrH+nfyaxYkuQ4SWgaR2YvRfR99ptoCiIGA51I6DLSMuu lfDXn3IXOPlRU+UMtldDax3jEpqbsVgIohr1PxsrScqzpqoUONcvvobQv9Nb9ek/qtP4t u/Z+/Tw94JfBLKl7yjWO4Mq01omdqsQ33OSIPt5xoaER4c9jZoBsn7EqJJAauEhkJUKPk hviKX6UuhB35mRUrR98pXWBkojYTQmNKj71Q02gSv+cjC6WTGReK5BLdGIJC0wEP3PfVV 3wYaKB/Gq1WEqYRQK7CuHrxs50DS7M+7snTywEknYkguel+dGjBWkVnEUzVUejcFOAg== 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=fsaPzkYk; arc=fail 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 4AF01606A683; Thu, 3 Dec 2026 18:14:57 +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=fsaPzkYk 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=1796321696; b=t0IRopnuYk72IulhgfiVQb/XBAMeNjOwIyMCUUzfvE+oqp82hZ2AXzT1QBzZEayygIvr cmJVO4rPfznyJuCK8re+K04xZ2Ba1KogVoL1iCvzKnSvvfXCir4xYFKZXr/SQsYsy+xOC fw74oo6WPg9Qw49Ji3QdvAR2pF3cnUG1SPS308eGWsw25Znuk7nBMhV2xjlNxgp3hLubm dQ9UE5Yh6+TrzODLAAriWPu0N6TA/grX2ypaXnFI43I8SkRvClTnPSORxDWUwbTiVPfMn bKVgMguKY36HFv9Wz4pfBTTjMUcOyYtdp/wAX5hLw9zloc+7QMBjshdbkAlrMTFnndQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796321696; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=vGJY3eE6kMfoKd00/EYSKr88rxDtgP4uOQQYXCXa4ek=; b=L5NWtB5y3D8YK0RyD6u1D+a/oNWzsHytVB1epPKGvNVc3swnPS2sZ4zvxKBObQxJdurk BLQ6G8fus0C9tk7/c0u+wzMS5i5aw7gTtF0LXMh7yOQQyhwYIf1XH32GZaohddSUHZwJM ggVu3t4UNtvCPa/qcCrcsNeVFFLyrsTjpMf2YltFyIN55itzSTPz0VxfG0MIeVs/TDwil HQCcxA8zYw88urz6pF56mkhUPtrLFob0iNDS1IuC5LMLrOqpYmIkuBoVeIw3ek/6XwuxL I3NCQJGXqfymeK2dAWc0jurBzS6JlQ6JKWRc+U3YTEXRFjWKdADE+s8Sfzjh2F3ug2Q== 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=fsaPzkYk; 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 6C5AA606A686; Thu, 3 Dec 2026 18:14:56 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4D81F00893; Thu, 3 Dec 2026 18:14:55 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796321696; bh=vGJY3eE6kMfoKd00/EYSKr88rxDtgP4uOQQYXCXa4ek=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=fsaPzkYkq85pLkaSzcsp1p6y/9wxGi/9H+ippmHgyx46W5LJLu6g0txVQcAKXH9pU 4v0HAvWP83C9MWtcQ/zl283knTugJ8LMxc/WeHWrgQoyDG5gOyIRoACNfq0Jik8s7L BtbwCsILMLsSnqcjNVHfLZNPYkPH2KEoV85b99UTxu5wXxMZzNA/pwgCGFdwLQYgcg MhIRoRQdxm5yIt192/GUwYQ6pHRHb9B76XGl7DT35M7PRa0j7DIoL9/SdBxtHiaS6g 1ftjENB+a3qFtAVsUe6i07aZQxtooRMgsZFjymcQCvVV7QIgXjDMIfLqasqEoL3M1u WGZHd1lqJScnw== X-Cc: dhowells@redhat.com, marc.dionne@auristor.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-afs@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org X-In-Reply-To: <20261202181321.74079-1-bugs@stellman-greene.com> X-sashiko-severity: Medium 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