/freebsd/tools/test/stress2/misc/ |
H A D | syzkaller67.sh | 54 syscall(SYS_mmap, 0x10000000, 0x1000000, 7, 0x1012, -1, 0); 56 syscall(SYS_munmap, 0x10ffa000, 0x3000); 57 syscall(SYS_mmap, 0x10ffd000, 0x1000, 4, 0x1010, -1, 0); 58 syscall(SYS_mmap, 0x10ffc000, 0x1000, 0, 0x1010, -1, 0); 59 syscall(SYS_mmap, 0x10ffc000, 0x1000, 0, 0x1010, -1, 0); 60 syscall(SYS_mprotect, 0x10ffe000, 0x2000, 7); 61 syscall(SYS_mprotect, 0x10ffd000, 0x3000, 0); 62 syscall(SYS_fork); 63 res = syscall(SYS_fork); 66 syscall(SYS_fork); [all …]
|
H A D | syscall5.sh | 36 syscall=`grep SYS_MAXSYSCALL /usr/include/sys/syscall.h | awk '{print $NF}'` 37 syscall=$((syscall - 1)) 49 syscall=`ls -l $last | awk '{print $NF}'` 50 syscall=$((syscall - 1)) 52 s) syscall="$OPTARG" ;; 61 [ $syscall -gt $esyscall ] || 62 { echo "$syscall must be greater than $esyscall"; exit 1; } 73 n=$syscall 78 name=`grep -w "$n$" /usr/include/sys/syscall.h | awk '{print $2}' |
|
H A D | syzkaller4.sh | 264 syscall(SYS___semctl, 0, 0ul, 0xaul, 0x20000040ul); 287 syscall(SYS_connect, -1, 0x20000340ul, 0x10ul); 290 res = syscall(SYS_semget, 0ul, 0ul, 0x284ul); 295 res = syscall(SYS_socket, 0x1cul, 1ul, 0ul); 300 syscall(SYS_listen, r[1], 0); 303 res = syscall(SYS_fstat, r[1], 0x20000080ul); 323 syscall(SYS___semctl, r[0], 0ul, 0xaul, 0x20000180ul); 326 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84ul); 331 syscall(SYS_connect, r[3], 0ul, 0ul); 334 syscall(SYS_fcntl, r[3], 5ul, 0); [all …]
|
H A D | syzkaller7.sh | 113 res = syscall(SYS_open, 0x20001180, 0x8240, 0); 116 res = syscall(SYS_socketpair, 1, 1, 0, 0x20000100); 122 res = syscall(SYS_open, 0x20000480, 0x80000000000206, 0); 125 res = syscall(SYS_dup, r[3]); 131 syscall(SYS_pwritev, r[4], 0x20000100, 1, 0); 135 syscall(SYS_pwritev, r[3], 0x20002e80, 1, 0xbf24); 140 syscall(SYS_setsockopt, r[2], 0, 2, 0x200004c0, 0x20); 141 syscall(SYS_fcntl, r[4], 4, 0x10044); 142 syscall(SYS_read, r[4], 0x20000000, 0x6d999); 143 syscall(SYS_sendfile, r[0], r[1], 0, 2); [all …]
|
H A D | syzkaller55.sh | 108 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 117 syscall(SYS_bind, r[0], 0x20000000ul, 0x1cul); 125 syscall(SYS_connect, r[0], 0x20000080ul, 0x1cul); 150 syscall(SYS_aio_read, 0x20000400ul); 152 syscall(SYS_sendto, r[0], 0x200000c0ul, 1ul, 0ul, 0ul, 0ul); 153 syscall(SYS_shutdown, r[0], 0ul); 154 res = syscall(SYS_socket, 0x1cul, 5ul, 0x84); 167 syscall(SYS_sendmsg, r[0], 0x200003c0ul, 0ul); 168 res = syscall(SYS_dup2, r[0], r[1]); 173 syscall(SYS_setsockopt, r[2], 0x84, 0x901, 0x20000140ul, 0xaul); [all …]
|
H A D | syzkaller44.sh | 55 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); 57 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 61 syscall(SYS_setsockopt, r[0], 0x84, 0x1c, 0x20000140ul, 4ul); 68 syscall(SYS_bind, r[0], 0x20000080ul, 0x1cul); 69 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 73 syscall(SYS_setsockopt, r[1], 0x84, 0x1c, 0x20000140ul, 4ul); 80 syscall(SYS_bind, r[1], 0x20000080ul, 0x1cul); 81 syscall(SYS_listen, r[1], 0);
|
H A D | syzkaller8.sh | 81 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); 84 syscall(SYS___getcwd, 0x20000000ul, 0xc7ul); 85 res = syscall(SYS_socket, 0x1cul, 3ul, 0x3a); 88 res = syscall(SYS_fcntl, r[0], 1ul, -1); 91 syscall(SYS_close, r[1]); 92 syscall(SYS_mprotect, 0x20000000ul, 0x4000ul, 1ul); 94 syscall(SYS_freebsd12_shm_open, 0x20000000ul, 0x200ul, 0ul); 95 res = syscall(SYS_freebsd10_pipe, 0x20000080ul); 98 syscall(SYS_mmap, 0x20d43000ul, 0x200000ul, 3ul, 0x12ul, r[2], 0ul);
|
H A D | syzkaller66.sh | 109 res = syscall(SYS_socket, 2ul, 1ul, 0); 117 syscall(SYS_bind, r[0], 0x200001c0ul, 0x10ul); 118 syscall(SYS_listen, r[0], 0); 119 res = syscall(SYS_socket, 2ul, 1ul, 0); 127 syscall(SYS_connect, r[1], 0x200000c0ul, 0x10ul); 135 syscall(SYS_sendmsg, r[1], 0x20002580ul, 0x20104ul); 136 syscall(SYS_shutdown, r[1], 1ul); 142 syscall(SYS_connect, r[1], 0x200000c0ul, 0x10ul); 146 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
|
H A D | pathconf.sh | 41 syscall=`grep lpathconf /usr/include/sys/syscall.h 2>/dev/null` 42 [ -z "$syscall" ] && exit 0 43 syscall=`echo $syscall | sed 's/.*[\t ]//'` 51 ../misc/syscall4.sh $syscall
|
H A D | syzkaller51.sh | 109 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 118 syscall(SYS_bind, r[0], 0x20000000ul, 0x1cul); 119 syscall(SYS_listen, r[0], 5); 120 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 131 syscall(SYS_sendto, r[1], 0x20000240ul, 1ul, 0ul, 0x20000040ul, 0x1cul); 132 syscall(SYS_dup2, r[0], r[1]); 133 res = syscall(SYS_accept, r[1], 0ul, 0ul); 178 syscall(SYS_sendmsg, r[2], 0x20001980ul, 0x20104ul); 182 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
|
H A D | syzkaller54.sh | 250 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 255 syscall(SYS_connect, r[0], 0ul, 0ul); 258 res = syscall(SYS_socket, 0x1cul, 1ul, 0x84); 263 syscall(SYS_sendto, -1, 0ul, 0ul, 0ul, 0ul, 0ul); 266 syscall(SYS_dup2, r[1], -1); 269 res = syscall(SYS_dup2, -1, -1); 274 res = syscall(SYS_dup2, -1, r[2]); 279 syscall(SYS_sendmsg, r[3], 0ul, 0ul); 282 syscall(SYS_sendto, -1, 0ul, 0ul, 0ul, 0ul, 0ul); 286 syscall(SYS_openat, 0xffffffffffffff9cul, 0x20000100ul, 0ul, 0ul); [all …]
|
H A D | syzkaller52.sh | 335 syscall(SYS_sigsuspend, 0x20000000ul); 338 syscall(SYS_setgid, 0); 341 syscall(SYS_getgroups, 0ul, 0ul); 344 syscall(SYS_setegid, 0); 347 res = syscall(SYS_shmget, 0ul, 0x2000ul, 0x420ul, 0x20ffd000ul); 352 res = syscall(SYS_getpid); 375 syscall(SYS_shmctl, r[0], 1ul, 0x20000200ul); 378 syscall(SYS_getgid); 381 syscall(SYS___semctl, 0, 0ul, 1ul, 0ul); 391 syscall(SYS_fhstat, 0x20000300ul, 0ul); [all …]
|
H A D | syzkaller13.sh | 203 res = syscall(SYS_open, 0x20000100ul, 0x40000400000002c2ul, 0ul); 206 syscall(SYS_fcntl, r[0], 4ul, 0x10048ul); 209 syscall(SYS_writev, r[0], 0x20000340ul, 0x1000000000000013ul); 210 res = syscall(SYS_socket, 2ul, 2ul, 0x88); 213 res = syscall(SYS_socketpair, 1ul, 1ul, 0, 0x20000000ul); 216 res = syscall(SYS_dup2, r[2], r[1]); 220 res = syscall(SYS_open, 0x20000140ul, 0ul, 0ul); 223 syscall(SYS_sendfile, r[4], r[3], 0ul, 1ul, 0ul, 0ul, 0ul); 227 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul);
|
H A D | syzkaller9.sh | 65 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x1012ul, -1, 0ul); 67 res = syscall(SYS_socket, 1ul, 5ul, 0ul); 71 syscall(SYS_bind, r[0], 0x20000000ul, 0xaul); 72 syscall(SYS_listen, r[0], 0); 73 res = syscall(SYS_socket, 1ul, 5ul, 0ul); 89 syscall(SYS_sendmsg, r[1], 0x20002640ul, 0ul);
|
H A D | syzkaller20.sh | 69 syscall(SYS_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x1012ul, -1, 0ul); 71 res = syscall(SYS_socket, 0x1cul, 1ul, 0); 74 res = syscall(SYS_socket, 0x1cul, 2ul, 0x88); 77 syscall(SYS_dup2, r[1], r[0]); 85 syscall(SYS_bind, r[0], 0x20000000ul, 0x1cul); 94 syscall(SYS_sendto, r[0], 0ul, 0ul, 0ul, 0x200002c0ul, 0x1cul);
|
/freebsd/sys/tools/syscalls/core/ |
H A D | syscall.lua | 14 local syscall = {} 16 syscall.__index = syscall 18 syscall.known_flags = util.set { 40 function syscall:processThr() 51 function syscall:processCap() 64 if not syscall.known_flags[k] and not 73 function syscall:processChangesAbi() 104 function syscall:processFlags() 126 function syscall:processPrefix() 139 function syscall:validate(prev) [all …]
|
/freebsd/tools/regression/security/cap_test/ |
H A D | cap_test.h | 67 #define CHECK_SYSCALL_SUCCEEDS(syscall, ...) do { \ argument 68 if (syscall(__VA_ARGS__) < 0) \ 70 __func__, __LINE__, #syscall); \ 74 #define CHECK_SYSCALL_FAILS(expected_errno, syscall, ...) do { \ argument 75 if (syscall(__VA_ARGS__) < 0) { \ 78 __func__, __LINE__, #syscall); \ 81 __func__, __LINE__, #syscall); \ 86 #define CHECK_SYSCALL_FAILS_BUT_NOT_WITH(bad_errno, syscall, ...) do { \ argument 87 if (syscall(__VA_ARGS__) < 0) { \ 90 __func__, __LINE__, #syscall); \ [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/ |
H A D | specopen.d | 40 syscall::open:entry, 41 syscall::open64:entry 55 syscall::open:return, 56 syscall::open64:return 63 syscall::open:return, 64 syscall::open64:return 71 syscall::open:return, 72 syscall::open64:return
|
/freebsd/stand/uboot/ |
H A D | glue.c | 145 if (!syscall(API_GETC, NULL, &c)) in ub_getc() 156 if (!syscall(API_TSTC, NULL, &t)) in ub_tstc() 166 syscall(API_PUTC, NULL, &c); in ub_putc() 173 syscall(API_PUTS, NULL, s); in ub_puts() 186 syscall(API_RESET, NULL); in ub_reset() 204 if (!syscall(API_GET_SYS_INFO, &err, &si)) in ub_get_sys_info() 220 syscall(API_UDELAY, NULL, &usec); in ub_udelay() 228 if (!syscall(API_GET_TIMER, NULL, &cur, &base)) in ub_get_timer() 266 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() 280 if (!syscall(API_DEV_ENUM, NULL, di)) in ub_dev_enum() [all …]
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | mmio.h | 13 return syscall(__NR_s390_pci_mmio_write, mmio_addr, &val, sizeof(val)); in mmio_writeb() 19 return syscall(__NR_s390_pci_mmio_write, mmio_addr, &val, sizeof(val)); in mmio_writew() 25 return syscall(__NR_s390_pci_mmio_write, mmio_addr, &val, sizeof(val)); in mmio_writel() 31 return syscall(__NR_s390_pci_mmio_write, mmio_addr, &val, sizeof(val)); in mmio_writeq() 38 return syscall(__NR_s390_pci_mmio_write, mmio_addr, val, length); in mmio_write() 43 return syscall(__NR_s390_pci_mmio_read, mmio_addr, val, sizeof(*val)); in mmio_readb() 48 return syscall(__NR_s390_pci_mmio_read, mmio_addr, val, sizeof(*val)); in mmio_readw() 53 return syscall(__NR_s390_pci_mmio_read, mmio_addr, val, sizeof(*val)); in mmio_readl() 58 return syscall(__NR_s390_pci_mmio_read, mmio_addr, val, sizeof(*val)); in mmio_readq() 65 return syscall(__NR_s390_pci_mmio_read, mmio_addr, val, length); in mmio_read()
|
/freebsd/cddl/usr.sbin/dwatch/libexec/ |
H A D | sendrecv | 17 syscall::recvfrom:return, \ 18 syscall::recvmsg:return, \ 19 syscall::sendmsg:entry, \ 20 syscall::sendto:entry )} ;; 23 syscall::sendmsg:entry, \ 24 syscall::sendto:entry )} ;; 27 syscall::recvfrom:return, \ 28 syscall::recvmsg:return )} ;; 30 : ${PROBE:=syscall::$PROFILE:return} ;; 32 : ${PROBE:=syscall::$PROFILE:entry} [all …]
|
/freebsd/contrib/capsicum-test/ |
H A D | syscalls.h | 159 return syscall(__NR_getdents, fd, dirp, count); in getdents_() 169 return syscall(__NR_getpid); in getpid_() 173 return syscall(__NR_execveat, fd, path, argv, envp, flags); in execveat() 187 static inline gid_t getegid_(void) { return syscall(__NR_getegid); } in getegid_() 188 static inline gid_t getgid_(void) { return syscall(__NR_getgid); } in getgid_() 189 static inline uid_t geteuid_(void) { return syscall(__NR_geteuid); } in geteuid_() 190 static inline uid_t getuid_(void) { return syscall(__NR_getuid); } in getuid_() 191 static inline int getgroups_(int size, gid_t list[]) { return syscall(__NR_getgroups, size, list); } in getgroups_() 193 return syscall(__NR_getrlimit, resource, rlim); in getrlimit_() 205 return syscall(__NR_socketcall, SYS_BIND, args); in bind_() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | epoll_sub.c | 45 return (syscall(__NR_epoll_create1, 0)); in epoll_create() 47 return (syscall(__NR_epoll_create, size)); in epoll_create() 55 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
/freebsd/contrib/libevent/ |
H A D | epoll_sub.c | 45 return (syscall(__NR_epoll_create1, 0)); in epoll_create() 47 return (syscall(__NR_epoll_create, size)); in epoll_create() 55 return (syscall(__NR_epoll_ctl, epfd, op, fd, event)); in epoll_ctl() 62 return (syscall(__NR_epoll_pwait, epfd, events, maxevents, timeout, NULL, 0)); in epoll_wait() 64 return (syscall(__NR_epoll_wait, epfd, events, maxevents, timeout)); in epoll_wait()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/ |
H A D | tst.openret.ksh | 31 syscall::open*:entry 37 syscall::open*:return 44 syscall::open*:return 50 syscall::open*:return 57 syscall::open*:return
|