rtnetlink: Handle error of rtnl_register_module().
Status from this message: This series was applied to netdev/net.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest6 patches 0 repliesApplied 6/6
- v36 patches 6 repliesSuperseded
- v26 patches 6 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 6 patches | 5 replies | Superseded |
Changes in v4 from the cover letter
* Add more context in changelog of each patch
Patches in v4 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | rtnetlink: Add bulk registration helpers for rtnetlink message handlers.include/ net/ | +46 | 0 replies | Applied |
| 2/6 | vxlan: Handle error of rtnl_register_module().drivers/ drivers/ drivers/ | +15 | 0 replies | Applied |
| 3/6 | bridge: Handle error of rtnl_register_module().net/ net/ net/ | +17 | 0 replies | Applied |
| 4/6 | mctp: Handle error of rtnl_register_module().include/ net/ net/ +2 more | +66 | 0 replies | Applied |
| 5/6 | mpls: Handle error of rtnl_register_module().net/ | +21 | 0 replies | Applied |
| 6/6 | phonet: Handle error of rtnl_register_module().net/ | +11 | 0 replies | Applied |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Aleksandrov | Jeremy Kerr | Rémi Denis-Courmont |
|---|---|---|---|
| 1/6 | |||
| 2/6 | R-b | ||
| 3/6 | A-b | ||
| 4/6 | R-b | ||
| 5/6 | |||
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v4 net 0/6] rtnetlink: Handle error of rtnl_register_module().
While converting phonet to per-netns RTNL, I found a weird comment
/* Further rtnl_register_module() cannot fail */
that was true but no longer true after commit addf9b90de22 ("net:
rtnetlink: use rcu to free rtnl message handlers").
Many callers of rtnl_register_module() just ignore the returned value but should handle them properly.
This series introduces two helpers, rtnl_register_many() and rtnl_unregister_many(), to do that easily and fix such callers.
All rtnl_register() and rtnl_register_module() will be converted to _many() variant and some rtnl_lock() will be saved in _many() later in net-next.
Changes:
v4:
* Add more context in changelog of each patch
v3: https://lore.kernel.org/all/[email protected]/
* Move module *owner to struct rtnl_msg_handler
* Make struct rtnl_msg_handler args/vars const
* Update mctp goto labels
v2: https://lore.kernel.org/netdev/[email protected]/
* Remove __exit from mctp_neigh_exit().
v1: https://lore.kernel.org/netdev/[email protected]/
Kuniyuki Iwashima (6):
rtnetlink: Add bulk registration helpers for rtnetlink message
handlers.
vxlan: Handle error of rtnl_register_module().
bridge: Handle error of rtnl_register_module().
mctp: Handle error of rtnl_register_module().
mpls: Handle error of rtnl_register_module().
phonet: Handle error of rtnl_register_module().
drivers/net/vxlan/vxlan_core.c | 6 +++++- drivers/net/vxlan/vxlan_private.h | 2 +- drivers/net/vxlan/vxlan_vnifilter.c | 19 ++++++++--------- include/net/mctp.h | 2 +- include/net/rtnetlink.h | 17 +++++++++++++++ net/bridge/br_netlink.c | 6 +++++- net/bridge/br_private.h | 5 +++-- net/bridge/br_vlan.c | 19 ++++++++--------- net/core/rtnetlink.c | 29 +++++++++++++++++++++++++ net/mctp/af_mctp.c | 6 +++++- net/mctp/device.c | 30 +++++++++++++++----------- net/mctp/neigh.c | 31 ++++++++++++++++----------- net/mctp/route.c | 33 ++++++++++++++++++++--------- net/mpls/af_mpls.c | 32 ++++++++++++++++++---------- net/phonet/pn_netlink.c | 28 ++++++++++-------------- 15 files changed, 176 insertions(+), 89 deletions(-)
Signature · 1 line
2.30.2