[bug] Userspace programs can arbitrary write into kernel memory #69
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hubert/Pi-kachULM_OS#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
check_ptr()function in kernel syscalls do not check the number of bytes that will be written by the kernel. It only check if the address is valid and accessible (that is only the first byte, but not the other bytes).That is,
check_ptr()should take an additional argument: the expected number of bytes that will be written by the kernel and check if the memory range is accessible.