]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
geneve: ensure the skb is writable before fixing its headers
authorAntoine Tenart <atenart@kernel.org>
Thu, 9 Jul 2026 12:50:00 +0000 (14:50 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Jul 2026 17:20:05 +0000 (10:20 -0700)
commit447ec540233c60d6af4d68a164a5bc8ce7e975c1
treef26c58ab25933dc8138750f27a3aea9dc199e2c0
parent751bfa982b4a6de8275a552804f6971adcf08473
geneve: ensure the skb is writable before fixing its headers

Make sure the IPv4/6 and UDP headers are writable before fixing them up in
geneve_post_decap_hint. As skb_ensure_writable can reallocate the skb linear
area, reload the GRO hint header pointer and only set the IPv4/6 header ones
after the call.

Fixes: fd0dd796576e ("geneve: use GRO hint option in the RX path")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260529144713.780938-1-atenart%40kernel.org
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260709125000.141092-1-atenart@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/geneve.c