Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/5] net: free per-open allocations and interrupts
@ 2026-12-01 19:13 Arina Kharlamova via B4 Relay
  2026-12-01 19:13 ` [PATCH net 1/5] net: rtsn: fix irq name leak in rtsn_request_irq() Arina Kharlamova via B4 Relay
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Arina Kharlamova via B4 Relay @ 2026-12-01 19:13 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Michal Simek, Esben Haabendal, David Heidelberg,
	Jialu Xu, Linus Walleij, Bartosz Golaszewski, Byungho An,
	Niklas Söderlund
  Cc: Niklas Söderlund, Andrew Lunn, netdev, linux-renesas-soc,
	linux-arm-kernel, oe-linux-nfc, Arina Kharlamova

These drivers allocate memory or request interrupts with devm in
ndo_open or in the line discipline open, so every open leaves them
behind until the device is unbound. In sxgbe every open after the
first one then fails with -EBUSY.

I found this with spec2patch. I model-checked the probe and remove paths
of the driver with CBMC against formal specifications of the kernel APIs
it calls. The specifications are checked against the kernel source, and
some of them are proved in Rocq against a transcription of the kernel
code. I also checked lock usage separately. With the help of an AI
coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

The other 2014 sxgbe authors' addresses are no longer valid, so they are
not in Cc.

To: Niklas Söderlund <niklas.soderlund@ragnatech.se>

---
Arina Kharlamova (5):
      net: rtsn: fix irq name leak in rtsn_request_irq()
      net: sxgbe: free the interrupts in sxgbe_release()
      net: sxgbe: free the TX ring arrays in free_tx_ring()
      net: ll_temac: fix rx_skb leak in temac_dma_bd_init()
      nfc: nfcmrvl: do not use devres for the reset GPIO

 drivers/net/ethernet/renesas/rtsn.c             | 13 +++---
 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 60 +++++++++++++++++--------
 drivers/net/ethernet/xilinx/ll_temac_main.c     |  8 ++--
 drivers/nfc/nfcmrvl/main.c                      |  9 +++-
 drivers/nfc/nfcmrvl/uart.c                      | 15 +++----
 5 files changed, 67 insertions(+), 38 deletions(-)
---
base-commit: c712df600d056cc35ef7621e43c8e12513bae886
change-id: 20261201-s2p-lpr-net-fffd7804d1b3

Best regards,
--  
Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-04 10:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:13 [PATCH net 0/5] net: free per-open allocations and interrupts Arina Kharlamova via B4 Relay
2026-12-01 19:13 ` [PATCH net 1/5] net: rtsn: fix irq name leak in rtsn_request_irq() Arina Kharlamova via B4 Relay
2026-12-01 19:13 ` [PATCH net 2/5] net: sxgbe: free the interrupts in sxgbe_release() Arina Kharlamova via B4 Relay
2026-12-04 10:14   ` netdev-bot+sashiko
2026-12-01 19:13 ` [PATCH net 3/5] net: sxgbe: free the TX ring arrays in free_tx_ring() Arina Kharlamova via B4 Relay
2026-12-01 19:13 ` [PATCH net 4/5] net: ll_temac: fix rx_skb leak in temac_dma_bd_init() Arina Kharlamova via B4 Relay
2026-12-01 19:13 ` [PATCH net 5/5] nfc: nfcmrvl: do not use devres for the reset GPIO Arina Kharlamova via B4 Relay
2026-12-04 10:14   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox