diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index 18205b72b..afd1890ea 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c @@ -1288,100 +1288,155 @@ PRE(iopl) PRINT("iopl ( %d )", arg1); } -PRE(setxattr) +PREx(sys_setxattr, MayBlock) { - PRINT("setxattr ( %p, %p, %p, %llu, %d )", + PRINT("sys_setxattr ( %p, %p, %p, %llu, %d )", arg1, arg2, arg3, (ULong)arg4, arg5); + PRE_REG_READ5(long, "setxattr", + char *, path, char *, name, + void *, value, vki_size_t, size, int, flags); PRE_MEM_RASCIIZ( "setxattr(path)", arg1 ); PRE_MEM_RASCIIZ( "setxattr(name)", arg2 ); PRE_MEM_READ( "setxattr(value)", arg3, arg4 ); } -PREALIAS(lsetxattr, setxattr); - -PRE(fsetxattr) +PREx(sys_lsetxattr, MayBlock) { - /* int fsetxattr (int filedes, const char *name, - const void *value, size_t size, int flags); */ - PRINT("fsetxattr ( %d, %p, %p, %llu, %d )", + PRINT("sys_lsetxattr ( %p, %p, %p, %llu, %d )", arg1, arg2, arg3, (ULong)arg4, arg5); + PRE_REG_READ5(long, "lsetxattr", + char *, path, char *, name, + void *, value, vki_size_t, size, int, flags); + PRE_MEM_RASCIIZ( "lsetxattr(path)", arg1 ); + PRE_MEM_RASCIIZ( "lsetxattr(name)", arg2 ); + PRE_MEM_READ( "lsetxattr(value)", arg3, arg4 ); +} + +PREx(sys_fsetxattr, MayBlock) +{ + PRINT("sys_fsetxattr ( %d, %p, %p, %llu, %d )", + arg1, arg2, arg3, (ULong)arg4, arg5); + PRE_REG_READ5(long, "fsetxattr", + int, fd, char *, name, void *, value, + vki_size_t, size, int, flags); PRE_MEM_RASCIIZ( "fsetxattr(name)", arg2 ); PRE_MEM_READ( "fsetxattr(value)", arg3, arg4 ); } -PRE(getxattr) +PREx(sys_getxattr, MayBlock) { - PRINT("getxattr ( %p, %p, %p, %llu )", arg1,arg2,arg3, (ULong)arg4); + PRINT("sys_getxattr ( %p, %p, %p, %llu )", arg1,arg2,arg3, (ULong)arg4); + PRE_REG_READ4(ssize_t, "getxattr", + char *, path, char *, name, void *, value, vki_size_t, size); PRE_MEM_RASCIIZ( "getxattr(path)", arg1 ); PRE_MEM_RASCIIZ( "getxattr(name)", arg2 ); PRE_MEM_WRITE( "getxattr(value)", arg3, arg4 ); } -POST(getxattr) +POSTx(sys_getxattr) { if (res > 0 && arg3 != (Addr)NULL) { POST_MEM_WRITE( arg3, res ); } } -PREALIAS(lgetxattr, getxattr); -POSTALIAS(lgetxattr, getxattr); - -PRE(fgetxattr) +PREx(sys_lgetxattr, MayBlock) { - PRINT("fgetxattr ( %d, %p, %p, %llu )", arg1, arg2, arg3, (ULong)arg4); + PRINT("sys_lgetxattr ( %p, %p, %p, %llu )", arg1,arg2,arg3, (ULong)arg4); + PRE_REG_READ4(ssize_t, "lgetxattr", + char *, path, char *, name, void *, value, vki_size_t, size); + PRE_MEM_RASCIIZ( "lgetxattr(path)", arg1 ); + PRE_MEM_RASCIIZ( "lgetxattr(name)", arg2 ); + PRE_MEM_WRITE( "lgetxattr(value)", arg3, arg4 ); +} + +POSTx(sys_lgetxattr) +{ + if (res > 0 && arg3 != (Addr)NULL) { + POST_MEM_WRITE( arg3, res ); + } +} + +PREx(sys_fgetxattr, MayBlock) +{ + PRINT("sys_fgetxattr ( %d, %p, %p, %llu )", arg1, arg2, arg3, (ULong)arg4); + PRE_REG_READ4(ssize_t, "fgetxattr", + int, fd, char *, name, void *, value, vki_size_t, size); PRE_MEM_RASCIIZ( "fgetxattr(name)", arg2 ); PRE_MEM_WRITE( "fgetxattr(value)", arg3, arg4 ); } -POST(fgetxattr) +POSTx(sys_fgetxattr) { if (res > 0 && arg3 != (Addr)NULL) POST_MEM_WRITE( arg3, res ); } -PRE(listxattr) +PREx(sys_listxattr, MayBlock) { - PRINT("listxattr ( %p, %p, %llu )", arg1, arg2, (ULong)arg3); + PRINT("sys_listxattr ( %p, %p, %llu )", arg1, arg2, (ULong)arg3); + PRE_REG_READ3(ssize_t, "listxattr", + char *, path, char *, list, vki_size_t, size); PRE_MEM_RASCIIZ( "listxattr(path)", arg1 ); PRE_MEM_WRITE( "listxattr(list)", arg2, arg3 ); } -POST(listxattr) +POSTx(sys_listxattr) { if (res > 0 && arg2 != (Addr)NULL) POST_MEM_WRITE( arg2, res ); } -PREALIAS(llistxattr, listxattr); -POSTALIAS(llistxattr, listxattr); - -PRE(flistxattr) +PREx(sys_llistxattr, MayBlock) { - /* ssize_t flistxattr (int filedes, char *list, size_t size); */ - PRINT("flistxattr ( %d, %p, %llu )", arg1, arg2, (ULong)arg3); - PRE_MEM_WRITE( "listxattr(list)", arg2, arg3 ); + PRINT("sys_llistxattr ( %p, %p, %llu )", arg1, arg2, (ULong)arg3); + PRE_REG_READ3(ssize_t, "llistxattr", + char *, path, char *, list, vki_size_t, size); + PRE_MEM_RASCIIZ( "llistxattr(path)", arg1 ); + PRE_MEM_WRITE( "llistxattr(list)", arg2, arg3 ); } -POST(flistxattr) +POSTx(sys_llistxattr) { if (res > 0 && arg2 != (Addr)NULL) POST_MEM_WRITE( arg2, res ); } -PRE(removexattr) +PREx(sys_flistxattr, MayBlock) { - PRINT("removexattr ( %p, %p )", arg1, arg2); - PRE_MEM_RASCIIZ( "listxattr(path)", arg1 ); - PRE_MEM_RASCIIZ( "listxattr(name)", arg2 ); + PRINT("sys_flistxattr ( %d, %p, %llu )", arg1, arg2, (ULong)arg3); + PRE_REG_READ3(ssize_t, "flistxattr", + int, fd, char *, list, vki_size_t, size); + PRE_MEM_WRITE( "flistxattr(list)", arg2, arg3 ); } -PREALIAS(lremovexattr, removexattr); - -PRE(fremovexattr) +POSTx(sys_flistxattr) { - PRINT("removexattr ( %d, %p )", arg1, arg2); - PRE_MEM_RASCIIZ( "listxattr(name)", arg2 ); + if (res > 0 && arg2 != (Addr)NULL) + POST_MEM_WRITE( arg2, res ); +} + +PREx(sys_removexattr, MayBlock) +{ + PRINT("sys_removexattr ( %p, %p )", arg1, arg2); + PRE_REG_READ2(long, "removexattr", char *, path, char *, name); + PRE_MEM_RASCIIZ( "removexattr(path)", arg1 ); + PRE_MEM_RASCIIZ( "removexattr(name)", arg2 ); +} + +PREx(sys_lremovexattr, MayBlock) +{ + PRINT("sys_lremovexattr ( %p, %p )", arg1, arg2); + PRE_REG_READ2(long, "lremovexattr", char *, path, char *, name); + PRE_MEM_RASCIIZ( "lremovexattr(path)", arg1 ); + PRE_MEM_RASCIIZ( "lremovexattr(name)", arg2 ); +} + +PREx(sys_fremovexattr, MayBlock) +{ + PRINT("sys_fremovexattr ( %d, %p )", arg1, arg2); + PRE_REG_READ2(long, "fremovexattr", int, fd, char *, name); + PRE_MEM_RASCIIZ( "fremovexattr(name)", arg2 ); } PRE(quotactl) @@ -1567,10 +1622,10 @@ PRE(setresgid32) PRINT("setresgid32 ( %d, %d, %d )", arg1, arg2, arg3); } -PRE(setfsuid32) +PREx(sys_setfsuid, 0) { - /* int setfsuid(uid_t fsuid); */ - PRINT("setfsuid ( %d )", arg1); + PRINT("sys_setfsuid ( %d )", arg1); + PRE_REG_READ1(long, "setfsuid", vki_uid_t, uid); } PRE(_sysctl) @@ -1650,10 +1705,10 @@ PRE(getpriority) PRINT("getpriority ( %d, %d )", arg1, arg2); } -PRE(setfsgid) +PREx(sys_setfsgid16, 0) { - /* int setfsgid(gid_t gid); */ - PRINT("setfsgid ( %d )", arg1); + PRINT("sys_setfsgid16 ( %d )", arg1); + PRE_REG_READ1(long, "setfsgid16", vki_old_gid_t, gid); } PREx(sys_setregid16, 0) @@ -1668,10 +1723,10 @@ PRE(setresuid) PRINT("setresuid ( %d, %d, %d )", arg1, arg2, arg3); } -PRE(setfsuid) +PREx(sys_setfsuid16, 0) { - /* int setfsuid(uid_t uid); */ - PRINT("setfsuid ( %d )", arg1); + PRINT("sys_setfsuid16 ( %d )", arg1); + PRE_REG_READ1(long, "setfsuid16", vki_old_uid_t, uid); } PRE(sendfile) @@ -2006,15 +2061,31 @@ PREx(sys_chmod, 0) PRE_MEM_RASCIIZ( "chmod(path)", arg1 ); } -PRE(chown) +PREx(sys_chown16, 0) +{ + PRINT("sys_chown16 ( %p, 0x%x, 0x%x )", arg1,arg2,arg3); + PRE_REG_READ3(long, "chown16", + const char *, path, + vki_old_uid_t, owner, vki_old_gid_t, group); + PRE_MEM_RASCIIZ( "chown16(path)", arg1 ); +} + +PREx(sys_chown, 0) { /* int chown(const char *path, uid_t owner, gid_t group); */ - PRINT("chown ( %p, 0x%x, 0x%x )", arg1,arg2,arg3); + PRINT("sys_chown ( %p, 0x%x, 0x%x )", arg1,arg2,arg3); + PRE_REG_READ3(long, "chown", + const char *, path, vki_uid_t, owner, vki_gid_t, group); PRE_MEM_RASCIIZ( "chown(path)", arg1 ); } -PREALIAS(chown32, chown); -PREALIAS(lchown32, chown); +PREx(sys_lchown, 0) +{ + PRINT("sys_lchown ( %p, 0x%x, 0x%x )", arg1,arg2,arg3); + PRE_REG_READ3(long, "lchown", + const char *, path, vki_uid_t, owner, vki_gid_t, group); + PRE_MEM_RASCIIZ( "lchown(path)", arg1 ); +} PREx(sys_close, 0) { @@ -2090,13 +2161,19 @@ PRE(fchdir) PRINT("fchdir ( %d )", arg1); } -PRE(fchown) +PREx(sys_fchown16, 0) { - /* int fchown(int filedes, uid_t owner, gid_t group); */ - PRINT("fchown ( %d, %d, %d )", arg1,arg2,arg3); + PRINT("sys_fchown16 ( %d, %d, %d )", arg1,arg2,arg3); + PRE_REG_READ3(long, "fchown16", + unsigned int, fd, vki_old_uid_t, owner, vki_old_gid_t, group); } -PREALIAS(fchown32, fchown); +PREx(sys_fchown, 0) +{ + PRINT("sys_fchown ( %d, %d, %d )", arg1,arg2,arg3); + PRE_REG_READ3(long, "fchown", + unsigned int, fd, vki_uid_t, owner, vki_gid_t, group); +} PRE(fchmod) { @@ -2125,14 +2202,14 @@ POST(fcntl64) } } -PRE(fstat) +PREx(sys_newfstat, 0) { - /* int fstat(int filedes, struct stat *buf); */ - PRINT("fstat ( %d, %p )",arg1,arg2); - PRE_MEM_WRITE( "fstat", arg2, sizeof(struct vki_stat) ); + PRINT("sys_newfstat ( %d, %p )", arg1,arg2); + PRE_REG_READ2(long, "fstat", unsigned int, fd, struct stat *, buf); + PRE_MEM_WRITE( "fstat(buf)", arg2, sizeof(struct vki_stat) ); } -POST(fstat) +POSTx(sys_newfstat) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat) ); } @@ -2938,6 +3015,7 @@ POST(ipc) } } +// XXX: I reckon some of these cases must be x86-specific PREx(sys_ioctl, MayBlock) { PRINT("sys_ioctl ( %d, 0x%x, %p )",arg1,arg2,arg3); @@ -4268,30 +4346,30 @@ POST(_llseek) POST_MEM_WRITE( arg4, sizeof(vki_loff_t) ); } -PRE(lstat) +PREx(sys_newlstat, 0) { - /* int lstat(const char *file_name, struct stat *buf); */ - PRINT("lstat ( %p(%s), %p )",arg1,arg1,arg2); + PRINT("sys_newlstat ( %p(%s), %p )", arg1,arg1,arg2); + PRE_REG_READ2(long, "lstat", char *, file_name, struct stat *, buf); PRE_MEM_RASCIIZ( "lstat(file_name)", arg1 ); PRE_MEM_WRITE( "lstat(buf)", arg2, sizeof(struct vki_stat) ); } -POST(lstat) +POSTx(sys_newlstat) { if (res == 0) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat) ); } } -PRE(lstat64) +PREx(sys_lstat64, 0) { - /* int lstat64(const char *file_name, struct stat64 *buf); */ PRINT("lstat64 ( %p(%s), %p )",arg1,arg1,arg2); + PRE_REG_READ2(long, "lstat64", char *, file_name, struct stat64 *, buf); PRE_MEM_RASCIIZ( "lstat64(file_name)", arg1 ); PRE_MEM_WRITE( "lstat64(buf)", arg2, sizeof(struct vki_stat64) ); } -POST(lstat64) +POSTx(sys_lstat64) { if (res == 0) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat64) ); @@ -4787,10 +4865,10 @@ POST(setitimer) } } -PRE(setfsgid32) +PREx(sys_setfsgid, 0) { - /* int setfsgid(uid_t fsgid); */ - PRINT("setfsgid ( %d )", arg1); + PRINT("sys_setfsgid ( %d )", arg1); + PRE_REG_READ1(long, "setfsgid", vki_gid_t, gid); } PREx(sys_setgid16, 0) @@ -5274,15 +5352,15 @@ POST(socketcall) } } -PRE(stat) +PREx(sys_newstat, 0) { - /* int stat(const char *file_name, struct stat *buf); */ - PRINT("stat ( %p, %p )",arg1,arg2); + PRINT("sys_newstat ( %p(%s), %p )", arg1,arg1,arg2); + PRE_REG_READ2(long, "stat", char *, file_name, struct stat *, buf); PRE_MEM_RASCIIZ( "stat(file_name)", arg1 ); PRE_MEM_WRITE( "stat(buf)", arg2, sizeof(struct vki_stat) ); } -POST(stat) +POSTx(sys_newstat) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat) ); } @@ -5321,27 +5399,27 @@ PRE(symlink) PRE_MEM_RASCIIZ( "symlink(newpath)", arg2 ); } -PRE(stat64) +PREx(sys_stat64, 0) { - /* int stat64(const char *file_name, struct stat64 *buf); */ - PRINT("stat64 ( %p, %p )",arg1,arg2); + PRINT("sys_stat64 ( %p, %p )",arg1,arg2); + PRE_REG_READ2(long, "stat64", char *, file_name, struct stat64 *, buf); PRE_MEM_RASCIIZ( "stat64(file_name)", arg1 ); PRE_MEM_WRITE( "stat64(buf)", arg2, sizeof(struct vki_stat64) ); } -POST(stat64) +POSTx(sys_stat64) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat64) ); } -PRE(fstat64) +PREx(sys_fstat64, 0) { - /* int fstat64(int filedes, struct stat64 *buf); */ - PRINT("fstat64 ( %d, %p )",arg1,arg2); + PRINT("sys_fstat64 ( %d, %p )",arg1,arg2); + PRE_REG_READ2(long, "fstat64", unsigned long, fd, struct stat64 *, buf); PRE_MEM_WRITE( "fstat64(buf)", arg2, sizeof(struct vki_stat64) ); } -POST(fstat64) +POSTx(sys_fstat64) { POST_MEM_WRITE( arg2, sizeof(struct vki_stat64) ); } @@ -6195,7 +6273,7 @@ static const struct sys_info sys_info[] = { SYSX_(__NR_acct, sys_acct), // 51 * (SVR4, non-POSIX) SYSX_(__NR_umount2, sys_umount), // 52 * L SYSX_(__NR_lock, sys_ni_syscall), // 53 * P -- unimplemented - SYSXY(__NR_ioctl, sys_ioctl), // 54 * (varying) + SYSXY(__NR_ioctl, sys_ioctl), // 54 */x86 (varying) SYSXY(__NR_fcntl, sys_fcntl), // 55 * (P...complex) SYSX_(__NR_mpx, sys_ni_syscall), // 56 * P -- unimplemented @@ -6245,7 +6323,7 @@ static const struct sys_info sys_info[] = { SYSB_(__NR_ftruncate, sys_ftruncate, MayBlock), // 93 * SYSB_(__NR_fchmod, sys_fchmod, 0), // 94 * - SYSB_(__NR_fchown, sys_fchown16, 0), // 95 ## + SYSX_(__NR_fchown, sys_fchown16), // 95 ## (SVr4,BSD4.3) SYSB_(__NR_getpriority, sys_getpriority, 0), // 96 * SYSB_(__NR_setpriority, sys_setpriority, 0), // 97 * // (__NR_profil, sys_ni_syscall), // 98 * P -- unimplemented @@ -6258,9 +6336,9 @@ static const struct sys_info sys_info[] = { SYSBA(__NR_setitimer, sys_setitimer, NBRunInLWP), // 104 * SYSBA(__NR_getitimer, sys_getitimer, NBRunInLWP), // 105 * - SYSBA(__NR_stat, sys_newstat, 0), // 106 * - SYSBA(__NR_lstat, sys_newlstat, 0), // 107 * - SYSBA(__NR_fstat, sys_newfstat, 0), // 108 * + SYSXY(__NR_stat, sys_newstat), // 106 * P + SYSXY(__NR_lstat, sys_newlstat), // 107 * + SYSXY(__NR_fstat, sys_newfstat), // 108 * P (SVr4,BSD4.3) // (__NR_olduname, sys_uname), // 109 (?) L -- obsolete SYSB_(__NR_iopl, sys_iopl, 0), // 110 @@ -6298,8 +6376,8 @@ static const struct sys_info sys_info[] = { // (__NR_sysfs, sys_sysfs), // 135 * (SVr4) SYSB_(__NR_personality, sys_personality, 0), // 135 * (SVr4) SYSX_(__NR_afs_syscall, sys_ni_syscall), // 137 * P - SYSB_(__NR_setfsuid, sys_setfsuid16, 0), // 138 ## - SYSB_(__NR_setfsgid, sys_setfsgid16, 0), // 139 ## + SYSX_(__NR_setfsuid, sys_setfsuid16), // 138 ## L + SYSX_(__NR_setfsgid, sys_setfsgid16), // 139 ## L SYSBA(__NR__llseek, sys_llseek, 0), // 140 * SYSBA(__NR_getdents, sys_getdents, MayBlock), // 141 * @@ -6351,7 +6429,7 @@ static const struct sys_info sys_info[] = { SYSBA(__NR_pread64, sys_pread64, MayBlock), // 180 * SYSB_(__NR_pwrite64, sys_pwrite64, MayBlock), // 181 * - SYSB_(__NR_chown, sys_chown16, 0), // 182 + SYSX_(__NR_chown, sys_chown16), // 182 * P SYSBA(__NR_getcwd, sys_getcwd, 0), // 183 * SYSBA(__NR_capget, sys_capget, 0), // 184 * @@ -6368,10 +6446,10 @@ static const struct sys_info sys_info[] = { SYSB_(__NR_truncate64, sys_truncate64, MayBlock), // 193 %% SYSB_(__NR_ftruncate64, sys_ftruncate64, MayBlock), // 194 %% - SYSBA(__NR_stat64, sys_stat64, 0), // 195 %% - SYSBA(__NR_lstat64, sys_lstat64, 0), // 196 %% - SYSBA(__NR_fstat64, sys_fstat64, 0), // 197 %% - SYSB_(__NR_lchown32, sys_lchown, 0), // 198 * + SYSXY(__NR_stat64, sys_stat64), // 195 %% (?) + SYSXY(__NR_lstat64, sys_lstat64), // 196 %% (?) + SYSXY(__NR_fstat64, sys_fstat64), // 197 %% (?) + SYSX_(__NR_lchown32, sys_lchown), // 198 * (L?) SYSX_(__NR_getuid32, sys_getuid), // 199 * SYSX_(__NR_getgid32, sys_getgid), // 200 * @@ -6382,18 +6460,18 @@ static const struct sys_info sys_info[] = { SYSBA(__NR_getgroups32, sys_getgroups, 0), // 205 * SYSB_(__NR_setgroups32, sys_setgroups, 0), // 206 * - SYSB_(__NR_fchown32, sys_fchown, 0), // 207 * + SYSX_(__NR_fchown32, sys_fchown), // 207 * (SVr4,BSD4.3) SYSB_(__NR_setresuid32, sys_setresuid, 0), // 208 * SYSBA(__NR_getresuid32, sys_getresuid, 0), // 209 * SYSB_(__NR_setresgid32, sys_setresgid, 0), // 210 * SYSBA(__NR_getresgid32, sys_getresgid, 0), // 211 * - SYSB_(__NR_chown32, sys_chown, 0), // 212 * + SYSX_(__NR_chown32, sys_chown), // 212 * P SYSX_(__NR_setuid32, sys_setuid), // 213 * SYSX_(__NR_setgid32, sys_setgid), // 214 * (SVr4,SVID) - SYSB_(__NR_setfsuid32, sys_setfsuid, 0), // 215 * - SYSB_(__NR_setfsgid32, sys_setfsgid, 0), // 216 * + SYSX_(__NR_setfsuid32, sys_setfsuid), // 215 * L + SYSX_(__NR_setfsgid32, sys_setfsgid), // 216 * L // (__NR_pivot_root, sys_pivot_root), // 217 * L SYSBA(__NR_mincore, sys_mincore, 0), // 218 * SYSB_(__NR_madvise, sys_madvise, MayBlock), // 219 * @@ -6408,20 +6486,20 @@ static const struct sys_info sys_info[] = { // (__NR_gettid, sys_gettid), // 224 * L // (__NR_readahead, sys_readahead), // 225 * () - SYSB_(__NR_setxattr, sys_setxattr, MayBlock), // 226 * L? - SYSB_(__NR_lsetxattr, sys_lsetxattr, MayBlock), // 227 * L? - SYSB_(__NR_fsetxattr, sys_fsetxattr, MayBlock), // 228 * L? - SYSBA(__NR_getxattr, sys_getxattr, MayBlock), // 229 * L? + SYSX_(__NR_setxattr, sys_setxattr), // 226 * L? + SYSX_(__NR_lsetxattr, sys_lsetxattr), // 227 * L? + SYSX_(__NR_fsetxattr, sys_fsetxattr), // 228 * L? + SYSXY(__NR_getxattr, sys_getxattr), // 229 * L? - SYSBA(__NR_lgetxattr, sys_lgetxattr, MayBlock), // 230 * L? - SYSBA(__NR_fgetxattr, sys_fgetxattr, MayBlock), // 231 * L? - SYSBA(__NR_listxattr, sys_listxattr, MayBlock), // 232 * L? - SYSBA(__NR_llistxattr, sys_llistxattr, MayBlock), // 233 * L? - SYSBA(__NR_flistxattr, sys_flistxattr, MayBlock), // 234 * L? + SYSXY(__NR_lgetxattr, sys_lgetxattr), // 230 * L? + SYSXY(__NR_fgetxattr, sys_fgetxattr), // 231 * L? + SYSXY(__NR_listxattr, sys_listxattr), // 232 * L? + SYSXY(__NR_llistxattr, sys_llistxattr), // 233 * L? + SYSXY(__NR_flistxattr, sys_flistxattr), // 234 * L? - SYSB_(__NR_removexattr, sys_removexattr, MayBlock), // 235 * L? - SYSB_(__NR_lremovexattr, sys_lremovexattr, MayBlock), // 236 * L? - SYSB_(__NR_fremovexattr, sys_fremovexattr, MayBlock), // 237 * L? + SYSX_(__NR_removexattr, sys_removexattr), // 235 * L? + SYSX_(__NR_lremovexattr, sys_lremovexattr), // 236 * L? + SYSX_(__NR_fremovexattr, sys_fremovexattr), // 237 * L? // (__NR_tkill, sys_tkill), // 238 * L SYSBA(__NR_sendfile64, sys_sendfile64, MayBlock), // 239 * diff --git a/memcheck/tests/scalar.c b/memcheck/tests/scalar.c index 5a42b2570..afd819d3c 100644 --- a/memcheck/tests/scalar.c +++ b/memcheck/tests/scalar.c @@ -291,6 +291,8 @@ int main(void) SY(__NR_setregid, x0, x0); // __NR_sigsuspend 72 --> sys_sigsuspend() + //GO(__NR_sigsuspend, ".s .m"); + //SY(__NR_sigsuspend); // __NR_sigpending 73 --> sys_sigpending() GO(__NR_sigpending, "1s 1m"); @@ -374,9 +376,9 @@ int main(void) //GO(__NR_fchmod, ".s .m"); //SY(__NR_fchmod); - // __NR_fchown 95 - //GO(__NR_fchown, ".s .m"); - //SY(__NR_fchown); + // __NR_fchown 95 --> sys_fchown16 + GO(__NR_fchown, "3s 0m"); + SY(__NR_fchown, x0, x0, x0); // __NR_getpriority 96 //GO(__NR_getpriority, ".s .m"); @@ -418,17 +420,17 @@ int main(void) //GO(__NR_getitimer, ".s .m"); //SY(__NR_getitimer); - // __NR_stat 106 - //GO(__NR_stat, ".s .m"); - //SY(__NR_stat); + // __NR_stat 106 --> sys_newstat() + GO(__NR_stat, "2s 2m"); + SY(__NR_stat, x0, x0); - // __NR_lstat 107 - //GO(__NR_lstat, ".s .m"); - //SY(__NR_lstat); + // __NR_lstat 107 --> sys_newlstat() + GO(__NR_lstat, "2s 2m"); + SY(__NR_lstat, x0, x0); - // __NR_fstat 108 - //GO(__NR_fstat, ".s .m"); - //SY(__NR_fstat); + // __NR_fstat 108 --> sys_newfstat() + GO(__NR_fstat, "2s 1m"); + SY(__NR_fstat, x0, x0); // __NR_olduname 109 // (obsolete, not handled by Valgrind) @@ -546,12 +548,12 @@ int main(void) SY(__NR_afs_syscall); // __NR_setfsuid 138 - //GO(__NR_setfsuid, ".s .m"); - //SY(__NR_setfsuid); + GO(__NR_setfsuid, "1s 0m"); + SY(__NR_setfsuid); // __NR_setfsgid 139 - //GO(__NR_setfsgid, ".s .m"); - //SY(__NR_setfsgid); + GO(__NR_setfsgid, "1s 0m"); + SY(__NR_setfsgid); // __NR__llseek 140 //GO(__NR__llseek, ".s .m"); @@ -721,9 +723,9 @@ int main(void) //GO(__NR_pwrite64, ".s .m"); //SY(__NR_pwrite64); - // __NR_chown 182 - //GO(__NR_chown, ".s .m"); - //SY(__NR_chown); + // __NR_chown 182 --> sys_chown16() + GO(__NR_chown, "3s 1m"); + SY(__NR_chown, x0, x0, x0); // __NR_getcwd 183 //GO(__NR_getcwd, ".s .m"); @@ -774,20 +776,20 @@ int main(void) //SY(__NR_ftruncate64); // __NR_stat64 195 - //GO(__NR_stat64, ".s .m"); - //SY(__NR_stat64); + GO(__NR_stat64, "2s 2m"); + SY(__NR_stat64, x0, x0); // __NR_lstat64 196 - //GO(__NR_lstat64, ".s .m"); - //SY(__NR_lstat64); + GO(__NR_lstat64, "2s 2m"); + SY(__NR_lstat64, x0, x0); // __NR_fstat64 197 - //GO(__NR_fstat64, ".s .m"); - //SY(__NR_fstat64); + GO(__NR_fstat64, "2s 1m"); + SY(__NR_fstat64, x0, x0); - // __NR_lchown32 198 - //GO(__NR_lchown32, ".s .m"); - //SY(__NR_lchown32); + // __NR_lchown32 198 --> sys_chown() + GO(__NR_lchown32, "3s 1m"); + SY(__NR_lchown32, x0, x0, x0); // __NR_getuid32 199 --> sys_getuid() GO(__NR_getuid32, "0e"); @@ -821,9 +823,9 @@ int main(void) //GO(__NR_setgroups32, ".s .m"); //SY(__NR_setgroups32); - // __NR_fchown32 207 - //GO(__NR_fchown32, ".s .m"); - //SY(__NR_fchown32); + // __NR_fchown32 207 --> sys_fchown() + GO(__NR_fchown32, "3s 0m"); + SY(__NR_fchown32, x0, x0, x0); // __NR_setresuid32 208 //GO(__NR_setresuid32, ".s .m"); @@ -841,9 +843,9 @@ int main(void) //GO(__NR_getresgid32, ".s .m"); //SY(__NR_getresgid32); - // __NR_chown32 212 - //GO(__NR_chown32, ".s .m"); - //SY(__NR_chown32); + // __NR_chown32 212 --> sys_chown() + GO(__NR_chown32, "3s 1m"); + SY(__NR_chown32, x0, x0, x0); // __NR_setuid32 213 --> sys_setuid() GO(__NR_setuid32, "1s 0m"); @@ -853,13 +855,13 @@ int main(void) GO(__NR_setgid32, "1s 0m"); SY(__NR_setgid32); - // __NR_setfsuid32 215 - //GO(__NR_setfsuid32, ".s .m"); - //SY(__NR_setfsuid32); + // __NR_setfsuid32 215 --> sys_setfsuid() + GO(__NR_setfsuid32, "1s 0m"); + SY(__NR_setfsuid32, x0); - // __NR_setfsgid32 216 - //GO(__NR_setfsgid32, ".s .m"); - //SY(__NR_setfsgid32); + // __NR_setfsgid32 216 --> sys_setfsgid() + GO(__NR_setfsgid32, "1s 0m"); + SY(__NR_setfsgid32, x0); // __NR_pivot_root 217 //GO(__NR_pivot_root, ".s .m"); @@ -897,53 +899,53 @@ int main(void) //GO(__NR_readahead, ".s .m"); //SY(__NR_readahead); - // __NR_setxattr 226 - //GO(__NR_setxattr, ".s .m"); - //SY(__NR_setxattr); + // __NR_setxattr 226 --> sys_xattr() + GO(__NR_setxattr, "5s 3m"); + SY(__NR_setxattr, x0, x0, x0, x0+1, x0); - // __NR_lsetxattr 227 - //GO(__NR_lsetxattr, ".s .m"); - //SY(__NR_lsetxattr); + // __NR_lsetxattr 227 --> sys_lsetxattr() + GO(__NR_lsetxattr, "5s 3m"); + SY(__NR_lsetxattr, x0, x0, x0, x0+1, x0); - // __NR_fsetxattr 228 - //GO(__NR_fsetxattr, ".s .m"); - //SY(__NR_fsetxattr); + // __NR_fsetxattr 228 --> sys_fsetxattr() + GO(__NR_fsetxattr, "5s 2m"); + SY(__NR_fsetxattr, x0, x0, x0, x0+1, x0); - // __NR_getxattr 229 - //GO(__NR_getxattr, ".s .m"); - //SY(__NR_getxattr); + // __NR_getxattr 229 --> sys_getxattr() + GO(__NR_getxattr, "4s 3m"); + SY(__NR_getxattr, x0, x0, x0, x0+1); - // __NR_lgetxattr 230 - //GO(__NR_lgetxattr, ".s .m"); - //SY(__NR_lgetxattr); + // __NR_lgetxattr 230 --> sys_lgetxattr() + GO(__NR_lgetxattr, "4s 3m"); + SY(__NR_lgetxattr, x0, x0, x0, x0+1); - // __NR_fgetxattr 231 - //GO(__NR_fgetxattr, ".s .m"); - //SY(__NR_fgetxattr); + // __NR_fgetxattr 231 --> sys_fgetxattr() + GO(__NR_fgetxattr, "4s 2m"); + SY(__NR_fgetxattr, x0, x0, x0, x0+1); - // __NR_listxattr 232 - //GO(__NR_listxattr, ".s .m"); - //SY(__NR_listxattr); + // __NR_listxattr 232 --> sys_listxattr() + GO(__NR_listxattr, "3s 2m"); + SY(__NR_listxattr, x0, x0, x0+1); - // __NR_llistxattr 233 - //GO(__NR_llistxattr, ".s .m"); - //SY(__NR_llistxattr); + // __NR_llistxattr 233 --> sys_llistxattr() + GO(__NR_llistxattr, "3s 2m"); + SY(__NR_llistxattr, x0, x0, x0+1); - // __NR_flistxattr 234 - //GO(__NR_flistxattr, ".s .m"); - //SY(__NR_flistxattr); + // __NR_flistxattr 234 --> sys_flistxattr() + GO(__NR_flistxattr, "3s 1m"); + SY(__NR_flistxattr, x0, x0, x0+1); - // __NR_removexattr 235 - //GO(__NR_removexattr, ".s .m"); - //SY(__NR_removexattr); + // __NR_removexattr 235 --> sys_removexattr() + GO(__NR_removexattr, "2s 2m"); + SY(__NR_removexattr, x0, x0); - // __NR_lremovexattr 236 - //GO(__NR_lremovexattr, ".s .m"); - //SY(__NR_lremovexattr); + // __NR_lremovexattr 236 --> sys_lremovexattr() + GO(__NR_lremovexattr, "2s 2m"); + SY(__NR_lremovexattr, x0, x0); - // __NR_fremovexattr 237 - //GO(__NR_fremovexattr, ".s .m"); - //SY(__NR_fremovexattr); + // __NR_fremovexattr 237 --> sys_fremovexattr() + GO(__NR_fremovexattr, "2s 1m"); + SY(__NR_fremovexattr, x0, x0); // __NR_tkill 238 //GO(__NR_tkill, ".s .m"); diff --git a/memcheck/tests/scalar.stderr.exp b/memcheck/tests/scalar.stderr.exp index abccde964..c59c47332 100644 --- a/memcheck/tests/scalar.stderr.exp +++ b/memcheck/tests/scalar.stderr.exp @@ -846,6 +846,93 @@ Syscall param old_getrlimit(rlim) points to unaddressable byte(s) by 0x........: __libc_start_main (...libc...) by 0x........: ... Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- + 95: __NR_fchown 3s 0m +----------------------------------------------------- + +Syscall param fchown16(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fchown16(owner) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fchown16(group) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- +106: __NR_stat 2s 2m +----------------------------------------------------- + +Syscall param stat(file_name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param stat(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param stat(file_name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param stat(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +107: __NR_lstat 2s 2m +----------------------------------------------------- + +Syscall param lstat(file_name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lstat(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lstat(file_name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lstat(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +108: __NR_fstat 2s 1m +----------------------------------------------------- + +Syscall param fstat(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fstat(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fstat(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd ----------------------------------------------------- 111: __NR_vhangup 0e ----------------------------------------------------- @@ -876,12 +963,52 @@ Syscall param uname(buf) points to unaddressable byte(s) 137: __NR_afs_syscall 0e ----------------------------------------------------- ----------------------------------------------------- +138: __NR_setfsuid 1s 0m +----------------------------------------------------- + +Syscall param setfsuid16(uid) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- +139: __NR_setfsgid 1s 0m +----------------------------------------------------- + +Syscall param setfsgid16(gid) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- 153: __NR_munlockall 0e ----------------------------------------------------- ----------------------------------------------------- 167: __NR_query_module 0e ----------------------------------------------------- ----------------------------------------------------- +182: __NR_chown 3s 1m +----------------------------------------------------- + +Syscall param chown16(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown16(owner) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown16(group) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown16(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- 191: __NR_ugetrlimit 2s 1m ----------------------------------------------------- @@ -901,6 +1028,99 @@ Syscall param getrlimit(rlim) points to unaddressable byte(s) by 0x........: ... Address 0x........ is not stack'd, malloc'd or (recently) free'd ----------------------------------------------------- +195: __NR_stat64 2s 2m +----------------------------------------------------- + +Syscall param stat64(file_name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param stat64(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param stat64(file_name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param stat64(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +196: __NR_lstat64 2s 2m +----------------------------------------------------- + +Syscall param lstat64(file_name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lstat64(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lstat64(file_name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lstat64(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +197: __NR_fstat64 2s 1m +----------------------------------------------------- + +Syscall param fstat64(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fstat64(buf) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fstat64(buf) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +198: __NR_lchown32 3s 1m +----------------------------------------------------- + +Syscall param lchown(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lchown(owner) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lchown(group) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lchown(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- 199: __NR_getuid32 0e ----------------------------------------------------- ----------------------------------------------------- @@ -939,6 +1159,48 @@ Syscall param setregid(egid) contains uninitialised byte(s) by 0x........: __libc_start_main (...libc...) by 0x........: ... ----------------------------------------------------- +207: __NR_fchown32 3s 0m +----------------------------------------------------- + +Syscall param fchown(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fchown(owner) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fchown(group) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- +212: __NR_chown32 3s 1m +----------------------------------------------------- + +Syscall param chown(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown(owner) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown(group) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param chown(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- 213: __NR_setuid32 1s 0m ----------------------------------------------------- @@ -955,12 +1217,430 @@ Syscall param setgid(gid) contains uninitialised byte(s) by 0x........: __libc_start_main (...libc...) by 0x........: ... ----------------------------------------------------- +215: __NR_setfsuid32 1s 0m +----------------------------------------------------- + +Syscall param setfsuid(uid) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- +216: __NR_setfsgid32 1s 0m +----------------------------------------------------- + +Syscall param setfsgid(gid) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... +----------------------------------------------------- 222: 222 0e ----------------------------------------------------- ----------------------------------------------------- 223: 223 0e ----------------------------------------------------- ----------------------------------------------------- +226: __NR_setxattr 5s 3m +----------------------------------------------------- + +Syscall param setxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param setxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param setxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param setxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param setxattr(flags) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param setxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param setxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param setxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +227: __NR_lsetxattr 5s 3m +----------------------------------------------------- + +Syscall param lsetxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lsetxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lsetxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lsetxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lsetxattr(flags) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lsetxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lsetxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lsetxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +228: __NR_fsetxattr 5s 2m +----------------------------------------------------- + +Syscall param fsetxattr(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fsetxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fsetxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fsetxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fsetxattr(flags) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fsetxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param fsetxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +229: __NR_getxattr 4s 3m +----------------------------------------------------- + +Syscall param getxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param getxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param getxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param getxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param getxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param getxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param getxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +230: __NR_lgetxattr 4s 3m +----------------------------------------------------- + +Syscall param lgetxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lgetxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lgetxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lgetxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lgetxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lgetxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lgetxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +231: __NR_fgetxattr 4s 2m +----------------------------------------------------- + +Syscall param fgetxattr(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fgetxattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fgetxattr(value) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fgetxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fgetxattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param fgetxattr(value) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +232: __NR_listxattr 3s 2m +----------------------------------------------------- + +Syscall param listxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param listxattr(list) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param listxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param listxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param listxattr(list) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +233: __NR_llistxattr 3s 2m +----------------------------------------------------- + +Syscall param llistxattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param llistxattr(list) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param llistxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param llistxattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param llistxattr(list) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +234: __NR_flistxattr 3s 1m +----------------------------------------------------- + +Syscall param flistxattr(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param flistxattr(list) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param flistxattr(size) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param flistxattr(list) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +235: __NR_removexattr 2s 2m +----------------------------------------------------- + +Syscall param removexattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param removexattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param removexattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param removexattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +236: __NR_lremovexattr 2s 2m +----------------------------------------------------- + +Syscall param lremovexattr(path) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lremovexattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param lremovexattr(path) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Syscall param lremovexattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- +237: __NR_fremovexattr 2s 1m +----------------------------------------------------- + +Syscall param fremovexattr(fd) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fremovexattr(name) contains uninitialised byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + +Syscall param fremovexattr(name) points to unaddressable byte(s) + at 0x........: syscall (in /...libc...) + by 0x........: __libc_start_main (...libc...) + by 0x........: ... + Address 0x........ is not stack'd, malloc'd or (recently) free'd +----------------------------------------------------- 251: 251 0e ----------------------------------------------------- -----------------------------------------------------