r/kernel • u/AccomplishedAir8352 • Nov 01 '26
How well does linux modules handle resource deallocation?
Hello, I'm a CS undergraduate studying about linux kernel development.
I'm currently on LDD3 book, emphasizing about importance of cleaning up allocated resources on exit.
I assume that this is not likely to be handled properly in some linux modules as removal of modules is not something that is performed on a daily basis.
I have been looking for places to start my contributions and was wondering whether this, identification of memory leaks and applying fixes, could be a valid entry point.
The questions I want to ask is,
- Is this problem considered too trivial?
- Have others been working on it? (maybe there exists some linux group)
- Is this problem commonly found, or gets managed during review process and fixed before getting accepted?
Thank you for your time. Any comments are welcome!
*EDIT Thank you all for your kind responses. They have been very helpful !
View all comments
2
u/stonerism 29d ago
Not at all, I would look them up and report what you found. If it's a legitimate memory leak, you can usually find the repository online and file an issue. If you want to learn more tools to find/diagnose memory leaks, the last one I remember in popular use was valgrind.
I would say you are showing exactly the kind of curiosity that can make a good engineer. Just don't get over overconfident that you know everything.