jerpelea opened a new pull request, #21205: URL: https://github.com/apache/nuttx/pull/21205
## Summary pgalloc() grows a process heap for sbrk(). It extended the address environment of the running task (addrenv_own). While exec() sets up a new process, the caller selects the new address environment and allocates the new process's stack from its heap. When that stack does not fit in the initial heap, the heap must grow, but the running task is the caller. For the kernel thread that starts init this was an assertion; for a user task it would have grown the caller's heap. Use the selected address environment (addrenv_curr). For a normal sbrk() it is the same as addrenv_own. ## Impact RELEASE ## Testing CI -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
