[PATCH net v3 1/1] net: phylink: Add module_exit()

Russell King (Oracle) linux at armlinux.org.uk
Thu Jan 11 01:54:54 PST 2024


On Thu, Jan 11, 2024 at 06:38:58AM +0000, Gan, Yi Fang wrote:
> Hi Andrew,
> 
> Regarding the justification on why it is safe to remove phylink, 
> we had done some memory leak check when unloading the phylink module.
>  
> root at localhost:~# lsmod | grep "phylink"
> phylink               73728  0
> root at localhost:~# rmmod phylink
> root at localhost:~# echo scan > /sys/kernel/debug/kmemleak
> root at localhost:~# cat /sys/kernel/debug/kmemleak
> root at localhost:~#
>  
> So far, we didn't observe any memory leaking happened when unloading
> phylink module. Is it sufficient or do you have any other suggestions to check 
> on whether the module is safe to remove?

I have no idea why one would think that memory leaks are in some way
related to whether a module can be removed or not. To me at least they
are two separate issues.

I'll continue waiting for the justification...

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!



More information about the linux-arm-kernel mailing list