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

   ## Summary
   
   qemu-rv's S-mode/non-SMP setintstack unconditionally reloaded sp to the top 
of the per-cpu interrupt stack.  A trap taken while already running on that 
stack rewound sp back to the same address, so the nested trap's frame overwrote 
the still-live outer trap's frame.
   
   Port the bounds check already used by the canonical setintstack in 
riscv_macros.S: only move sp when it is outside the interrupt stack range.
   
   Other vendor chip.h files have the same unconditional-reload pattern and are 
left for a follow-up.
   
   ## 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