jerpelea opened a new pull request, #21252:
URL: https://github.com/apache/nuttx/pull/21252

   ## Summary
   
   In a kernel build, the kernel allocates from the user heap through kumm_*(). 
It does this also while the address environment of another process is selected: 
up_create_stack() allocates the stack of a new process in the heap of that 
process.
   
   When that heap cannot grow, sbrk() and memalign() set errno. errno is in the 
TLS of the calling thread, at a user address that is not mapped in the new 
process. The kernel then takes a data abort, or writes into the memory of the 
new process.
   
   This PR does not set errno in the kernel copy of the user heap, as kmm_*() 
already does. The callers in the kernel use the returned NULL or -1.
   
   The first commit only fixes the nxstyle errors in umm_zalloc.c.
   
   ## 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]

Reply via email to