[PATCH net-next v2 0/2] bridge: report an oversized IFLA_AF_SPEC nest instead of truncating
Artem Lytkin
iprintercanon at gmail.com
Sat Sep 12 13:50:20 UTC 2026
v1 clamped the VLAN lists to keep the nest under the u16 nla_len.
Nikolay asked for an explicit error for both RTM_GETLINK and
notifications, with the extack set by the bridge itself. So patch 1
plumbs extack through ndo_bridge_getlink() and patch 2 returns -E2BIG
and points userspace at RTM_GETVLAN.
v1: https://lore.kernel.org/netdev/20260906224246.21719-1-iprintercanon@gmail.com/
Artem Lytkin (2):
rtnetlink: pass extack to ndo_bridge_getlink()
net: bridge: fail link info that does not fit the IFLA_AF_SPEC nest
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 4 ++--
drivers/net/ethernet/emulex/benet/be_main.c | 4 ++--
drivers/net/ethernet/intel/i40e/i40e_main.c | 6 ++++--
drivers/net/ethernet/intel/ice/ice_main.c | 6 ++++--
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 5 +++--
.../net/ethernet/mellanox/mlx5/core/en_main.c | 4 ++--
.../ethernet/netronome/nfp/nfp_net_common.c | 4 ++--
drivers/s390/net/qeth_l2_main.c | 4 ++--
include/linux/netdevice.h | 5 +++--
include/linux/rtnetlink.h | 3 ++-
net/bridge/br_netlink.c | 16 ++++++++++++----
net/bridge/br_private.h | 2 +-
net/core/rtnetlink.c | 18 +++++++++++-------
13 files changed, 50 insertions(+), 31 deletions(-)
base-commit: 879e280b8486d4612ad1aa050d6fada2dd80cf1c
--
2.43.0
More information about the Intel-wired-lan
mailing list