pussuw opened a new pull request, #7877: URL: https://github.com/apache/nuttx/pull/7877
## Summary The user stack is dependent on the user address environment. As the process exits, this address environment is destroyed anyway, so the stack does not need to be released separately. There is also an issue with this when the process exits via exit(). The problem is that the task group is released prior to this "up_release_stack()" call along with the address environment, and trying to free the memory either causes an immediate crash (no valid addrenv), or frees memory into another process' heap (addrenv from a different process). ## Impact CONFIG_BUILD_KERNEL=y only, fixes two issues mentioned above (immediate crash / potential delayed crash) ## Testing icicle:knsh -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org