From e469b3e4e3c02383df0b1d72e960dfa0f11e9602 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Nov 2024 15:50:59 +0100 Subject: tools/syz-declextract: fix non-determinism and syscall selection Currently syscall selection is non-deterministic and we frequently choose wrond ones. This leads to flaky argument names/types, and wrong argument types (e.g. int16 instead of uid, old_utimbuf32 instead of utimbuf, etc). Make syscall selection robust and correct. --- sys/linux/auto.txt.const | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/linux/auto.txt.const') diff --git a/sys/linux/auto.txt.const b/sys/linux/auto.txt.const index 9d686b2fe..9a2ad7f1e 100644 --- a/sys/linux/auto.txt.const +++ b/sys/linux/auto.txt.const @@ -3796,6 +3796,7 @@ __NR_exit_group = 94, 386:252, amd64:231, arm:s390x:248, mips64le:5205, ppc64le: __NR_faccessat = 48, 386:307, amd64:269, arm:334, mips64le:5259, ppc64le:298, s390x:300 __NR_faccessat2 = 439, mips64le:5439 __NR_fadvise64 = 223, 386:250, amd64:221, arm:???, mips64le:5215, ppc64le:233, s390x:253 +__NR_fadvise64_64 = 386:272, amd64:arm:arm64:mips64le:ppc64le:riscv64:s390x:??? __NR_fallocate = 47, 386:324, amd64:285, arm:352, mips64le:5279, ppc64le:309, s390x:314 __NR_fanotify_init = 262, 386:338, amd64:300, arm:367, mips64le:5295, ppc64le:323, s390x:332 __NR_fanotify_mark = 263, 386:339, amd64:301, arm:368, mips64le:5296, ppc64le:324, s390x:333 @@ -3823,6 +3824,7 @@ __NR_fstatfs = 100, amd64:138, arm64:riscv64:44, mips64le:5135 __NR_fstatfs64 = 386:269, amd64:arm64:mips64le:riscv64:???, arm:267, ppc64le:253, s390x:266 __NR_fsync = 118, amd64:74, arm64:riscv64:82, mips64le:5072 __NR_ftruncate = 93, amd64:77, arm64:riscv64:46, mips64le:5075 +__NR_ftruncate64 = 194, amd64:arm64:mips64le:ppc64le:riscv64:s390x:??? __NR_futex = 98, 386:arm:240, amd64:202, mips64le:5194, ppc64le:221, s390x:238 __NR_futex_requeue = 456, mips64le:5456 __NR_futex_time64 = 422, amd64:arm64:mips64le:ppc64le:riscv64:s390x:??? @@ -4118,6 +4120,7 @@ __NR_timerfd_settime64 = 411, amd64:arm64:mips64le:ppc64le:riscv64:s390x:??? __NR_times = 43, amd64:100, arm64:riscv64:153, mips64le:5098 __NR_tkill = 130, 386:arm:238, amd64:200, mips64le:5192, ppc64le:208, s390x:237 __NR_truncate = 92, amd64:76, arm64:riscv64:45, mips64le:5074 +__NR_truncate64 = 193, amd64:arm64:mips64le:ppc64le:riscv64:s390x:??? __NR_ugetrlimit = 191, amd64:arm64:mips64le:riscv64:s390x:???, ppc64le:190 __NR_umask = 60, amd64:95, arm64:riscv64:166, mips64le:5093 __NR_umount = 22, amd64:arm:arm64:mips64le:riscv64:??? -- cgit mrf-deployment