From add94aebfa890f6ee6610c00e16075824eb070bd Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 2 Mar 2021 19:44:09 +0100 Subject: [PATCH] Kernel: Don't trust user-supplied bool in sys$stat Found by fuzz-syscalls. Can be reproduced by running this in the Shell: $ syscall stat [ Desktop 7 buf 2 ] Fixes #5316. --- Kernel/API/Syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 8333a41033..0a67957f2e 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -432,7 +432,7 @@ struct SC_waitid_params { struct SC_stat_params { StringArgument path; struct stat* statbuf; - bool follow_symlinks; + int follow_symlinks; }; struct SC_ptrace_params {