Skip to content

bridge: vlan: cleanups & fixes

Nikolay Aleksandrov bridge netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bridge: vlan: adjust rhashtable initial size and hash locks sizenet/bridge/br_vlan.c+2 -00 replies
2/5bridge: vlan: fix possible null vlgrp deref while registering new portnet/bridge/br_vlan.c+3 -10 replies
3/5bridge: vlan: move pvid inside net_bridge_vlan_groupnet/bridge/br_device.c net/bridge/br_input.c net/bridge/br_netlink.c +2 more+75 -1180 replies
4/5bridge: vlan: fix possible null ptr derefs on port init and deinitnet/bridge/br_if.c net/bridge/br_vlan.c+12 -73 replies
5/5bridge: vlan: don't pass flags when creating context onlynet/bridge/br_vlan.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/5] bridge: vlan: cleanups & fixes

From: Nikolay Aleksandrov <[email protected]>

Hi,
This is the first follow-up set, patch 01 reduces the default rhashtable size and the number of locks that can be allocated. Patch 02 and 04 fix possible null pointer dereferences due to the new ordering and initialization on port add/del, and patch 03 moves the "pvid" member in the net_bridge_vlan_group struct in order to simplify code (similar to how it was with the older struct). Patch 05 fixes adding a vlan on a port which is pvid and doesn't have a global context yet.
Please review carefully, I think this is the first use of rhashtable's "locks_mul" member in the tree and I'd like to make sure it's correct. Another thing that needs special attention is the nbp_vlan_flush() move after the rx_handler unregister.

Cheers,
Nik

Nikolay Aleksandrov (5):
bridge: vlan: adjust rhashtable initial size and hash locks size
bridge: vlan: fix possible null vlgrp deref while registering new port
bridge: vlan: move pvid inside net_bridge_vlan_group
bridge: vlan: fix possible null ptr derefs on port init and deinit
bridge: vlan: don't pass flags when creating context only

 net/bridge/br_device.c  |   2 +-
 net/bridge/br_if.c      |   3 +-
 net/bridge/br_input.c   |   2 +-
 net/bridge/br_netlink.c |  42 +++++++---------
 net/bridge/br_private.h |  44 +++++------------
 net/bridge/br_vlan.c    | 127 ++++++++++++++++++++++--------------------------
 6 files changed, 93 insertions(+), 127 deletions(-)
Signature · 1 line
2.4.3