syscalls: misc vulnerability fixes

This commit is contained in:
Matheus
2026-04-28 21:27:51 -03:00
parent 02a47c8303
commit 42cec91cb9
6 changed files with 13 additions and 8 deletions
+1
View File
@@ -11,6 +11,7 @@ syscallret_t syscall_getsockopt(context_t *, int fd, int level, int optname, voi
if (!IS_USER_ADDRESS(val) || !IS_USER_ADDRESS(len)) {
ret.errno = EFAULT;
return ret;
}
file_t *file = fd_get(fd);