diff options
| author | Guillaume Nault <[email protected]> | 2024-06-19 13:34:57 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-06-22 00:34:15 +0000 |
| commit | 31392048f55f98cb01ca709d32d06d926ab9760a (patch) | |
| tree | 60039844971472f7744bf49b0594434822fb842d /net/unix/af_unix.c | |
| parent | Merge branch 'mlxsw-fixes' (diff) | |
| download | kernel-31392048f55f98cb01ca709d32d06d926ab9760a.tar.gz kernel-31392048f55f98cb01ca709d32d06d926ab9760a.zip | |
vxlan: Pull inner IP header in vxlan_xmit_one().
Ensure the inner IP header is part of the skb's linear data before
setting old_iph. Otherwise, on a non-linear skb, old_iph could point
outside of the packet data.
Unlike classical VXLAN, which always encapsulates Ethernet packets,
VXLAN-GPE can transport IP packets directly. In that case, we need to
look at skb->protocol to figure out if an Ethernet header is present.
Fixes: d342894c5d2f ("vxlan: virtual extensible lan")
Signed-off-by: Guillaume Nault <[email protected]>
Link: https://patch.msgid.link/2aa75f6fa62ac9dbe4f16ad5ba75dd04a51d4b99.1718804000.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
