Re: Re: [PATCH] lkdtm/core: fix resource leaks on module init error path
Jiangshan Yi <[email protected]> Wed, 5 Aug 2026 10:27:50 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Thanks for the build test report and for catching these section mismatch warnings: > > > WARNING: modpost: drivers/misc/lkdtm/lkdtm: section mismatch in reference: lkdtm_module_init+0x221 (section: .init.text) -> lkdtm_heap_exit (section: .exit.text) > > > WARNING: modpost: drivers/misc/lkdtm/lkdtm: section mismatch in reference: lkdtm_module_init+0x226 (section: .init.text) -> lkdtm_usercopy_exit (section: .exit.text) These warnings have already been addressed in the v2 of this patch, posted at: https://lore.kernel.org/all/[email protected]/ In v2, the error-handling path in lkdtm_module_init() no longer references the .exit.text cleanup helpers (lkdtm_heap_exit, lkdtm_usercopy_exit), which resolves the section mismatch reported by modpost. Since the fix is part of a new version of the same patch rather than a separate commit, I haven't added the Reported-by / Closes tags to that version. However, your report was very helpful in confirming the issue — thank you again for the testing. Best regards, Jiangshan Yi