From nobody Mon Apr 6 11:53:28 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 A4F213E1CFF for ; Thu, 19 Mar 2026 15:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773932576; cv=none; b=bQj8uoAZSINPcWA5ItxLs+u7/b9oqpPTBgm2f3iEDDxGipeqGFXszi0G/RYtmwxuDDUVIy7970Xc138A1ZDn10oLiGB/F3DLT+HA//iN4Xo0cp/p1ipPPqbpUID3lpzViSy5s1CKKUhFAYxeFXUKUl5nMHwJSEBvMtOsjxBxzUg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773932576; c=relaxed/simple; bh=yYt2ZZrom4OBrOckOQ2uDB2KRzi+ygnnBnUBMule74s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dr6oDNmyUSs+NyNrSYMfXkMloTl9ofdC7ITYDBmrOIEEPrsn+dCwIUgaC7nrmNTo9KaBEPPooeGALLN7AXjQ6ifufSTELgwvBujP+KoLhmjxwoRdERHqT8WXSERFFp8hkQd99kcDULpS4UHRTflXavML+YRi1wCff/sTxrdjdpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=O9vFM5d2; arc=none smtp.client-ip=170.10.133.124 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.b="O9vFM5d2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773932572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qe8BjP28NMw5ykXz64SRH/WFS1bGGID3gMz6oA2YqQM=; b=O9vFM5d2ghhgu9Eu9DaCkQeCOhl1BFQVUjGsQXGXxKiGw9KwRTxEZYIMmrQxaxGPgoKfEQ yXRqvpI3MhEp+dnMejgYeJIeFyekBzBTch+dvIL7qq8eTBtbWn2W6ZPsMmpQBqjSyzxUOf Olc3Dhq7O1jgUcLZF8BVOzIZfdN+CfQ= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-222-0q5b5iDpMMqukYlXRLNv8Q-1; Thu, 19 Mar 2026 11:02:48 -0400 X-MC-Unique: 0q5b5iDpMMqukYlXRLNv8Q-1 X-Mimecast-MFC-AGG-ID: 0q5b5iDpMMqukYlXRLNv8Q_1773932566 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4278A18002F4; Thu, 19 Mar 2026 15:02:46 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.45.224.65]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 226F91800576; Thu, 19 Mar 2026 15:02:41 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , Marc Dionne , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, Alok Tiwari , Jeffrey Altman , Simon Horman , stable@kernel.org Subject: [PATCH net 2/5] rxrpc: Fix use of wrong skb when comparing queued RESP challenge serial Date: Thu, 19 Mar 2026 15:01:42 +0000 Message-ID: <20260319150150.4189381-3-dhowells@redhat.com> In-Reply-To: <20260319150150.4189381-1-dhowells@redhat.com> References: <20260319150150.4189381-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Content-Type: text/plain; charset="utf-8" From: Alok Tiwari In rxrpc_post_response(), the code should be comparing the challenge serial number from the cached response before deciding to switch to a newer response, but looks at the newer packet private data instead, rendering the comparison always false. Fix this by switching to look at the older packet. Fixes: 5800b1cf3fd8 ("rxrpc: Allow CHALLENGEs to the passed to the app for = a RESPONSE") Signed-off-by: Alok Tiwari Signed-off-by: David Howells Reviewed-by: Jeffrey Altman cc: Marc Dionne cc: Eric Dumazet cc: "David S. Miller" cc: Jakub Kicinski cc: Paolo Abeni cc: Simon Horman cc: linux-afs@lists.infradead.org cc: netdev@vger.kernel.org cc: stable@kernel.org --- net/rxrpc/conn_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/conn_event.c b/net/rxrpc/conn_event.c index 98ad9b51ca2c..2c27f47951f9 100644 --- a/net/rxrpc/conn_event.c +++ b/net/rxrpc/conn_event.c @@ -557,7 +557,7 @@ void rxrpc_post_response(struct rxrpc_connection *conn,= struct sk_buff *skb) spin_lock_irq(&local->lock); old =3D conn->tx_response; if (old) { - struct rxrpc_skb_priv *osp =3D rxrpc_skb(skb); + struct rxrpc_skb_priv *osp =3D rxrpc_skb(old); =20 /* Always go with the response to the most recent challenge. */ if (after(sp->resp.challenge_serial, osp->resp.challenge_serial))