[PATCH net-next 0/4] netconsole: fix target enable race and configfs read locking

From: Gustavo Luiz Duarte

Date: Mon Sep 28 2026 - 14:02:10 EST


While looking into the sashiko report about local_ip_show() and
remote_ip_show() missing proper locking [1] (fixed in patch 3/4), I
noticed a couple other places that need locking: patch 1/4 fixes a
null-ptr-deref when enabling a target races against a NETDEV_UNREGISTER
event, and patch 2/4 fixes a use-after-free when the local_mac_show()
callback races against a NETDEV_UNREGISTER event. Patch 4/4 is mostly
cosmetic but worth fixing.

[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260814-netcons_ipv6-v3-7-bc0915e8c75f@xxxxxxxxx

Signed-off-by: Gustavo Luiz Duarte <gustavold@xxxxxxxxx>
---
Gustavo Luiz Duarte (4):
netconsole: finish enabling the target before releasing RTNL
netconsole: read np.dev under the RTNL in local_mac_show()
netconsole: avoid printing partially updated target attributes
netconsole: remove unnecessary target refcounting from the netdev notifier

drivers/net/netconsole.c | 110 ++++++++++++++++++++++++++---------------------
1 file changed, 60 insertions(+), 50 deletions(-)
---
base-commit: 014d795c73837ea2339a4ea8e8f82c6e959b845d
change-id: 20260925-netcons-fixes-93a3e14326b5

Best regards,
--
Gustavo Luiz Duarte <gustavold@xxxxxxxxx>