From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796134937; b=yro/P+2gZIBxU2OQN0/Kv1U6Zudqo6dDLmb4y5iaALmRlSc/JnCLSuhrDqow9GbFzBI3 //jzB+lC/Pu8UQq0Zy7m2f+tMvYAH9XW/dp1uPNoabOBwzObbPY8Q00Yq7x9axnK/KE2j kYOfNesT5CJztoq9MkO9HfM/b7K/1YC9hj0Equ/yjPA9Gf5BCn7yRLfYZjXvfWiq8SwxQ AEacn3XlSahTA6xigTM0ew+5oB+DeDpP9NhUPHlS9pP6ihke02PtjBeGjllzHJ9ca5mHY yDpFS0e6O0CELsUMAzNq4q0Tohso79D1mJCa/q7D0iiAP5WcqC3KhtLzKP7kYLzGXOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796134937; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Message-ID:Date:MIME-Version:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=XM+L3OXt0LXFjGxJqGBLPHNef+fki0qxQRRlmRw4+7o=; b=IZXvJI66+YAzxBxtduKgkR0i+ji16wpE2+0Jw753LAaaWEzVs7/WM4amN5UTyuF9pRK/ D3iBBMBRXoEmLKDxUqfQoWvLWFqk7UlsjIbNCc8QawA/J5UaWtsn1fUCYSLpz42xTNyaF rww9VWQ+l1nNYcSWYAyNvXIbLtlC2wGki6FrG6/GXYdGgSrUtcLIykGgqlYEPqqP/Uh6N 0UEqz7sGRawtz/RRC4D0wQ5K4BEEM0KFRkwNG87MygEwUnuLXcShFVUZZKcaJdGMNnAki hTDyrropxct/yLdvgNyHCqduVG0W/CPMQvLZwPf/htfv2hGw48jitDNHoE4EBc2OyPg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=i0weZ0u4; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=ZGacMoe7; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35876606A31A for ; Tue, 1 Dec 2026 14:22:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 35876606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=i0weZ0u4; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=ZGacMoe7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796134936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XM+L3OXt0LXFjGxJqGBLPHNef+fki0qxQRRlmRw4+7o=; b=i0weZ0u411HQn4b+M1dZVPJh1AKivlY4ow3dCpl77Q+MFizugp4jPV91zx6SSmSsoz+fQm cmZoKH63c5r+kBQ84HPoc5F6LNqJNyiQHLCU1IxErOw7L8ZFeExaCcVPWkuouEIq6aB946 SfhBPiCceI48PojfDRvK8e6+tM7Kg98= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-279-ZKB8-HOSOm2oQcc513JJeg-1; Tue, 1 Dec 2026 14:22:14 +0000 X-MC-Unique: ZKB8-HOSOm2oQcc513JJeg-1 X-Mimecast-MFC-AGG-ID: ZKB8-HOSOm2oQcc513JJeg_1796134933 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4bb64c99bb8so103470725e9.1 for ; Tue, 01 Dec 2026 06:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796134933; x=1796739733; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=XM+L3OXt0LXFjGxJqGBLPHNef+fki0qxQRRlmRw4+7o=; b=ZGacMoe7sJTfexZfRXpr/RR+yHzCoGOsIlMOEJgq0bZcM6kIsaVGdkkmew4GTtRy/p 7kbD+PR1ltDWks7vzlI2FL/RMQm4vsfjxDTpL3ca4AqAERBjkqsjCe+3ltxHaFXzgsIr lzB5S65v1yMbXSGslWm8jEWjZtxHkWGXelpQ0WpuU33ckJhWIC7Befc21S8rv6UzoOQE OO7jdGXe0meKgoFrCe+cC5wbniH/3mTMk6lyyAMXhBrFuwNzk/g6whs8g8SbAkckrLlg bJ081QdRB8bgzty0lsP6ehGcWRXQ/tntXgBCs8drUgQGNcrw8HhyDuXEAiP5clZo6A1G wUsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796134933; x=1796739733; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=XM+L3OXt0LXFjGxJqGBLPHNef+fki0qxQRRlmRw4+7o=; b=o52ahHUD800uum/z7DvCXUrwva6UGeqVrjlPGO60f8dCK8Ujyvdy4rZsw05SKfs5vo v8/TCHfFDAjWMfQEo0+v0Z0zLILYoEXLys9us5deSQgQbGU4+vW/LcJO3YKUMB13fl/O KLz1+Hp7lOYpTUeKXqTmo3Mqbjo+zUlvbSqw2ElPFf1NlvmQARqLm+NKvhFnq7bM1cyB Rf4rPgpBIcdBa/7rrg+fWp7Wa0Y64dn927Vneneuy/ndyWv4STavk+Eme0/Mp8tbBUoL yT0kN+SZXgdkErrUCl1SfC1n4Gl/F9uUKHoBfQJ3WJkbCb9ymR24RMwO5+d5zW8253uE A2Qw== X-Forwarded-Encrypted: i=1; AL+hErFQAITmoJFjT1N0kUaqac7LUVq4am6+dL3F5+D94LROIsh5W9Mi+mw0rOmlZqS79xqMNMUVjIXwFosD82o=@vger.kernel.org X-Gm-Message-State: APuU4Z+H6P7TedHse7Xl6ItQ3gmqw1GM+xg4NmoCRQMtCwPpkrg3/ykU ss++CzfbVkj8ugQ0NmcCnes81jrAn6XMCW/u3/b+0yIxGjb98KCoDT8bhmfXQbTBVm/xzmzKQ0p fBsWLhOipSJpZ0Yj7aggtubU8E+stYT0JlZdnBgaUTnNvf4jrf+bpye0UrLOA7lf1rA== X-Gm-Gg: AZFdTZcIFNFh+EsscTxbmeHQ6Vep8KPL+jtsVo12MD7+BS9plqt2EKQdu8yAzK7GAGH pA/Mi2UN0KwzGBxP+k+F28fPodyS6esqSowL8jQCZxQ3ZAGwndbycB20F3XEz9CdD2EWI0vkMOd Ytds9AlQ2eXJ3/jrfwKkhF9bcQNqfXj/79Hg3Kpo4K+fuP8t3iBXHudl2MCxpPrE8/MyBsx4u8P R/RbjOSfYQGdSpI2IvE2KbrFAifelVBTQ4xN/FANgFkmNK3/wXFnDRk0rUKtj2fyXPC3O6LKzcl BtNPnewmqSrYztt5wMnNpIZNB8hfI+IWyQzI92cyfBIbpziVN1g4KTvs8apQnmAviS7yVekghnL MCGEePZUxVv8iYwjRGwaToe3CkCcyXYAMyR+JqNTrsiDKEhY8L7ienjXMvAOjmKnKkHsmeMGH5a WoEwyvOsT2+vrr16Chjwx2O1OH8tgmPJP55yjklyncbIk= X-Received: by 2002:a05:600c:1548:b0:4a3:5aea:21e5 with SMTP id 5b1f17b1804b1-4bb887fe7e0mr760802995e9.9.1796134932791; Tue, 01 Dec 2026 06:22:12 -0800 (PST) X-Received: by 2002:a05:600c:1548:b0:4a3:5aea:21e5 with SMTP id 5b1f17b1804b1-4bb887fe7e0mr760802295e9.9.1796134932299; Tue, 01 Dec 2026 06:22:12 -0800 (PST) Received: from [192.168.88.30] (ip231-128-192-82.pool-bba.aruba.it. [82.192.128.231]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbbaeb1e4csm299210665e9.13.2026.12.01.06.22.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 06:22:11 -0800 (PST) Message-ID: <5199bd7c-c504-404a-878d-86dc0bb5e986@redhat.com> Date: Tue, 1 Dec 2026 15:22:10 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] rxrpc: Bound the OOB challenge queue per connection To: Lin Ma , David Howells , Marc Dionne Cc: netdev@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org References: <20261123011320.4032340-1-linma@zju.edu.cn> Content-Language: en-US From: Paolo Abeni In-Reply-To: <20261123011320.4032340-1-linma@zju.edu.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/23/26 02:13, Lin Ma wrote: > rxrpc_notify_socket_oob() adds CHALLENGE packets to the owning socket's > recvmsg_oobq without any limit. A peer that keeps sending CHALLENGEs on > an existing connection can therefore grow that queue, and the > pending_oobq tree it feeds, without bound if the socket owner never > reads or responds to them. Each queued skb also holds a reference to > the connection. > > A connection cannot make progress until a CHALLENGE is answered, so > there is no point in retaining an arbitrarily deep backlog of them. > Count the outstanding OOB skbs against the connection and drop new > CHALLENGEs once a small limit is reached. The count is dropped when the > skb is finally freed, whether by the userspace response path, the kernel > OOB API or socket teardown. > > Dropping the packet consumes it without sending a reject, so a flood > does not abort the connection; if the application cannot keep up, the > existing call and connection timeouts still apply. > > Fixes: 5800b1cf3fd8 ("rxrpc: Allow CHALLENGEs to the passed to the app for a RESPONSE") > Signed-off-by: Lin Ma Looks reasonable to me. @David: could you please have a look here? Thanks, Paolo