diff options
author | Jussi Maki <joamaki@gmail.com> | 2021-08-12 14:52:41 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-13 14:03:28 -0700 |
commit | 39a0876d595bd7c7512782dfcce0ee66f65bf221 (patch) | |
tree | a0f33adadc502dabf2a903ab8b0ebe2ef928de77 /net | |
parent | 876c14ad014d0e39c57cbfde53e13d17cdb6d645 (diff) | |
download | linux-stable-39a0876d595bd7c7512782dfcce0ee66f65bf221.tar.gz linux-stable-39a0876d595bd7c7512782dfcce0ee66f65bf221.tar.bz2 linux-stable-39a0876d595bd7c7512782dfcce0ee66f65bf221.zip |
net, bonding: Disallow vlan+srcmac with XDP
The new vlan+srcmac xmit policy is not implementable with XDP since
in many cases the 802.1Q payload is not present in the packet. This
can be for example due to hardware offload or in the case of veth
due to use of skbuffs internally.
This also fixes the NULL deref with the vlan+srcmac xmit policy
reported by Jonathan Toppins by additionally checking the skb
pointer.
Fixes: a815bde56b15 ("net, bonding: Refactor bond_xmit_hash for use with xdp_buff")
Reported-by: Jonathan Toppins <jtoppins@redhat.com>
Signed-off-by: Jussi Maki <joamaki@gmail.com>
Reviewed-by: Jonathan Toppins <jtoppins@redhat.com>
Link: https://lore.kernel.org/r/20210812145241.12449-1-joamaki@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions