RFC explicit netdev refs
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: add netdev_refs debugMAINTAINERS include/ lib/ +1 more | +120 | 4 replies | |
| 2/2 | vlan: use new netdev_refs infradrivers/ include/ net/ +6 more | +66 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC net-next 0/2] explicit netdev refs
syzbot keeps accumulating netdev ref leak errors. These are notoriously hard to debug. We can't do much about all the old code at this point, this set tries to provide an API for the new code to use.
It basically adds a explicitly reference counted pointer (there's probably a better name for this). It's a structure which wraps the netdev pointer and helps us doing sanity checking.
There isn't much that's netdev-specific here, but we probably still want to keep our own wrappers even if the main struct gets generalized, so that we can keep the helpers typed.
Sending as an RFC because vlan refcounting has a bug which needs to be fixed first [1]. Explicit refs catch it and spew warnings appropriately.
[1] https://lore.kernel.org/all/[email protected]/
Jakub Kicinski (2):
net: add netdev_refs debug
vlan: use new netdev_refs infra
MAINTAINERS | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c | 3 +- include/linux/if_vlan.h | 11 +- include/linux/netdev_refs.h | 104 +++++++++++++++++++ lib/Kconfig.debug | 7 ++ net/8021q/vlan.c | 13 +-- net/8021q/vlan_core.c | 4 +- net/8021q/vlan_dev.c | 63 +++++------ net/8021q/vlan_gvrp.c | 5 +- net/8021q/vlan_mvrp.c | 5 +- net/8021q/vlan_netlink.c | 4 +- net/8021q/vlanproc.c | 6 +- net/core/dev.c | 8 ++ 13 files changed, 186 insertions(+), 48 deletions(-) create mode 100644 include/linux/netdev_refs.h
Signature · 1 line
2.31.1