Skip to content

Instantly share code, notes, and snippets.

@R3x
Created June 25, 2019 12:56
Show Gist options
  • Save R3x/cf6f70839104519ef43631aebf1d0b91 to your computer and use it in GitHub Desktop.
Save R3x/cf6f70839104519ef43631aebf1d0b91 to your computer and use it in GitHub Desktop.
Syscall log
$> python checker.py -syz ~/repos/netbsd-stuff/syzkaller/sys/netbsd/
==================================================
Existing syscalls
==================================================
Syscall No 3 : read
Syscall No 4 : write
Syscall No 5 : open
Syscall No 6 : close
Syscall No 9 : link
Syscall No 10 : unlink
Syscall No 12 : chdir
Syscall No 13 : fchdir
Syscall No 15 : chmod
Syscall No 16 : chown
Syscall No 20 : getpid
Syscall No 23 : setuid
Syscall No 24 : getuid
Syscall No 25 : geteuid
Syscall No 27 : recvmsg
Syscall No 28 : sendmsg
Syscall No 29 : recvfrom
Syscall No 30 : accept
Syscall No 31 : getpeername
Syscall No 32 : getsockname
Syscall No 36 : sync
Syscall No 39 : getppid
Syscall No 41 : dup
Syscall No 42 : pipe
Syscall No 43 : getegid
Syscall No 47 : getgid
Syscall No 57 : symlink
Syscall No 58 : readlink
Syscall No 59 : execve
Syscall No 61 : chroot
Syscall No 73 : munmap
Syscall No 74 : mprotect
Syscall No 75 : madvise
Syscall No 78 : mincore
Syscall No 79 : getgroups
Syscall No 80 : setgroups
Syscall No 81 : getpgrp
Syscall No 82 : setpgid
Syscall No 90 : dup2
Syscall No 92 : fcntl
Syscall No 95 : fsync
Syscall No 98 : connect
Syscall No 104 : bind
Syscall No 105 : setsockopt
Syscall No 106 : listen
Syscall No 118 : getsockopt
Syscall No 120 : readv
Syscall No 121 : writev
Syscall No 123 : fchown
Syscall No 124 : fchmod
Syscall No 126 : setreuid
Syscall No 127 : setregid
Syscall No 128 : rename
Syscall No 131 : flock
Syscall No 133 : sendto
Syscall No 134 : shutdown
Syscall No 135 : socketpair
Syscall No 136 : mkdir
Syscall No 137 : rmdir
Syscall No 181 : setgid
Syscall No 182 : setegid
Syscall No 183 : seteuid
Syscall No 194 : getrlimit
Syscall No 195 : setrlimit
Syscall No 197 : mmap
Syscall No 199 : lseek
Syscall No 200 : truncate
Syscall No 201 : ftruncate
Syscall No 203 : mlock
Syscall No 204 : munlock
Syscall No 207 : getpgid
Syscall No 209 : poll
Syscall No 221 : semget
Syscall No 222 : semop
Syscall No 225 : msgget
Syscall No 226 : msgsnd
Syscall No 227 : msgrcv
Syscall No 228 : shmat
Syscall No 230 : shmdt
Syscall No 231 : shmget
Syscall No 241 : fdatasync
Syscall No 242 : mlockall
Syscall No 243 : munlockall
Syscall No 275 : lchown
Syscall No 289 : preadv
Syscall No 290 : pwritev
Syscall No 297 : fchroot
Syscall No 453 : pipe2
Syscall No 456 : paccept
Syscall No 457 : linkat
Syscall No 458 : renameat
Syscall No 460 : mknodat
Syscall No 461 : mkdirat
Syscall No 462 : faccessat
Syscall No 463 : fchmodat
Syscall No 464 : fchownat
Syscall No 467 : utimensat
Syscall No 468 : openat
Syscall No 469 : readlinkat
Syscall No 470 : symlinkat
Syscall No 471 : unlinkat
Syscall No 477 : clock_nanosleep
==================================================
Missing syscalls
==================================================
Syscall No 0 : syscall
Syscall No 1 : exit
Syscall No 2 : fork
Syscall No 7 : compat_50_wait4
Syscall No 8 : compat_43_ocreat
Syscall No 14 : compat_50_mknod
Syscall No 17 : break
Syscall No 18 : compat_20_getfsstat
Syscall No 19 : compat_43_olseek
Syscall No 21 : compat_40_mount
Syscall No 22 : unmount
Syscall No 26 : ptrace
Syscall No 33 : access
Syscall No 34 : chflags
Syscall No 35 : fchflags
Syscall No 37 : kill
Syscall No 38 : compat_43_stat43
Syscall No 40 : compat_43_lstat43
Syscall No 44 : profil
Syscall No 45 : ktrace
Syscall No 46 : compat_13_sigaction13
Syscall No 48 : compat_13_sigprocmask13
Syscall No 49 : __getlogin
Syscall No 50 : __setlogin
Syscall No 51 : acct
Syscall No 52 : compat_13_sigpending13
Syscall No 53 : compat_13_sigaltstack13
Syscall No 54 : ioctl
Syscall No 55 : compat_12_oreboot
Syscall No 56 : revoke
Syscall No 60 : umask
Syscall No 62 : compat_43_fstat43
Syscall No 63 : compat_43_ogetkerninfo
Syscall No 64 : compat_43_ogetpagesize
Syscall No 65 : compat_12_msync
Syscall No 66 : vfork
Syscall No 71 : compat_43_ommap
Syscall No 72 : vadvise
Syscall No 83 : compat_50_setitimer
Syscall No 84 : compat_43_owait
Syscall No 85 : compat_12_oswapon
Syscall No 86 : compat_50_getitimer
Syscall No 87 : compat_43_ogethostname
Syscall No 88 : compat_43_osethostname
Syscall No 89 : compat_43_ogetdtablesize
Syscall No 93 : compat_50_select
Syscall No 96 : setpriority
Syscall No 97 : compat_30_socket
Syscall No 99 : compat_43_oaccept
Syscall No 100 : getpriority
Syscall No 101 : compat_43_osend
Syscall No 102 : compat_43_orecv
Syscall No 103 : compat_13_sigreturn13
Syscall No 108 : compat_43_osigvec
Syscall No 109 : compat_43_osigblock
Syscall No 110 : compat_43_osigsetmask
Syscall No 111 : compat_13_sigsuspend13
Syscall No 112 : compat_43_osigstack
Syscall No 113 : compat_43_orecvmsg
Syscall No 114 : compat_43_osendmsg
Syscall No 116 : compat_50_gettimeofday
Syscall No 117 : compat_50_getrusage
Syscall No 122 : compat_50_settimeofday
Syscall No 125 : compat_43_orecvfrom
Syscall No 129 : compat_43_otruncate
Syscall No 130 : compat_43_oftruncate
Syscall No 132 : mkfifo
Syscall No 138 : compat_50_utimes
Syscall No 140 : compat_50_adjtime
Syscall No 141 : compat_43_ogetpeername
Syscall No 142 : compat_43_ogethostid
Syscall No 143 : compat_43_osethostid
Syscall No 144 : compat_43_ogetrlimit
Syscall No 145 : compat_43_osetrlimit
Syscall No 146 : compat_43_okillpg
Syscall No 147 : setsid
Syscall No 148 : compat_50_quotactl
Syscall No 149 : compat_43_oquota
Syscall No 150 : compat_43_ogetsockname
Syscall No 155 : nfssvc
Syscall No 156 : compat_43_ogetdirentries
Syscall No 157 : compat_20_statfs
Syscall No 158 : compat_20_fstatfs
Syscall No 161 : compat_30_getfh
Syscall No 162 : compat_09_ogetdomainname
Syscall No 163 : compat_09_osetdomainname
Syscall No 164 : compat_09_ouname
Syscall No 165 : sysarch
Syscall No 169 : compat_10_osemsys
Syscall No 170 : compat_10_omsgsys
Syscall No 171 : compat_10_oshmsys
Syscall No 173 : pread
Syscall No 174 : pwrite
Syscall No 175 : compat_30_ntp_gettime
Syscall No 176 : ntp_adjtime
Syscall No 184 : lfs_bmapv
Syscall No 185 : lfs_markv
Syscall No 186 : lfs_segclean
Syscall No 187 : compat_50_lfs_segwait
Syscall No 188 : compat_12_stat12
Syscall No 189 : compat_12_fstat12
Syscall No 190 : compat_12_lstat12
Syscall No 191 : pathconf
Syscall No 192 : fpathconf
Syscall No 193 : getsockopt2
Syscall No 196 : compat_12_getdirentries
Syscall No 198 : __syscall
Syscall No 202 : __sysctl
Syscall No 205 : undelete
Syscall No 206 : compat_50_futimes
Syscall No 208 : reboot
Syscall No 210 : afssys
Syscall No 220 : compat_14___semctl
Syscall No 223 : semconfig
Syscall No 224 : compat_14_msgctl
Syscall No 229 : compat_14_shmctl
Syscall No 232 : compat_50_clock_gettime
Syscall No 233 : compat_50_clock_settime
Syscall No 234 : compat_50_clock_getres
Syscall No 235 : timer_create
Syscall No 236 : timer_delete
Syscall No 237 : compat_50_timer_settime
Syscall No 238 : compat_50_timer_gettime
Syscall No 239 : timer_getoverrun
Syscall No 240 : compat_50_nanosleep
Syscall No 244 : compat_50___sigtimedwait
Syscall No 245 : sigqueueinfo
Syscall No 246 : modctl
Syscall No 247 : _ksem_init
Syscall No 248 : _ksem_open
Syscall No 249 : _ksem_unlink
Syscall No 250 : _ksem_close
Syscall No 251 : _ksem_post
Syscall No 252 : _ksem_wait
Syscall No 253 : _ksem_trywait
Syscall No 254 : _ksem_getvalue
Syscall No 255 : _ksem_destroy
Syscall No 256 : _ksem_timedwait
Syscall No 257 : mq_open
Syscall No 258 : mq_close
Syscall No 259 : mq_unlink
Syscall No 260 : mq_getattr
Syscall No 261 : mq_setattr
Syscall No 262 : mq_notify
Syscall No 263 : mq_send
Syscall No 264 : mq_receive
Syscall No 265 : compat_50_mq_timedsend
Syscall No 266 : compat_50_mq_timedreceive
Syscall No 270 : __posix_rename
Syscall No 271 : swapctl
Syscall No 272 : compat_30_getdents
Syscall No 273 : minherit
Syscall No 274 : lchmod
Syscall No 276 : compat_50_lutimes
Syscall No 277 : __msync13
Syscall No 278 : compat_30___stat13
Syscall No 279 : compat_30___fstat13
Syscall No 280 : compat_30___lstat13
Syscall No 281 : __sigaltstack14
Syscall No 282 : __vfork14
Syscall No 283 : __posix_chown
Syscall No 284 : __posix_fchown
Syscall No 285 : __posix_lchown
Syscall No 286 : getsid
Syscall No 287 : __clone
Syscall No 288 : fktrace
Syscall No 291 : compat_16___sigaction14
Syscall No 292 : __sigpending14
Syscall No 293 : __sigprocmask14
Syscall No 294 : __sigsuspend14
Syscall No 295 : compat_16___sigreturn14
Syscall No 296 : __getcwd
Syscall No 298 : compat_30_fhopen
Syscall No 299 : compat_30_fhstat
Syscall No 300 : compat_20_fhstatfs
Syscall No 301 : compat_50_____semctl13
Syscall No 302 : compat_50___msgctl13
Syscall No 303 : compat_50___shmctl13
Syscall No 304 : lchflags
Syscall No 305 : issetugid
Syscall No 306 : utrace
Syscall No 307 : getcontext
Syscall No 308 : setcontext
Syscall No 309 : _lwp_create
Syscall No 310 : _lwp_exit
Syscall No 311 : _lwp_self
Syscall No 312 : _lwp_wait
Syscall No 313 : _lwp_suspend
Syscall No 314 : _lwp_continue
Syscall No 315 : _lwp_wakeup
Syscall No 316 : _lwp_getprivate
Syscall No 317 : _lwp_setprivate
Syscall No 318 : _lwp_kill
Syscall No 319 : _lwp_detach
Syscall No 320 : compat_50__lwp_park
Syscall No 321 : _lwp_unpark
Syscall No 322 : _lwp_unpark_all
Syscall No 323 : _lwp_setname
Syscall No 324 : _lwp_getname
Syscall No 325 : _lwp_ctl
Syscall No 330 : compat_60_sa_register
Syscall No 331 : compat_60_sa_stacks
Syscall No 332 : compat_60_sa_enable
Syscall No 333 : compat_60_sa_setconcurrency
Syscall No 334 : compat_60_sa_yield
Syscall No 335 : compat_60_sa_preempt
Syscall No 340 : __sigaction_sigtramp
Syscall No 343 : rasctl
Syscall No 344 : kqueue
Syscall No 345 : compat_50_kevent
Syscall No 346 : _sched_setparam
Syscall No 347 : _sched_getparam
Syscall No 348 : _sched_setaffinity
Syscall No 349 : _sched_getaffinity
Syscall No 350 : sched_yield
Syscall No 351 : _sched_protect
Syscall No 354 : fsync_range
Syscall No 355 : uuidgen
Syscall No 356 : getvfsstat
Syscall No 357 : statvfs1
Syscall No 358 : fstatvfs1
Syscall No 359 : compat_30_fhstatvfs1
Syscall No 360 : extattrctl
Syscall No 361 : extattr_set_file
Syscall No 362 : extattr_get_file
Syscall No 363 : extattr_delete_file
Syscall No 364 : extattr_set_fd
Syscall No 365 : extattr_get_fd
Syscall No 366 : extattr_delete_fd
Syscall No 367 : extattr_set_link
Syscall No 368 : extattr_get_link
Syscall No 369 : extattr_delete_link
Syscall No 370 : extattr_list_fd
Syscall No 371 : extattr_list_file
Syscall No 372 : extattr_list_link
Syscall No 373 : compat_50_pselect
Syscall No 374 : compat_50_pollts
Syscall No 375 : setxattr
Syscall No 376 : lsetxattr
Syscall No 377 : fsetxattr
Syscall No 378 : getxattr
Syscall No 379 : lgetxattr
Syscall No 380 : fgetxattr
Syscall No 381 : listxattr
Syscall No 382 : llistxattr
Syscall No 383 : flistxattr
Syscall No 384 : removexattr
Syscall No 385 : lremovexattr
Syscall No 386 : fremovexattr
Syscall No 387 : compat_50___stat30
Syscall No 388 : compat_50___fstat30
Syscall No 389 : compat_50___lstat30
Syscall No 390 : __getdents30
Syscall No 392 : compat_30___fhstat30
Syscall No 393 : compat_50___ntp_gettime30
Syscall No 394 : __socket30
Syscall No 395 : __getfh30
Syscall No 396 : __fhopen40
Syscall No 397 : __fhstatvfs140
Syscall No 398 : compat_50___fhstat40
Syscall No 399 : aio_cancel
Syscall No 400 : aio_error
Syscall No 401 : aio_fsync
Syscall No 402 : aio_read
Syscall No 403 : aio_return
Syscall No 404 : compat_50_aio_suspend
Syscall No 405 : aio_write
Syscall No 406 : lio_listio
Syscall No 410 : __mount50
Syscall No 411 : mremap
Syscall No 412 : pset_create
Syscall No 413 : pset_destroy
Syscall No 414 : pset_assign
Syscall No 415 : _pset_bind
Syscall No 416 : __posix_fadvise50
Syscall No 417 : __select50
Syscall No 418 : __gettimeofday50
Syscall No 419 : __settimeofday50
Syscall No 420 : __utimes50
Syscall No 421 : __adjtime50
Syscall No 422 : __lfs_segwait50
Syscall No 423 : __futimes50
Syscall No 424 : __lutimes50
Syscall No 425 : __setitimer50
Syscall No 426 : __getitimer50
Syscall No 427 : __clock_gettime50
Syscall No 428 : __clock_settime50
Syscall No 429 : __clock_getres50
Syscall No 430 : __nanosleep50
Syscall No 431 : ____sigtimedwait50
Syscall No 432 : __mq_timedsend50
Syscall No 433 : __mq_timedreceive50
Syscall No 434 : compat_60__lwp_park
Syscall No 435 : __kevent50
Syscall No 436 : __pselect50
Syscall No 437 : __pollts50
Syscall No 438 : __aio_suspend50
Syscall No 439 : __stat50
Syscall No 440 : __fstat50
Syscall No 441 : __lstat50
Syscall No 442 : ____semctl50
Syscall No 443 : __shmctl50
Syscall No 444 : __msgctl50
Syscall No 445 : __getrusage50
Syscall No 446 : __timer_settime50
Syscall No 447 : __timer_gettime50
Syscall No 448 : __ntp_gettime50
Syscall No 449 : __wait450
Syscall No 450 : __mknod50
Syscall No 451 : __fhstat50
Syscall No 454 : dup3
Syscall No 455 : kqueue1
Syscall No 459 : mkfifoat
Syscall No 465 : fexecve
Syscall No 466 : fstatat
Syscall No 472 : futimens
Syscall No 473 : __quotactl
Syscall No 474 : posix_spawn
Syscall No 475 : recvmmsg
Syscall No 476 : sendmmsg
==================================================
Unmatched syscalls/functions
==================================================
semctl$GETALL(semid ipc_sem, semnum const[0], cmd const[GETALL], arg buffer[out])
semctl$SETALL(semid ipc_sem, semnum const[0], cmd const[SETALL], arg ptr[in, array[int16]])
socket$inet6(domain const[AF_INET6], type flags[socket_type], proto int8) sock_in6
shmctl$IPC_RMID(shmid ipc_shm, cmd const[IPC_RMID])
socket(domain flags[socket_domain], type flags[socket_type], proto int8) sock
semctl$IPC_STAT(semid ipc_sem, semnum const[0], cmd const[IPC_STAT], arg buffer[out])
nanosleep(req ptr[in, timespec], rem ptr[out, timespec, opt])
shmctl$SHM_UNLOCK(shmid ipc_shm, cmd const[SHM_UNLOCK])
getdents(fd fd_dir, ent buffer[out], count len[ent])
socket$unix(domain const[AF_UNIX], type flags[unix_socket_type], proto const[0]) sock_unix
semctl$GETPID(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETPID], arg buffer[out])
semctl$GETVAL(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETVAL], arg buffer[out])
getitimer(which flags[getitimer_which], cur ptr[out, itimerval])
syz_execute_func(text ptr[in, text[target]])
getrusage(who flags[rusage_who], usage ptr[out, rusage])
semctl$GETNCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETNCNT], arg buffer[out])
stat(file ptr[in, filename], statbuf ptr[out, stat])
mknod$loop(file ptr[in, filename], mode flags[mknod_mode], dev proc[1792, 2])
shmctl$SHM_LOCK(shmid ipc_shm, cmd const[SHM_LOCK])
msgctl$IPC_STAT(msqid ipc_msq, cmd const[IPC_STAT], buf buffer[out])
socket$inet(domain const[AF_INET], type flags[socket_type], proto int8) sock_in
clock_getres(id flags[clock_id], tp ptr[out, timespec])
semctl$IPC_RMID(semid ipc_sem, semnum const[0], cmd const[IPC_RMID])
shmctl$IPC_SET(shmid ipc_shm, cmd const[IPC_SET], buf ptr[in, shmid_ds])
mknod(file ptr[in, filename], mode flags[mknod_mode], dev int32)
semctl$GETZCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETZCNT], arg buffer[out])
shmctl$IPC_STAT(shmid ipc_shm, cmd const[IPC_STAT], buf buffer[out])
lstat(file ptr[in, filename], statbuf ptr[out, stat])
semctl$IPC_SET(semid ipc_sem, semnum const[0], cmd const[IPC_SET], arg ptr[in, semid_ds])
clock_settime(id flags[clock_id], tp ptr[in, timespec])
# The unused arg is unused by syscall (does not exist at all),
msgctl$IPC_RMID(msqid ipc_msq, cmd const[IPC_RMID])
setitimer(which flags[getitimer_which], new ptr[in, itimerval], old ptr[out, itimerval, opt])
select(n len[inp], inp ptr[inout, fd_set], outp ptr[inout, fd_set], exp ptr[inout, fd_set], tvp ptr[inout, timeval])
wait4(pid pid, status ptr[out, int32, opt], options flags[wait_options], ru ptr[out, rusage, opt])
clock_gettime(id flags[clock_id], tp ptr[out, timespec])
utimes(filename ptr[in, filename], times ptr[in, itimerval])
semctl$SETVAL(semid ipc_sem, semnum flags[sem_sem_id], cmd const[SETVAL], arg ptr[in, int32])
msgctl$IPC_SET(msqid ipc_msq, cmd const[IPC_SET], buf ptr[in, msqid_ds])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment