nuttx-apps/examples/pffault
Marco Casaroli 620a182f51 examples/pffault: Add a test that touches a kernel address from user space.
A small user program that reads or writes one address, by default
0x3fc98000, the base of the ESP32-S3 kernel DRAM region.  A user process
must not reach it, so the access must fault and only the process must die.
"pffault w" makes the access a store, and a second argument names another
address.

With CONFIG_ESP32S3_PAGEFAULT and CONFIG_ESP32S3_PAGEFAULT_SELFTEST on the
kernel side, "pffault r 0x80000000" exercises the recoverable-fault restart
path, and "pffault r 0x0" the report path.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
2026-09-30 13:25:06 -03:00
..
CMakeLists.txt examples/pffault: Add a test that touches a kernel address from user space. 2026-09-30 13:25:06 -03:00
Kconfig examples/pffault: Add a test that touches a kernel address from user space. 2026-09-30 13:25:06 -03:00
Make.defs examples/pffault: Add a test that touches a kernel address from user space. 2026-09-30 13:25:06 -03:00
Makefile examples/pffault: Add a test that touches a kernel address from user space. 2026-09-30 13:25:06 -03:00
pffault_main.c examples/pffault: Add a test that touches a kernel address from user space. 2026-09-30 13:25:06 -03:00