]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipvs: fix more places with wrong ipv6 transport offsets
authorJulian Anastasov <ja@ssi.bg>
Wed, 8 Jul 2026 18:03:15 +0000 (21:03 +0300)
committerFlorian Westphal <fw@strlen.de>
Fri, 10 Jul 2026 14:28:47 +0000 (16:28 +0200)
commitb3fe4cbd583895987935a9bdad01c8f9d3a02310
treec4c5701b56d8b0a834a59f9179ff68c82d9392ef
parenta2f57827bf7c695b8c72dc4511cae8e86582369d
ipvs: fix more places with wrong ipv6 transport offsets

Sashiko reports for more incorrect IPv6 transport offsets.

The app code for TCP was assuming IPv4 network header
even after the ipvsh argument was provided. This can
cause problems with apps over IPv6. As for the only
official app in the kernel tree (FTP) this problem is
harmless because we use Netfilter to mangle the FTP
ports and we do not adjust the TCP seq numbers.

Also, provide correct offset of the ICMPV6 header in
ip_vs_out_icmp_v6() for correct checksum checks when
the IPv6 packet has extension headers.

Fixes: d12e12299a69 ("ipvs: add ipv6 support to ftp")
Fixes: 2a3b791e6e11 ("IPVS: Add/adjust Netfilter hook functions and helpers for v6")
Cc: stable@vger.kernel.org
Link: https://sashiko.dev/#/patchset/20260706101624.69471-1-zhaoyz24%40mails.tsinghua.edu.cn
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/ipvs/ip_vs_app.c
net/netfilter/ipvs/ip_vs_core.c