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=1796134939; b=MufYZDZbawMF4TvqXGnlMjfQudkmKEnmoZ4Yluhf/aEzuFcS63R9UW3hrNwOZwkyDvOn Sx5q7vAKzDN0mJRJDAsG9+Q7TtVNalxmUJNNVV2fBhC74Nfk9tdHOGZrq8FzQV1cAuzcL iHXlcVmIyqmdUWbb079tqY5ZZOcTiBEa1VSTFmrEmCuWrwaXc4S9Ay96SX8aju6yfjCj0 kaF1m0F+83p1MXDIrRxaoc8GfW3G7c08+DDwVmIFb+9imWzVhOhi60g3C+PdzG70V/6TW YVjVUsWKLyFid1agBqBcOChnynJhIlKW08saxSHW3D0JnDLeLjQkbocs87XQnvT3pfA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796134939; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: 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=nJhBgMNtJ1+8icMxMlwjj4LaGpFj0of9PyNmVmPWL7NniBNhJWEKuZ9kE5zjiOcSeYJ5 EutsKN3tPFjgGJbGy4KuZ7dIhtcTWoXmDG+H0LzCSAEED93J8oZp3H68/3z8cPOJkaZZJ ikRvG7UFYMq9xDkZxbYwKMd/oM5n5dfunzwWhQ6ulStO7i93HxjShHrfBLc2kDvFxuIt9 x7rrJ8xZlnVtbHhDnMbrNAlBb4d5t5zI40eNE0nn1it4SLXL5bIXo+6Nha7uH+4Age1f5 YuE8bPsz8uwrnszNHyrS9twKcptfSWf9ekh8Uj0L6W6PpoadqjVXCgnVlKYKeJAi6XQ== 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=MkzUkWOS; 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 02096606A33D for ; Tue, 1 Dec 2026 14:22:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 02096606A33D 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=MkzUkWOS; 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=1796134938; 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=MkzUkWOSq6UnFBQdYd+pBb94jmsAYP6xrtMSqB1aJEgkWPA4gc6aBmvFPSIBnuC5njAQcN oqxldrDE1oZVtek7Y4yAJkgDoY70LPH7u/bpfchv62srMIfd0DKLsjHc92byV3Kf3E44wj ToasROTYvbo6CD7MiwIpr30yNvIAFYU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-609-E0s-UqtvN5y6kFCrhp1sDA-1; Tue, 1 Dec 2026 14:22:14 +0000 X-MC-Unique: E0s-UqtvN5y6kFCrhp1sDA-1 X-Mimecast-MFC-AGG-ID: E0s-UqtvN5y6kFCrhp1sDA_1796134933 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4994d67d0e3so73727995e9.2 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=YHbO7wZOgFKHtAQVns5wNF6ZDJRm6lQsDN4i8u1dF9MsBUDhnd6fifqcTiQD7vAxHK zPtdOIbjpLKTrIGi8gUSFFfMrsFIPQ5QeEoWP/L+/SRkWW7A8otuwamGcn8Lx5OH4FfD Ef38Mq4dyE6ZdaeRHcSQAmMLInHuuVhodsd+WhdcUnhGtN7+L3kud/F5RlpnP2Gm3b2c UkjCOk8c5NMFK7V9AKPrrCnVGnxkGYaAf1vVXhsVJ+Ajh3EPHgAYjQfZ0xil73nnZsvp jNeqm6m/trraDJOnRM5vaBXM75pDUIZ08k1fVO4sYAybvY0pQC6PKn93tOzyo/FJxX3u sp1g== X-Gm-Message-State: APuU4Z91s73j6Wco0jL1Kdqkv2JZXvYiN8DvihmT+iYwHHJe8hURnkhm pJtAu48GusP0fa8435JxwrvLQHkdgcvGW4mcnPEEOxm4g5ls/LfiL6YNf9mwhoVgtJ/3+/joBdc M2HToZgdNJyhTAsY74cwiNLjLKQAaqbOf3R6yrnEir6gEaow3FqB9RtONqyTSk74Lxg== X-Gm-Gg: AZFdTZeEoDVdgjqhEMbQMYHpPDLJVJW8D2263rgvtY6PuWCLh8pLL159AjBT6yP6aBC kpKGtfKzTeFrNluOYKbiRWBoGXpy26qev/clrqbn7ibNAK9Mmrnc2WXLqRdX9LpqhPbUVDqIwcN pHMQOBGxYJWqqFmst6JMAKSyOsOCzWbX3QMH2tYLdkzurHpXHwoFCCc5Jn2UTcZpgi/G/VKE2tN bZ7aWYq5PmVj0jigA3TPGWB66w9eHAJ6wlXxmyDC5KdDxcmxNTXfHSnaJ3yICEgr/Y+pt9UINTp EptrL3B4Ti9zmvu0/FjkHuUidZaWFvsQJRsZjoOr8ePkIJc+s4FwPskyjtnilQysTb15EkKNMqa NOYuBgbIUq9lwNdbC2IEyDv8tjeIRmfq9gGO/YOBISf3FC847zRC80dSOCHOaWcv8yEgw+5apRG xcKn1SquSWJ1fON4nyG2FEIdO+BY74t5oZB4iiUDcya3M= X-Received: by 2002:a05:600c:1548:b0:4a3:5aea:21e5 with SMTP id 5b1f17b1804b1-4bb887fe7e0mr760802945e9.9.1796134932779; 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: netdev@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