mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
net: bridge: vlan: fix bugs caused by switchdev deletion errors
Allowing switchdev to prevent vlan deletion and error out in __vlan_del could cause multiple different issues - inconsistent state, memory leaks when flushing, NULL pointer dereference on bridge error when flushing. It doesn't make sense to allow it to stop __vlan_del, so log the error and continue with software vlan deletion. This is also consistent with 8021q behaviour. Suggested-by: Ido Schimmel <idosch@nvidia.com> Fixes:bf361ad381("net: bridge: check __vlan_vid_del for error") Fixes:5454f5c28e("net: bridge: vlan: check for errors from __vlan_del in __vlan_flush") Fixes:2594e9064a("bridge: vlan: add per-vlan struct and move to rhashtables") Fixes:9c86ce2c1a("net: bridge: Notify about bridge VLANs") Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Link: https://patch.msgid.link/20260914105258.3436918-1-razor@blackwall.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f0ef4b1eae
commit
2842ce397d
1 changed files with 14 additions and 17 deletions
Loading…
Add table
Add a link
Reference in a new issue