From 4fc2fa55acc12f9e82084e52521380b84be9a08b Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Wed, 6 Mar 2019 20:29:33 -0500 Subject: sys/freebsd: avoid mangling syscall names syz-extract was removing certain prefixes from syscall names, but this caused some problems: - freebsd* prefixes are for compatibility syscalls when the syscall ABI has changed. For instance, we have both fstat() and freebsd11_fstat(), and it is desirable to fuzz them both. - Stripping prefixes may leave us with undefined SYS_ constants. This resulted in some test failures in pkg/csource, which emitted code referencing SYS_semctl when it should have been SYS___semctl. Fix the problem by updating syscall descriptions to match the names given by the FreeBSD kernel. Add some new descriptions for compatibility syscalls, fix the mknodat() description (dev_t is now 64 bits wide on FreeBSD), and remove mknod$loop, which appears to be Linux-specific. --- executor/defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/defs.h') diff --git a/executor/defs.h b/executor/defs.h index 8e2a70847..db674ec2d 100644 --- a/executor/defs.h +++ b/executor/defs.h @@ -20,7 +20,7 @@ #if GOARCH_amd64 #define GOARCH "amd64" -#define SYZ_REVISION "87222f38848c14df07a6a0304da0b1915e3396bb" +#define SYZ_REVISION "873616249e74ae100e93afb6a14e4fef92b3acc4" #define SYZ_EXECUTOR_USES_FORK_SERVER 1 #define SYZ_EXECUTOR_USES_SHMEM 1 #define SYZ_PAGE_SIZE 4096 -- cgit mrf-deployment