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
+5
View File
@@ -9,6 +9,11 @@ syscallret_t syscall_kill(context_t *context, int pid, int signal) {
.ret = -1
};
if (signal >= NSIG) {
ret.errno = EINVAL;
return ret;
}
int effectivepid = -1;
if (pid > 0) // specific process