mirror_ubuntu-kernels/drivers/net/bonding
Jussi Maki 39a0876d59 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: a815bde56b ("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>
2021-08-13 14:03:28 -07:00
..
bond_3ad.c bonding: add new option lacp_active 2021-08-03 11:50:22 +01:00
bond_alb.c net: bonding: bond_alb: Remove the dependency on ipx network layer 2021-08-07 09:47:05 +01:00
bond_debugfs.c net: bonding: remove unnecessary braces 2021-05-20 15:43:24 -07:00
bond_main.c net, bonding: Disallow vlan+srcmac with XDP 2021-08-13 14:03:28 -07:00
bond_netlink.c bonding: add new option lacp_active 2021-08-03 11:50:22 +01:00
bond_options.c bonding: add new option lacp_active 2021-08-03 11:50:22 +01:00
bond_procfs.c bonding: add new option lacp_active 2021-08-03 11:50:22 +01:00
bond_sysfs_slave.c bonding: wait for sysfs kobject destruction before freeing struct slave 2020-11-21 13:07:00 -08:00
bond_sysfs.c bonding: add new option lacp_active 2021-08-03 11:50:22 +01:00
bonding_priv.h drivers: Remove inclusion of vermagic header 2020-04-21 13:27:37 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00