From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EC09A3F6619; Wed, 20 May 2026 18:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300289; cv=none; b=jTbLOmltXePeAUzvnauuO9YrTK1+iubiHte5klF4WaY9x1XUWTvlJ69xuDOlcYqPn3QxP5rrpBhCWNtKXceKFnsHbe1W4ynEVKsU++p1cmStFY6d5hiuUMW/o1/VdqmjIUauAZE0gPnuVSvZv7vQTW54zFiDl5wv4kFYD0szhgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779300289; c=relaxed/simple; bh=BFBwWnsLd9rNu5l32locduPO+BHnSA7lf3Lh1JwPKh0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZDvVAQGKtmKlWoqCeKXyJSV7p3Bl41LfvQIioQcereKPwMw1IoKonEQ5A55Mhurt0zcyfrOQNe211E0f1pX7U80APNbfvJikfxmZoZNJrJCP9H8k4tOY2nV+FTlQB5wty6sn1o2Gdx+1Fsi4Mu+4XJkiZGBiwkSlA6R/CBhrvlo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YX9zCZtU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YX9zCZtU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C34B1F000E9; Wed, 20 May 2026 18:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779300287; bh=JK84S0JnfdFe+2AclrqHb0SD1dK9TOO3+SQC0DYH4lA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YX9zCZtUpkEQtArErBjtQJbnC+1XllfKwzMiQ/XHAYv1mR0irUkoDVc2/6unBq3aY dn24M1YVoHNd4X9DPK7wQiWsxvhlCVo+pzA9HL/1WmJQ5msoUkaVrTNkIxXsU5rQYT FZq39zgmW6smq24OAiwIpZXgoAVeCEF634hgkKjA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Xin Long , Marcelo Ricardo Leitner , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.12 116/666] sctp: fix missing encap_port propagation for GSO fragments Date: Wed, 20 May 2026 18:15:27 +0200 Message-ID: <20260520162113.734452607@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162111.222830634@linuxfoundation.org> References: <20260520162111.222830634@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xin Long [ Upstream commit bf6f95ae3b8b2638c0e1d6d802d50983ce5d0f45 ] encap_port in SCTP_INPUT_CB(skb) is used by sctp_vtag_verify() for SCTP-over-UDP processing. In the GSO case, it is only set on the head skb, while fragment skbs leave it 0. This results in fragment skbs seeing encap_port == 0, breaking SCTP-over-UDP connections. Fix it by propagating encap_port from the head skb cb when initializing fragment skbs in sctp_inq_pop(). Fixes: 046c052b475e ("sctp: enable udp tunneling socks") Signed-off-by: Xin Long Acked-by: Marcelo Ricardo Leitner Link: https://patch.msgid.link/ea65ed61b3598d8b4940f0170b9aa1762307e6c3.1776017631.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/sctp/inqueue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c index f5a7d5a387555..a024c08432471 100644 --- a/net/sctp/inqueue.c +++ b/net/sctp/inqueue.c @@ -201,6 +201,7 @@ struct sctp_chunk *sctp_inq_pop(struct sctp_inq *queue) cb->chunk = head_cb->chunk; cb->af = head_cb->af; + cb->encap_port = head_cb->encap_port; } } -- 2.53.0