summaryrefslogtreecommitdiff
path: root/sys/kern/kern_subr.c
AgeCommit message (Collapse)Author
2024-08-12kernel: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-18kernel: Add copyin() and copyout()Ian Moffett
Add copyin() and copyout() for copying from userspace to kernel space and vice versa. Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-24Clean out for exptIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-26kernel: Add copyinstr() routineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-03-18kernel: Add copyin() and copyout() routinesIan Moffett
This commit adds two new functions, copyin() and copyout() for kernel to userspace access and vice versa. These functions ensure the userspace address being accessed actually belongs to the process running by performing address range checks, thereby preventing bad addresses being passed to syscalls. Signed-off-by: Ian Moffett <ian@osmora.org>