mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
Kernel: Use Userspace<T> for the recvfrom syscall, and Socket implementation
This fixes a bunch of unchecked kernel reads and writes, seems like they would might exploitable :). Write of sockaddr_in size to any address you please...
This commit is contained in:
parent
9f9b05ba0f
commit
8e97de2df9
9 changed files with 43 additions and 30 deletions
|
@ -298,8 +298,8 @@ struct SC_recvfrom_params {
|
|||
int sockfd;
|
||||
MutableBufferArgument<void, size_t> buffer;
|
||||
int flags;
|
||||
sockaddr* addr;
|
||||
socklen_t* addr_length;
|
||||
Userspace<sockaddr*> addr;
|
||||
Userspace<socklen_t*> addr_length;
|
||||
};
|
||||
|
||||
struct SC_getsockopt_params {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue