You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "casaroli (via GitHub)" <gi...@apache.org> on 2026/10/17 19:12:30 UTC
[PR] arch/xtensa/esp32s3: Clear the siginfo of user fault signals. [nuttx]
casaroli opened a new pull request, #20742:
URL: https://github.com/apache/nuttx/pull/20742
## Summary
`esp32s3_userfault_abort()` and `pms_violation_isr()` send `SIGSEGV` with a `siginfo_t` on the stack, but they set only some of its fields. The other fields (for example `si_pid` and `si_status`) kept stack data, and the signal handler received it.
This PR clears the whole `siginfo_t` before the fields are set.
## Impact
ESP32-S3 with `CONFIG_ESP32S3_USERFAULT_ABORT` (user-mode fault handling in a kernel build) only: the unused fields of the `siginfo_t` are now 0.
## Testing
`esp32s3-devkit:kernel_n8r2` builds, with `esp32s3_userfault.c` and `esp32s3_isolation.c`. `tools/checkpatch.sh -c -u -m -g` passes.
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/xtensa/esp32s3: Clear the siginfo of user fault signals. [nuttx]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #20742:
URL: https://github.com/apache/nuttx/pull/20742#issuecomment-6239669963
<!-- membrowse-pr-comment -->
## <img src="https://membrowse.com/membrowse-logo.svg" height="24" align="top"> MemBrowse Memory Report
*No memory changes detected for:*
- [arduino-mega2560](https://membrowse.com/public/apache/nuttx/target/arduino-mega2560/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [esp32-devkitc](https://membrowse.com/public/apache/nuttx/target/esp32-devkitc/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [hifive1-revb](https://membrowse.com/public/apache/nuttx/target/hifive1-revb/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [mirtoo](https://membrowse.com/public/apache/nuttx/target/mirtoo/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [qemu-armv8a](https://membrowse.com/public/apache/nuttx/target/qemu-armv8a/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [qemu-intel64](https://membrowse.com/public/apache/nuttx/target/qemu-intel64/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [rx65n-rsk2mb](https://membrowse.com/public/apache/nuttx/target/rx65n-rsk2mb/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [s698pm-dkit](https://membrowse.com/public/apache/nuttx/target/s698pm-dkit/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
- [stm32-nucleo-f103rb](https://membrowse.com/public/apache/nuttx/target/stm32-nucleo-f103rb/compare?head=864ba84d940b53139dba04d3d9526914576dab9e&base=d2ce23c49ebfdd9f5ed541a08493eb62c1aa20a5)
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] arch/xtensa/esp32s3: Clear the siginfo of user fault signals. [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis merged PR #20742:
URL: https://github.com/apache/nuttx/pull/20742
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org