zephyr/doc/kernel/usermode
Tomasz Moń fa86481692 doc: Verify write access in syscall example
Use z_user_to_copy() instead of directly writing to the user provided
pointer to validate that the user has write permission to underlying
memory location.

It is important to verify the memory not only for reads, but also for
writes, as otherwise the function can be abused by usermode code to
write to privileged read/write, unprivileged read-only memory partition.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2022-10-14 09:56:30 +02:00
..
auto_mem_domain.png doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
index.rst doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
kernelobjects.rst scripts: move gen_kobject_list.py to scripts/build/gen_kobject_list.py 2022-07-12 10:03:45 +02:00
memory_domain.rst doc: Add missing kconfig option prefix 2022-10-13 13:16:06 -04:00
mpu_stack_objects.rst doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
mpu_userspace.rst doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
overview.rst doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
syscall_flow.png doc: move usermode under kernel 2022-04-07 16:35:19 +02:00
syscalls.rst doc: Verify write access in syscall example 2022-10-14 09:56:30 +02:00