From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4D81F00893; Thu, 3 Dec 2026 18:14:55 +0000 (UTC) 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== Subject: Re: [PATCH net] rxrpc: Do not return client slots for service calls From: netdev-bot+sashiko@kernel.org To: bugs@stellman-greene.com 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 Date: Thu, 03 Dec 2026 18:14:55 +0000 Message-ID: <179632169515.3146.8139316852801630735@kernel.org> In-Reply-To: <20261202181321.74079-1-bugs@stellman-greene.com> References: <20261202181321.74079-1-bugs@stellman-greene.com> X-sashiko-severity: Medium Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 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