diff options
| author | tardigrade <[email protected]> | 2026-09-08 20:47:57 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-09-08 11:17:57 -0400 |
| commit | 29afcc394667660edd9e53cc17e6232b9e60aa96 (patch) | |
| tree | 8b1362c384d8df4ac48c6948dddc7d74fbf04d64 /common_modules/module_manager/utilities/module_binary_to_c_array.c | |
| parent | b0ec8bfbb964a78e82c71b20bb6f79ef7597df32 (diff) | |
Fixed a kernel stack leak when deleting user-mode module threads (#692)
* modules: free kernel stack on thread deletion
Signed-off-by: Prashit Vora <[email protected]>
* Preserved the thread object release when the kernel stack cannot be freed
Releasing the kernel stack ahead of the thread object made a failure of the kernel
stack deallocation abort the thread object release. The thread had already been
deleted at that point, so the thread object would have stayed allocated for the
lifetime of the module.
The thread object is now always released once the delete succeeds, and the kernel
stack failure is reported only when it does not mask a thread object failure.
---------
Signed-off-by: Prashit Vora <[email protected]>
Co-authored-by: Frédéric Desbiens <[email protected]>
Assisted-by: Copilot (Opus 5) <[email protected]>
Diffstat (limited to 'common_modules/module_manager/utilities/module_binary_to_c_array.c')
0 files changed, 0 insertions, 0 deletions
