From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8F7F604A0; Tue, 13 Feb 2024 17:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707845768; cv=none; b=BJdB9wV5NmKTjrlT4gW+Z9PwT0x/dFzO9IGzuZiPkm56VSNFksaafAL1PdkVYXroK2kKI1ld4CmYrNabf6cFs4gnsT0QOQURili0R0s7oW+YnZpFlmxQ/ojawxa+s8+N2nmGMJsLltGPaRK90UuLuEwJKpn0WSORSgVxWm0pc8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707845768; c=relaxed/simple; bh=cUPKiBcRvJBcdBUj9nTK8LQyDfZfU/66LO6u3F5ujQE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AIjZDYpl5j1Xtts4dlJiMqDXwQ4qX4UdhPX2R2CiIvFaXuKiDOe05yDNxIZXisUddJP0BKL7ggpDsDiUBs2WbdTTDKoLXEF4RXlpNRP7JdjVDegBeuRNtiAa5k0YLwFpnCI07hdQddFJ5IyVuyy8cvmdheP3yBn1+TUmFUhYaPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Cgp87Fxm; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Cgp87Fxm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10BA4C433F1; Tue, 13 Feb 2024 17:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707845768; bh=cUPKiBcRvJBcdBUj9nTK8LQyDfZfU/66LO6u3F5ujQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cgp87FxmwP6IBHrzzSlBB5F4gHnhIgttdIvIR9cvss74mxEC0101JighFJJbgykbX b5gxwEJn/mjgI3kEUtFbv9OutLc9TrE9FSlTKyRk5t2mdgRjVw/d1R5xNw2s8F7gQ8 YGX2IKOy44JgpfmJr1fmFbvuc6qknuriz+U31yqQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Howells , Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, netdev@vger.kernel.org, Sasha Levin Subject: [PATCH 6.7 051/124] rxrpc: Fix response to PING RESPONSE ACKs to a dead call Date: Tue, 13 Feb 2024 18:21:13 +0100 Message-ID: <20240213171855.230288784@linuxfoundation.org> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240213171853.722912593@linuxfoundation.org> References: <20240213171853.722912593@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.7-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Howells [ Upstream commit 6f769f22822aa4124b556339781b04d810f0e038 ] Stop rxrpc from sending a DUP ACK in response to a PING RESPONSE ACK on a dead call. We may have initiated the ping but the call may have beaten the response to completion. Fixes: 18bfeba50dfd ("rxrpc: Perform terminal call ACK/ABORT retransmission from conn processor") Signed-off-by: David Howells cc: Marc Dionne cc: "David S. Miller" cc: Eric Dumazet cc: Jakub Kicinski cc: Paolo Abeni cc: linux-afs@lists.infradead.org cc: netdev@vger.kernel.org Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/rxrpc/conn_event.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/net/rxrpc/conn_event.c b/net/rxrpc/conn_event.c index ec5eae60ab0c..1f251d758cb9 100644 --- a/net/rxrpc/conn_event.c +++ b/net/rxrpc/conn_event.c @@ -95,6 +95,14 @@ void rxrpc_conn_retransmit_call(struct rxrpc_connection *conn, _enter("%d", conn->debug_id); + if (sp && sp->hdr.type == RXRPC_PACKET_TYPE_ACK) { + if (skb_copy_bits(skb, sizeof(struct rxrpc_wire_header), + &pkt.ack, sizeof(pkt.ack)) < 0) + return; + if (pkt.ack.reason == RXRPC_ACK_PING_RESPONSE) + return; + } + chan = &conn->channels[channel]; /* If the last call got moved on whilst we were waiting to run, just -- 2.43.0