Three small fixes for resources that probe or remove do not release
correctly: the register region of xtsonic, the net device of
xirc2ps_cs when its config fails, and the memory region of ftmac100.
I found these with spec2patch. I model-checked the probe and remove
paths of each driver with CBMC against formal specifications of the
kernel APIs they call. 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.
None of these was hit at runtime; all three were found statically.
Compile-tested only, not tested on hardware.
---
Arina Kharlamova (3):
net: natsemi: xtsonic: fix release of the register memory region
xirc2ps_cs: free the net device when xirc2ps_config() fails
net: ftmac100: release the memory region with release_mem_region()
drivers/net/ethernet/faraday/ftmac100.c | 4 ++--
drivers/net/ethernet/natsemi/xtsonic.c | 9 +++++----
drivers/net/ethernet/xircom/xirc2ps_cs.c | 7 ++++++-
3 files changed, 13 insertions(+), 7 deletions(-)
---
base-commit: c712df600d056cc35ef7621e43c8e12513bae886
change-id: 20261201-s2p-net2-a6f815908ffc
Best regards,
--
Arina Kharlamova <arin…@mbzuai.ac.ae>
[PATCH net 0/3] net: fix resource release in three old drivers
- From
- devn…@kernel.org (Arina Kharlamova via B4 Relay)
- Organization
- Usenet Network
- Message-ID
- <2026…@mbzuai.ac.ae>
- Date
- Newsgroups
- linux.kernel.netdev