]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipvs: ensure inner headers in ICMP errors are in headroom
authorJulian Anastasov <ja@ssi.bg>
Tue, 7 Jul 2026 18:25:46 +0000 (21:25 +0300)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Jul 2026 13:33:44 +0000 (15:33 +0200)
commit3f7a535ff0fa627a0132803e4c2f903ceffcbc1c
treef92b10488f2616de428daa344ee86d11ecfeef01
parent2f75c0faa3361b28e36cc0512b3299e163e25789
ipvs: ensure inner headers in ICMP errors are in headroom

Sashiko points out that after stripping the outer headers
with pskb_pull() we should ensure the inner IP headers
in ICMP errors from tunnels are present in the skb headroom
for functions like ipv4_update_pmtu(), icmp_send() and
IP_VS_DBG().

Also, add more checks for the length of the inner headers.

Fixes: f2edb9f7706d ("ipvs: implement passive PMTUD for IPIP packets")
Link: https://sashiko.dev/#/patchset/20260702073430.67680-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_core.c