You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(22) |
2
(19) |
3
(8) |
4
(34) |
5
(14) |
6
(14) |
|
7
(12) |
8
(15) |
9
(15) |
10
(10) |
11
(10) |
12
(28) |
13
(11) |
|
14
(22) |
15
(29) |
16
(20) |
17
(15) |
18
(39) |
19
(11) |
20
(12) |
|
21
(8) |
22
(9) |
23
(8) |
24
(10) |
25
(9) |
26
(7) |
27
(7) |
|
28
(6) |
29
(6) |
30
(11) |
|
|
|
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 20:06:30
|
CVS commit by nethercote:
Converted some more syscalls.
M +74 -72 coregrind/vg_syscalls.c 1.200
M +50 -48 memcheck/tests/scalar.c 1.31
M +214 -0 memcheck/tests/scalar.stderr.exp 1.26
--- valgrind/coregrind/vg_syscalls.c #1.199:1.200
@@ -1470,8 +1470,14 @@ POSTx(sys_lookup_dcookie)
}
-PRE(fdatasync)
+PREx(sys_fsync, MayBlock)
{
- /* int fdatasync(int fd); */
- PRINT("fdatasync ( %d )", arg1);
+ PRINT("sys_fsync ( %d )", arg1);
+ PRE_REG_READ1(long, "fsync", unsigned int, fd);
+}
+
+PREx(sys_fdatasync, MayBlock)
+{
+ PRINT("sys_fdatasync ( %d )", arg1);
+ PRE_REG_READ1(long, "fdatasync", unsigned int, fd);
}
@@ -1559,11 +1565,11 @@ POST(getitimer)
}
-PRE(syslog)
+PREx(sys_syslog, MayBlock)
{
- /* int syslog(int type, char *bufp, int len); */
- PRINT("syslog (%d, %p, %d)",arg1,arg2,arg3);
- switch(arg1) {
+ PRINT("sys_syslog (%d, %p, %d)", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "syslog", int, type, char *, bufp, int, len);
+ switch (arg1) {
case 2: case 3: case 4:
- PRE_MEM_WRITE( "syslog(buf)", arg2, arg3);
+ PRE_MEM_WRITE( "syslog(bufp)", arg2, arg3);
break;
default:
@@ -1572,5 +1578,5 @@ PRE(syslog)
}
-POST(syslog)
+POSTx(sys_syslog)
{
switch (arg1) {
@@ -1692,14 +1698,14 @@ PRE(sched_get_priority_min)
}
-PRE(setpriority)
+PREx(sys_setpriority, 0)
{
- /* int setpriority(int which, int who, int prio); */
- PRINT("setpriority ( %d, %d, %d )", arg1, arg2, arg3);
+ PRINT("sys_setpriority ( %d, %d, %d )", arg1, arg2, arg3);
+ PRE_REG_READ3(long, "setpriority", int, which, int, who, int, prio);
}
-PRE(getpriority)
+PREx(sys_getpriority, 0)
{
- /* int getpriority(int which, int who); */
- PRINT("getpriority ( %d, %d )", arg1, arg2);
+ PRINT("sys_getpriority ( %d, %d )", arg1, arg2);
+ PRE_REG_READ2(long, "getpriority", int, which, int, who);
}
@@ -1780,24 +1786,26 @@ PREx(sys_sync, MayBlock)
}
-PRE(fstatfs)
+PREx(sys_fstatfs, 0)
{
- /* int fstatfs(int fd, struct statfs *buf); */
- PRINT("fstatfs ( %d, %p )",arg1,arg2);
- PRE_MEM_WRITE( "stat(buf)", arg2, sizeof(struct vki_statfs) );
+ PRINT("sys_fstatfs ( %d, %p )",arg1,arg2);
+ PRE_REG_READ2(long, "fstatfs",
+ unsigned int, fd, struct statfs *, buf);
+ PRE_MEM_WRITE( "fstatfs(buf)", arg2, sizeof(struct vki_statfs) );
}
-POST(fstatfs)
+POSTx(sys_fstatfs)
{
POST_MEM_WRITE( arg2, sizeof(struct vki_statfs) );
}
-PRE(fstatfs64)
+PREx(sys_fstatfs64, 0)
{
- /* int fstatfs64(int fd, size_t sz, struct statfs *buf); */
- PRINT("fstatfs64 ( %d, %llu, %p )",arg1,(ULong)arg2,arg3);
- PRE_MEM_WRITE( "stat(buf)", arg3, arg2 );
+ PRINT("sys_fstatfs64 ( %d, %llu, %p )",arg1,(ULong)arg2,arg3);
+ PRE_REG_READ3(long, "fstatfs64",
+ unsigned int, fd, vki_size_t, size, struct statfs64 *, buf);
+ PRE_MEM_WRITE( "fstatfs64(buf)", arg3, arg2 );
}
-POST(fstatfs64)
+POSTx(sys_fstatfs64)
{
POST_MEM_WRITE( arg3, arg2 );
@@ -1847,8 +1855,9 @@ PRE(init_module)
}
-PRE(ioperm)
+PREx(sys_ioperm, 0)
{
- /* int ioperm(unsigned long from, unsigned long num, int turn_on); */
PRINT("ioperm ( %d, %d, %d )", arg1, arg2, arg3 );
+ PRE_REG_READ3(long, "ioperm",
+ unsigned long, from, unsigned long, num, int, turn_on);
}
@@ -2182,8 +2191,8 @@ PREx(sys_fchown, 0)
}
-PRE(fchmod)
+PREx(sys_fchmod, 0)
{
- /* int fchmod(int fildes, mode_t mode); */
PRINT("fchmod ( %d, %d )", arg1,arg2);
+ PRE_REG_READ2(long, "fchmod", unsigned int, fildes, vki_mode_t, mode);
}
@@ -2288,10 +2297,4 @@ PRE(clone)
}
-PRE(fsync)
-{
- /* int fsync(int fd); */
- PRINT("fsync ( %d )", arg1);
-}
-
PREx(sys_ftruncate, MayBlock)
{
@@ -5050,8 +5053,9 @@ PREx(sys_setuid, 0)
}
-PRE(socketcall)
+PREx(sys_socketcall, MayBlock)
{
- /* int socketcall(int call, unsigned long *args); */
- PRINT("socketcall ( %d, %p )",arg1,arg2);
+ PRINT("sys_socketcall ( %d, %p )",arg1,arg2);
+ PRE_REG_READ2(long, "socketcall", int, call, unsigned long *, args);
+
switch (arg1 /* request */) {
@@ -5250,9 +5254,6 @@ PRE(socketcall)
}
-POST(socketcall)
+POSTx(sys_socketcall)
{
- /* int socketcall(int call, unsigned long *args); */
- PRINT("socketcall ( %d, %p )",arg1,arg2);
-
switch (arg1 /* request */) {
@@ -5414,26 +5415,27 @@ POSTx(sys_newstat)
}
-PRE(statfs)
+PREx(sys_statfs, 0)
{
- /* int statfs(const char *path, struct statfs *buf); */
- PRINT("statfs ( %p, %p )",arg1,arg2);
+ PRINT("sys_statfs ( %p, %p )",arg1,arg2);
+ PRE_REG_READ2(long, "statfs", const char *, path, struct statfs *, buf);
PRE_MEM_RASCIIZ( "statfs(path)", arg1 );
PRE_MEM_WRITE( "statfs(buf)", arg2, sizeof(struct vki_statfs) );
}
-POST(statfs)
+POSTx(sys_statfs)
{
POST_MEM_WRITE( arg2, sizeof(struct vki_statfs) );
}
-PRE(statfs64)
+PREx(sys_statfs64, 0)
{
- /* int statfs64(const char *path, size_t sz, struct statfs64 *buf); */
- PRINT("statfs64 ( %p, %llu, %p )",arg1,(ULong)arg2,arg3);
+ PRINT("sys_statfs64 ( %p, %llu, %p )",arg1,(ULong)arg2,arg3);
+ PRE_REG_READ3(long, "statfs64",
+ const char *, path, vki_size_t, size, struct statfs64 *, buf);
PRE_MEM_RASCIIZ( "statfs64(path)", arg1 );
PRE_MEM_WRITE( "statfs64(buf)", arg3, arg2 );
}
-POST(statfs64)
+POSTx(sys_statfs64)
{
POST_MEM_WRITE( arg3, arg2 );
@@ -5473,12 +5475,12 @@ POSTx(sys_fstat64)
}
-PRE(sysinfo)
+PREx(sys_sysinfo, 0)
{
- /* int sysinfo(struct sysinfo *info); */
- PRINT("sysinfo ( %p )",arg1);
+ PRINT("sys_sysinfo ( %p )",arg1);
+ PRE_REG_READ1(long, "sysinfo", struct sysinfo *, info);
PRE_MEM_WRITE( "sysinfo(info)", arg1, sizeof(struct vki_sysinfo) );
}
-POST(sysinfo)
+POSTx(sys_sysinfo)
{
POST_MEM_WRITE( arg1, sizeof(struct vki_sysinfo) );
@@ -5615,9 +5617,9 @@ PRE(prctl)
}
-PRE(adjtimex)
+PREx(sys_adjtimex, 0)
{
struct vki_timex *tx = (struct vki_timex *)arg1;
- PRINT("adjtimex ( %p )", arg1);
-
+ PRINT("sys_adjtimex ( %p )", arg1);
+ PRE_REG_READ1(long, "adjtimex", struct timex *, buf);
PRE_MEM_READ( "adjtimex(timex->modes)", arg1, sizeof(tx->modes));
@@ -5637,5 +5639,5 @@ PRE(adjtimex)
}
-POST(adjtimex)
+POSTx(sys_adjtimex)
{
VG_TRACK(post_mem_write, arg1, sizeof(struct vki_timex));
@@ -6392,16 +6394,16 @@ static const struct sys_info sys_info[]
SYSX_(__NR_truncate, sys_truncate), // 92 * P
SYSX_(__NR_ftruncate, sys_ftruncate), // 93 * P
- SYSB_(__NR_fchmod, sys_fchmod, 0), // 94 *
+ SYSX_(__NR_fchmod, sys_fchmod), // 94 * P
SYSX_(__NR_fchown, sys_fchown16), // 95 ## (SVr4,BSD4.3)
- SYSB_(__NR_getpriority, sys_getpriority, 0), // 96 *
- SYSB_(__NR_setpriority, sys_setpriority, 0), // 97 *
+ SYSX_(__NR_getpriority, sys_getpriority), // 96 * (SVr4,4.4BSD)
+ SYSX_(__NR_setpriority, sys_setpriority), // 97 * (SVr4,4.4BSD)
// (__NR_profil, sys_ni_syscall), // 98 * P -- unimplemented
- SYSBA(__NR_statfs, sys_statfs, 0), // 99 *
+ SYSXY(__NR_statfs, sys_statfs), // 99 * (P-ish)
- SYSBA(__NR_fstatfs, sys_fstatfs, 0), // 100 *
- SYSB_(__NR_ioperm, sys_ioperm, 0), // 101 *
- SYSBA(__NR_socketcall, sys_socketcall, MayBlock), // 102 *
- SYSBA(__NR_syslog, sys_syslog, MayBlock), // 103 *
+ SYSXY(__NR_fstatfs, sys_fstatfs), // 100 * (P-ish)
+ SYSX_(__NR_ioperm, sys_ioperm), // 101 * L
+ SYSXY(__NR_socketcall, sys_socketcall), // 102 * L
+ SYSXY(__NR_syslog, sys_syslog), // 103 * L
SYSBA(__NR_setitimer, sys_setitimer, NBRunInLWP), // 104 *
@@ -6419,7 +6421,7 @@ static const struct sys_info sys_info[]
// (__NR_swapoff, sys_swapoff), // 115 * L
- SYSBA(__NR_sysinfo, sys_sysinfo, 0), // 116 *
+ SYSXY(__NR_sysinfo, sys_sysinfo), // 116 * L
SYSBA(__NR_ipc, sys_ipc, 0), // 117
- SYSB_(__NR_fsync, sys_fsync, MayBlock), // 118 *
+ SYSX_(__NR_fsync, sys_fsync), // 118 * L
// (__NR_sigreturn, sys_sigreturn), // 119 () L
@@ -6428,5 +6430,5 @@ static const struct sys_info sys_info[]
SYSXY(__NR_uname, sys_newuname), // 122 * P
SYSB_(__NR_modify_ldt, sys_modify_ldt, Special), // 123 (x86,amd64) L
- SYSBA(__NR_adjtimex, sys_adjtimex, 0), // 124 *
+ SYSXY(__NR_adjtimex, sys_adjtimex), // 124 * L
SYSXY(__NR_mprotect, sys_mprotect), // 125 * P
@@ -6459,5 +6461,5 @@ static const struct sys_info sys_info[]
SYSB_(__NR_writev, sys_writev, MayBlock), // 146 *
SYSB_(__NR_getsid, sys_getsid, 0), // 147 *
- SYSB_(__NR_fdatasync, sys_fdatasync, MayBlock), // 148 *
+ SYSX_(__NR_fdatasync, sys_fdatasync), // 148 * P
SYSBA(__NR__sysctl, sys_sysctl, 0), // 149 *
@@ -6608,6 +6610,6 @@ static const struct sys_info sys_info[]
// (__NR_clock_nanosleep, sys_clock_nanosleep), // (timer_create+8) * P?
- SYSBA(__NR_statfs64, sys_statfs64, 0), // 268 *
- SYSBA(__NR_fstatfs64, sys_fstatfs64, 0), // 269 *
+ SYSXY(__NR_statfs64, sys_statfs64), // 268 * (?)
+ SYSXY(__NR_fstatfs64, sys_fstatfs64), // 269 * (?)
// (__NR_tgkill, sys_tgkill), // 270 * ()
--- valgrind/memcheck/tests/scalar.c #1.30:1.31
@@ -379,7 +379,7 @@ int main(void)
SY(__NR_ftruncate, x0, x0);
- // __NR_fchmod 94
- //GO(__NR_fchmod, ".s .m");
- //SY(__NR_fchmod);
+ // __NR_fchmod 94 --> sys_fchmod()
+ GO(__NR_fchmod, "2s 0m");
+ SY(__NR_fchmod, x0-1, x0);
// __NR_fchown 95 --> sys_fchown16
@@ -387,11 +387,11 @@ int main(void)
SY(__NR_fchown, x0, x0, x0);
- // __NR_getpriority 96
- //GO(__NR_getpriority, ".s .m");
- //SY(__NR_getpriority);
+ // __NR_getpriority 96 --> sys_getpriority()
+ GO(__NR_getpriority, "2s 0m");
+ SY(__NR_getpriority, x0, x0);
- // __NR_setpriority 97
- //GO(__NR_setpriority, ".s .m");
- //SY(__NR_setpriority);
+ // __NR_setpriority 97 --> sys_setpriority()
+ GO(__NR_setpriority, "3s 0m");
+ SY(__NR_setpriority, x0, x0, x0);
// __NR_profil 98
@@ -399,23 +399,24 @@ int main(void)
//SY(__NR_profil);
- // __NR_statfs 99
- //GO(__NR_statfs, ".s .m");
- //SY(__NR_statfs);
+ // __NR_statfs 99 --> sys_statfs()
+ GO(__NR_statfs, "2s 2m");
+ SY(__NR_statfs, x0, x0);
- // __NR_fstatfs 100
- //GO(__NR_fstatfs, ".s .m");
- //SY(__NR_fstatfs);
+ // __NR_fstatfs 100 --> sys_fstatfs()
+ GO(__NR_fstatfs, "2s 1m");
+ SY(__NR_fstatfs, x0, x0);
- // __NR_ioperm 101
- //GO(__NR_ioperm, ".s .m");
- //SY(__NR_ioperm);
+ // __NR_ioperm 101 --> sys_ioperm()
+ GO(__NR_ioperm, "3s 0m");
+ SY(__NR_ioperm, x0, x0, x0);
- // __NR_socketcall 102
- //GO(__NR_socketcall, ".s .m");
- //SY(__NR_socketcall);
+ // __NR_socketcall 102 --> sys_socketcall()
+ // XXX: need to do properly
+// GO(__NR_socketcall, "2s 1m");
+// SY(__NR_socketcall, x0+SYS_SOCKETPAIR, x0);
- // __NR_syslog 103
- //GO(__NR_syslog, ".s .m");
- //SY(__NR_syslog);
+ // __NR_syslog 103 --> sys_syslog()
+ GO(__NR_syslog, "3s 1m");
+ SY(__NR_syslog, x0+2, x0, x0+1);
// __NR_setitimer 104
@@ -466,7 +467,7 @@ int main(void)
//SY(__NR_swapoff);
- // __NR_sysinfo 116
- //GO(__NR_sysinfo, ".s .m");
- //SY(__NR_sysinfo);
+ // __NR_sysinfo 116 --> sys_sysinfo()
+ GO(__NR_sysinfo, "1s 1m");
+ SY(__NR_sysinfo, x0);
// __NR_ipc 117
@@ -474,7 +475,7 @@ int main(void)
//SY(__NR_ipc);
- // __NR_fsync 118
- //GO(__NR_fsync, ".s .m");
- //SY(__NR_fsync);
+ // __NR_fsync 118 --> sys_fsync()
+ GO(__NR_fsync, "1s 0m");
+ SY(__NR_fsync, x0-1);
// __NR_sigreturn 119
@@ -498,7 +499,8 @@ int main(void)
//SY(__NR_modify_ldt);
- // __NR_adjtimex 124
- //GO(__NR_adjtimex, ".s .m");
- //SY(__NR_adjtimex);
+ // __NR_adjtimex 124 --> sys_adjtimex()
+ // XXX: need to do properly, but deref'ing NULL...
+// GO(__NR_adjtimex, "1s 1m");
+// SY(__NR_adjtimex, x0);
// __NR_mprotect 125 --> sys_mprotect()
@@ -594,7 +596,7 @@ int main(void)
//SY(__NR_getsid);
- // __NR_fdatasync 148
- //GO(__NR_fdatasync, ".s .m");
- //SY(__NR_fdatasync);
+ // __NR_fdatasync 148 --> sys_fdatasync()
+ GO(__NR_fdatasync, "1s 0m");
+ SY(__NR_fdatasync, x0-1);
// __NR__sysctl 149
@@ -1073,11 +1075,11 @@ int main(void)
//SY(__NR_clock_nanosleep);
- // __NR_statfs64 268
- //GO(__NR_statfs64, ".s .m");
- //SY(__NR_statfs64);
+ // __NR_statfs64 268 --> sys_statfs64()
+ GO(__NR_statfs64, "3s 2m");
+ SY(__NR_statfs64, x0, x0+1, x0);
- // __NR_fstatfs64 269
- //GO(__NR_fstatfs64, ".s .m");
- //SY(__NR_fstatfs64);
+ // __NR_fstatfs64 269 --> sys_fstatfs64()
+ GO(__NR_fstatfs64, "3s 1m");
+ SY(__NR_fstatfs64, x0, x0+1, x0);
// __NR_tgkill 270
--- valgrind/memcheck/tests/scalar.stderr.exp #1.25:1.26
@@ -1087,4 +1087,17 @@
by 0x........: ...
-----------------------------------------------------
+ 94: __NR_fchmod 2s 0m
+-----------------------------------------------------
+
+Syscall param fchmod(fildes) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fchmod(mode) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
95: __NR_fchown 3s 0m
-----------------------------------------------------
@@ -1105,4 +1118,121 @@
by 0x........: ...
-----------------------------------------------------
+ 96: __NR_getpriority 2s 0m
+-----------------------------------------------------
+
+Syscall param getpriority(which) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getpriority(who) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 97: __NR_setpriority 3s 0m
+-----------------------------------------------------
+
+Syscall param setpriority(which) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setpriority(who) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setpriority(prio) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 99: __NR_statfs 2s 2m
+-----------------------------------------------------
+
+Syscall param statfs(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param statfs(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param statfs(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 statfs(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
+-----------------------------------------------------
+100: __NR_fstatfs 2s 1m
+-----------------------------------------------------
+
+Syscall param fstatfs(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fstatfs(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fstatfs(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
+-----------------------------------------------------
+101: __NR_ioperm 3s 0m
+-----------------------------------------------------
+
+Syscall param ioperm(from) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ioperm(num) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ioperm(turn_on) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+103: __NR_syslog 3s 1m
+-----------------------------------------------------
+
+Syscall param syslog(type) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param syslog(bufp) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param syslog(len) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param syslog(bufp) 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
+-----------------------------------------------------
106: __NR_stat 2s 2m
-----------------------------------------------------
@@ -1180,4 +1310,26 @@
-----------------------------------------------------
-----------------------------------------------------
+116: __NR_sysinfo 1s 1m
+-----------------------------------------------------
+
+Syscall param sysinfo(info) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param sysinfo(info) 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
+-----------------------------------------------------
+118: __NR_fsync 1s 0m
+-----------------------------------------------------
+
+Syscall param fsync(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
122: __NR_uname 1s 1m
-----------------------------------------------------
@@ -1344,4 +1496,12 @@
by 0x........: ...
-----------------------------------------------------
+148: __NR_fdatasync 1s 0m
+-----------------------------------------------------
+
+Syscall param fdatasync(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
150: __NR_mlock 2s 0m
-----------------------------------------------------
@@ -2427,4 +2587,58 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+268: __NR_statfs64 3s 2m
+-----------------------------------------------------
+
+Syscall param statfs64(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param statfs64(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param statfs64(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param statfs64(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 statfs64(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
+-----------------------------------------------------
+269: __NR_fstatfs64 3s 1m
+-----------------------------------------------------
+
+Syscall param fstatfs64(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fstatfs64(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fstatfs64(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fstatfs64(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
+-----------------------------------------------------
9999: 9999 1e
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 20:05:18
|
On Sun, 14 Nov 2004, Tom Hughes wrote: >> converted sigsuspend, rt_sigsuspend. Not very sure about them. > > With good reason - sigsuspend was completely bogus as the system call > is different to the C level interface. The first two arguments appear > to be unused (glibc passes 0 for both) and the third is the first word > of the set rather than a pointer to the set so only 31 signals are > handled. > > Hence rt_sigsuspend which takes a pointer to the set and the size of > the set in bytes. This is the system call which glibc prefers if it > exists. Note that although there is a size the kernel insists on it > being equal to sizeof(sigset_t) so there is no problem with the wrapper > for rt_sigsuspend. > > I've committed a fix for the sigsuspend wrapper. Can you add a comment to one or both explaining this? Thanks. N |
|
From: Tom H. <th...@cy...> - 2004-11-14 19:47:18
|
In message <200...@of...>
Nicholas Nethercote <nj...@ca...> wrote:
> converted sigsuspend, rt_sigsuspend. Not very sure about them.
With good reason - sigsuspend was completely bogus as the system call
is different to the C level interface. The first two arguments appear
to be unused (glibc passes 0 for both) and the third is the first word
of the set rather than a pointer to the set so only 31 signals are
handled.
Hence rt_sigsuspend which takes a pointer to the set and the size of
the set in bytes. This is the system call which glibc prefers if it
exists. Note that although there is a size the kernel insists on it
being equal to sizeof(sigset_t) so there is no problem with the wrapper
for rt_sigsuspend.
I've committed a fix for the sigsuspend wrapper.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: Tom H. <th...@cy...> - 2004-11-14 19:44:29
|
CVS commit by thughes:
Fix the sigsuspend wrapper - the existing implementation was totally
bogus. Also checked the rt_sigsuspend wrapper, which does seem to be
correct.
M +3 -12 vg_syscalls.c 1.199
--- valgrind/coregrind/vg_syscalls.c #1.198:1.199
@@ -5711,14 +5711,8 @@ PREx(sys_pause, MayBlock)
PREx(sys_sigsuspend, MayBlock)
{
- // XXX: is this right? sys_sigsuspend prototype looks like this:
- //
- // int sys_sigsuspend(int history0, int history1, old_sigset_t mask)
- //
- PRINT("sys_sigsuspend ( %p )", arg1 );
- PRE_REG_READ1(int, "sigsuspend", // XXX: is this right?
+ PRINT("sys_sigsuspend ( %d, %d, %d )", arg1,arg2,arg3 );
+ PRE_REG_READ3(int, "sigsuspend",
+ int, history0, int, history1,
vki_old_sigset_t, mask);
- if (arg1 != (Addr)NULL) {
- PRE_MEM_READ( "sigsuspend(mask)", arg1, sizeof(vki_old_sigset_t) );
- }
}
@@ -5726,7 +5720,4 @@ PREx(sys_sigsuspend, MayBlock)
PREx(sys_rt_sigsuspend, MayBlock)
{
- // XXX: is this right? sys_rt_sigsuspend prototype looks like this:
- //
- // int sys_rt_sigsuspend(struct pt_regs regs)
PRINT("sys_rt_sigsuspend ( %p, %d )", arg1,arg2 );
PRE_REG_READ2(int, "rt_sigsuspend", vki_sigset_t *, mask, vki_size_t, size)
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 19:11:59
|
CVS commit by nethercote:
Converted a few more syscalls.
M +60 -55 coregrind/vg_syscalls.c 1.198
M +28 -28 memcheck/tests/scalar.c 1.30
M +144 -0 memcheck/tests/scalar.stderr.exp 1.25
--- valgrind/coregrind/vg_syscalls.c #1.197:1.198
@@ -1476,8 +1476,9 @@ PRE(fdatasync)
}
-PRE(msync)
+PREx(sys_msync, MayBlock)
{
- /* int msync(const void *start, size_t length, int flags); */
- PRINT("msync ( %p, %llu, %d )", arg1,(ULong)arg2,arg3);
+ PRINT("sys_msync ( %p, %llu, %d )", arg1,(ULong)arg2,arg3);
+ PRE_REG_READ3(long, "msync",
+ unsigned long, start, vki_size_t, length, int, flags);
PRE_MEM_READ( "msync(start)", arg1, arg2 );
}
@@ -1601,13 +1602,14 @@ PRE(madvise)
}
-PRE(mremap)
+PREx(sys_mremap, Special)
{
// Nb: this is different to the glibc version described in the man pages,
// which lacks the fifth 'new_address' argument.
- /* void* mremap(void * old_address, size_t old_size,
- size_t new_size, unsigned long flags, void * new_address); */
- PRINT("mremap ( %p, %llu, %d, 0x%x, %p )",
+ PRINT("sys_mremap ( %p, %llu, %d, 0x%x, %p )",
arg1, (ULong)arg2, arg3, arg4, arg5);
-
+ PRE_REG_READ5(unsigned long, "mremap",
+ unsigned long, old_addr, unsigned long, old_size,
+ unsigned long, new_size, unsigned long, flags,
+ unsigned long, new_addr);
set_result( mremap_segment((Addr)arg1, arg2, (Addr)arg5, arg3, arg4, tid) );
}
@@ -1654,20 +1656,20 @@ PRE(sched_setscheduler)
}
-PRE(mlock)
+PREx(sys_mlock, MayBlock)
{
- /* int mlock(const void * addr, size_t len) */
- PRINT("mlock ( %p, %llu )", arg1, (ULong)arg2);
+ PRINT("sys_mlock ( %p, %llu )", arg1, (ULong)arg2);
+ PRE_REG_READ2(long, "mlock", unsigned long, addr, vki_size_t, len);
}
-PRE(munlock)
+PREx(sys_munlock, MayBlock)
{
- /* int munlock(const void * addr, size_t len) */
- PRINT("munlock ( %p, %llu )", arg1, (ULong)arg2);
+ PRINT("sys_munlock ( %p, %llu )", arg1, (ULong)arg2);
+ PRE_REG_READ2(long, "munlock", unsigned long, addr, vki_size_t, len);
}
-PRE(mlockall)
+PREx(sys_mlockall, MayBlock)
{
- /* int mlockall(int flags); */
- PRINT("mlockall ( %x )", arg1);
+ PRINT("sys_mlockall ( %x )", arg1);
+ PRE_REG_READ1(long, "mlockall", int, flags);
}
@@ -1831,8 +1833,8 @@ PREx(sys_mknod, 0)
}
-PRE(flock)
+PREx(sys_flock, MayBlock)
{
- /* int flock(int fd, int operation); */
- PRINT("flock ( %d, %d )", arg1, arg2 );
+ PRINT("sys_flock ( %d, %d )", arg1, arg2 );
+ PRE_REG_READ2(long, "flock", unsigned int, fd, unsigned int, operation);
}
@@ -2186,13 +2188,15 @@ PRE(fchmod)
}
-PRE(fcntl64)
+// XXX: wrapper only suitable for 32-bit systems
+PREx(sys_fcntl64, 0)
{
- /* int fcntl64(int fd, int cmd, int arg); */
- PRINT("fcntl64 ( %d, %d, %d )", arg1,arg2,arg3);
+ PRINT("sys_fcntl64 ( %d, %d, %d )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "fcntl64",
+ unsigned int, fd, unsigned int, cmd, unsigned long, arg);
if (arg2 == VKI_F_SETLKW || arg2 == VKI_F_SETLKW64)
tst->sys_flags |= MayBlock;
}
-POST(fcntl64)
+POSTx(sys_fcntl64)
{
if (arg2 == VKI_F_DUPFD) {
@@ -2324,13 +2328,14 @@ PREx(sys_truncate64, MayBlock)
-PRE(getdents)
+PREx(sys_getdents, MayBlock)
{
- /* int getdents(unsigned int fd, struct dirent *dirp,
- unsigned int count); */
- PRINT("getdents ( %d, %p, %d )",arg1,arg2,arg3);
+ PRINT("sys_getdents ( %d, %p, %d )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getdents",
+ unsigned int, fd, struct linux_dirent *, dirp,
+ unsigned int, count);
PRE_MEM_WRITE( "getdents(dirp)", arg2, arg3 );
}
-POST(getdents)
+POSTx(sys_getdents)
{
if (res > 0)
@@ -2338,13 +2343,14 @@ POST(getdents)
}
-PRE(getdents64)
+PREx(sys_getdents64, MayBlock)
{
- /* int getdents(unsigned int fd, struct dirent64 *dirp,
- unsigned int count); */
PRINT("getdents64 ( %d, %p, %d )",arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getdents64",
+ unsigned int, fd, struct linux_dirent64 *, dirp,
+ unsigned int, count);
PRE_MEM_WRITE( "getdents64(dirp)", arg2, arg3 );
}
-POST(getdents64)
+POSTx(sys_getdents64)
{
if (res > 0)
@@ -4508,9 +4514,9 @@ PRE(mmap)
}
-PRE(mprotect)
+PREx(sys_mprotect, 0)
{
- /* int mprotect(const void *addr, size_t len, int prot); */
- /* should addr .. addr+len-1 be checked before the call? */
- PRINT("mprotect ( %p, %llu, %d )", arg1,(ULong)arg2,arg3);
+ PRINT("sys_mprotect ( %p, %llu, %d )", arg1,(ULong)arg2,arg3);
+ PRE_REG_READ3(long, "mprotect",
+ unsigned long, addr, vki_size_t, len, unsigned long, prot);
if (!valid_client_addr(arg1, arg2, tid, "mprotect"))
@@ -4518,5 +4524,5 @@ PRE(mprotect)
}
-POST(mprotect)
+POSTx(sys_mprotect)
{
Addr a = arg1;
@@ -4532,9 +4538,8 @@ POST(mprotect)
}
-PRE(munmap)
+PREx(sys_munmap, 0)
{
- /* int munmap(void *start, size_t length); */
- /* should start .. start+length-1 be checked before the call? */
- PRINT("munmap ( %p, %llu )", arg1,(ULong)arg2);
+ PRINT("sys_munmap ( %p, %llu )", arg1,(ULong)arg2);
+ PRE_REG_READ2(long, "munmap", unsigned long, start, vki_size_t, length);
if (!valid_client_addr(arg1, arg2, tid, "munmap"))
@@ -4542,5 +4547,5 @@ PRE(munmap)
}
-POST(munmap)
+POSTx(sys_munmap)
{
Addr a = arg1;
@@ -6393,5 +6398,5 @@ static const struct sys_info sys_info[]
SYSB_(__NR_mmap, old_mmap, Special), // 90 old_mmap
- SYSBA(__NR_munmap, sys_munmap, 0), // 91 *
+ SYSXY(__NR_munmap, sys_munmap), // 91 * P
SYSX_(__NR_truncate, sys_truncate), // 92 * P
SYSX_(__NR_ftruncate, sys_ftruncate), // 93 * P
@@ -6434,5 +6439,5 @@ static const struct sys_info sys_info[]
SYSBA(__NR_adjtimex, sys_adjtimex, 0), // 124 *
- SYSBA(__NR_mprotect, sys_mprotect, 0), // 125 *
+ SYSXY(__NR_mprotect, sys_mprotect), // 125 * P
SYSBA(__NR_sigprocmask, sys_sigprocmask, SIG_SIM), // 126 *
// Nb: create_module() was removed 2.4-->2.6
@@ -6455,8 +6460,8 @@ static const struct sys_info sys_info[]
SYSBA(__NR__llseek, sys_llseek, 0), // 140 *
- SYSBA(__NR_getdents, sys_getdents, MayBlock), // 141 *
+ SYSXY(__NR_getdents, sys_getdents), // 141 * (SVr4,SVID)
SYSX_(__NR__newselect, sys_select), // 142 * (4.4BSD...)
- SYSB_(__NR_flock, sys_flock, MayBlock), // 143 *
- SYSB_(__NR_msync, sys_msync, MayBlock), // 144 *
+ SYSX_(__NR_flock, sys_flock), // 143 * (4.4BSD...)
+ SYSX_(__NR_msync, sys_msync), // 144 * P
SYSBA(__NR_readv, sys_readv, MayBlock), // 145 *
@@ -6466,7 +6471,7 @@ static const struct sys_info sys_info[]
SYSBA(__NR__sysctl, sys_sysctl, 0), // 149 *
- SYSB_(__NR_mlock, sys_mlock, MayBlock), // 150 *
- SYSB_(__NR_munlock, sys_unlock, MayBlock), // 151 *
- SYSB_(__NR_mlockall, sys_mlockall, MayBlock), // 152 *
+ SYSX_(__NR_mlock, sys_mlock), // 150 * P
+ SYSX_(__NR_munlock, sys_munlock), // 151 * P
+ SYSX_(__NR_mlockall, sys_mlockall), // 152 * P
SYSX_(__NR_munlockall, sys_munlockall), // 153 * P
SYSBA(__NR_sched_setparam, sys_sched_setparam, 0/*???*/), // 154 *
@@ -6481,5 +6486,5 @@ static const struct sys_info sys_info[]
// (__NR_sched_rr_get_interval, sys_sched_rr_get_interval), // 161 *
SYSBA(__NR_nanosleep, sys_nanosleep, MayBlock|PostOnFail), // 162 *
- SYSB_(__NR_mremap, sys_mremap, Special), // 163 *
+ SYSX_(__NR_mremap, sys_mremap), // 163 * P
SYSX_(__NR_setresuid, sys_setresuid16), // 164 ## (non-standard)
@@ -6551,8 +6556,8 @@ static const struct sys_info sys_info[]
SYSB_(__NR_madvise, sys_madvise, MayBlock), // 219 *
- SYSBA(__NR_getdents64, sys_getdents64, MayBlock), // 220 *
+ SYSXY(__NR_getdents64, sys_getdents64), // 220 * (SVr4,SVID?)
// XXX: This wrapped in a "#if BITS_PER_LONG == 32" in
// include/linux/syscalls.h...
- SYSBA(__NR_fcntl64, sys_fcntl64, 0), // 221 *
+ SYSXY(__NR_fcntl64, sys_fcntl64), // 221 * P?
// Nb: 222 is reserved for TUX (whatever that means --njn)
SYSX_(222, sys_ni_syscall), // 222 * P -- reserved
--- valgrind/memcheck/tests/scalar.c #1.29:1.30
@@ -367,7 +367,7 @@ int main(void)
//SY(__NR_mmap);
- // __NR_munmap 91
- //GO(__NR_munmap, ".s .m");
- //SY(__NR_munmap);
+ // __NR_munmap 91 --> sys_munmap()
+ GO(__NR_munmap, "2s 0m");
+ SY(__NR_munmap, x0, x0);
// __NR_truncate 92 --> sys_truncate()
@@ -502,7 +502,7 @@ int main(void)
//SY(__NR_adjtimex);
- // __NR_mprotect 125
- //GO(__NR_mprotect, ".s .m");
- //SY(__NR_mprotect);
+ // __NR_mprotect 125 --> sys_mprotect()
+ GO(__NR_mprotect, "3s 0m");
+ SY(__NR_mprotect, x0, x0, x0);
// __NR_sigprocmask 126
@@ -566,7 +566,7 @@ int main(void)
//SY(__NR__llseek);
- // __NR_getdents 141
- //GO(__NR_getdents, ".s .m");
- //SY(__NR_getdents);
+ // __NR_getdents 141 --> sys_getdents()
+ GO(__NR_getdents, "3s 1m");
+ SY(__NR_getdents, x0, x0, x0+1);
// __NR__newselect 142 --> sys_select()
@@ -575,10 +575,10 @@ int main(void)
// __NR_flock 143
- //GO(__NR_flock, ".s .m");
- //SY(__NR_flock);
+ GO(__NR_flock, "2s 0m");
+ SY(__NR_flock, x0, x0);
- // __NR_msync 144
- //GO(__NR_msync, ".s .m");
- //SY(__NR_msync);
+ // __NR_msync 144 --> sys_msync()
+ GO(__NR_msync, "3s 0m");
+ SY(__NR_msync, x0, x0, x0);
// __NR_readv 145
@@ -602,15 +602,15 @@ int main(void)
//SY(__NR__sysctl);
- // __NR_mlock 150
- //GO(__NR_mlock, ".s .m");
- //SY(__NR_mlock);
+ // __NR_mlock 150 --> sys_mlock()
+ GO(__NR_mlock, "2s 0m");
+ SY(__NR_mlock, x0, x0);
- // __NR_munlock 151
- //GO(__NR_munlock, ".s .m");
- //SY(__NR_munlock);
+ // __NR_munlock 151 --> sys_munlock()
+ GO(__NR_munlock, "2s 0m");
+ SY(__NR_munlock, x0, x0);
- // __NR_mlockall 152
- //GO(__NR_mlockall, ".s .m");
- //SY(__NR_mlockall);
+ // __NR_mlockall 152 --> sys_mlockall()
+ GO(__NR_mlockall, "2s 0m");
+ SY(__NR_mlockall);
// __NR_munlockall 153 --> sys_munlockall()
@@ -882,7 +882,7 @@ int main(void)
//SY(__NR_madvise);
- // __NR_getdents64 220
- //GO(__NR_getdents64, ".s .m");
- //SY(__NR_getdents64);
+ // __NR_getdents64 220 --> sys_getdents64
+ GO(__NR_getdents64, "3s 1m");
+ SY(__NR_getdents64, x0, x0, x0+1);
// __NR_fcntl64 221
--- valgrind/memcheck/tests/scalar.stderr.exp #1.24:1.25
@@ -1042,4 +1042,17 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 91: __NR_munmap 2s 0m
+-----------------------------------------------------
+
+Syscall param munmap(start) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param munmap(length) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
92: __NR_truncate 2s 1m
-----------------------------------------------------
@@ -1181,4 +1194,22 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+125: __NR_mprotect 3s 0m
+-----------------------------------------------------
+
+Syscall param mprotect(addr) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param mprotect(len) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param mprotect(prot) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
127: __NR_create_module 0e
-----------------------------------------------------
@@ -1206,4 +1237,28 @@
by 0x........: ...
-----------------------------------------------------
+141: __NR_getdents 3s 1m
+-----------------------------------------------------
+
+Syscall param getdents(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents(dirp) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents(count) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents(dirp) 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
+-----------------------------------------------------
142: __NR__newselect 5s 4m
-----------------------------------------------------
@@ -1258,4 +1313,69 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+143: __NR_flock 2s 0m
+-----------------------------------------------------
+
+Syscall param flock(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param flock(operation) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+144: __NR_msync 3s 0m
+-----------------------------------------------------
+
+Syscall param msync(start) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param msync(length) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param msync(flags) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+150: __NR_mlock 2s 0m
+-----------------------------------------------------
+
+Syscall param mlock(addr) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param mlock(len) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+151: __NR_munlock 2s 0m
+-----------------------------------------------------
+
+Syscall param munlock(addr) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param munlock(len) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+152: __NR_mlockall 2s 0m
+-----------------------------------------------------
+
+Syscall param mlockall(flags) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
153: __NR_munlockall 0e
-----------------------------------------------------
@@ -1843,4 +1963,28 @@
by 0x........: ...
-----------------------------------------------------
+220: __NR_getdents64 3s 1m
+-----------------------------------------------------
+
+Syscall param getdents64(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents64(dirp) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents64(count) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getdents64(dirp) 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
+-----------------------------------------------------
222: 222 0e
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 18:37:11
|
CVS commit by nethercote:
converted a few more syscalls
M +43 -33 coregrind/vg_syscalls.c 1.197
M +19 -19 memcheck/tests/scalar.c 1.29
M +129 -0 memcheck/tests/scalar.stderr.exp 1.24
--- valgrind/coregrind/vg_syscalls.c #1.196:1.197
@@ -1454,5 +1454,5 @@ PRE(quotactl)
}
-// XXX: this is only suitable for 32-bit platforms
+// XXX: this wrapper is only suitable for 32-bit platforms
PREx(sys_lookup_dcookie, 0)
{
@@ -1470,10 +1470,4 @@ POSTx(sys_lookup_dcookie)
}
-PRE(truncate64)
-{
- PRINT("truncate64 ( %p, %lld )", arg1, LOHI64(arg2, arg3));
- PRE_MEM_RASCIIZ( "truncate64(path)", arg1 );
-}
-
PRE(fdatasync)
{
@@ -2296,14 +2290,35 @@ PRE(fsync)
}
-PRE(ftruncate)
+PREx(sys_ftruncate, MayBlock)
{
- /* int ftruncate(int fd, size_t length); */
- PRINT("ftruncate ( %d, %lld )", arg1,(ULong)arg2);
+ PRINT("sys_ftruncate ( %d, %lld )", arg1,(ULong)arg2);
+ PRE_REG_READ2(long, "ftruncate", unsigned int, fd, unsigned long, length);
}
-PRE(ftruncate64)
+PREx(sys_truncate, MayBlock)
{
- /* int ftruncate64(int fd, off64_t length); */
- PRINT("ftruncate64 ( %d, %lld )", arg1, LOHI64(arg2,arg3));
+ PRINT("sys_truncate ( %p(%s), %d )", arg1,arg1,arg2);
+ PRE_REG_READ2(long, "truncate",
+ const char *, path, unsigned long, length);
+ PRE_MEM_RASCIIZ( "truncate(path)", arg1 );
+}
+
+// XXX: this wrapper is only suitable for 32-bit platforms
+PREx(sys_ftruncate64, MayBlock)
+{
+ PRINT("sys_ftruncate64 ( %d, %lld )", arg1, LOHI64(arg2,arg3));
+ PRE_REG_READ3(long, "ftruncate64",
+ unsigned int, fd,
+ vki_u32, length_low32, vki_u32, length_high32);
+}
+
+// XXX: this wrapper is only suitable for 32-bit platforms
+PREx(sys_truncate64, MayBlock)
+{
+ PRINT("sys_truncate64 ( %p, %lld )", arg1, LOHI64(arg2, arg3));
+ PRE_REG_READ3(long, "truncate64",
+ const char *, path,
+ vki_u32, length_low32, vki_u32, length_high32);
+ PRE_MEM_RASCIIZ( "truncate64(path)", arg1 );
}
@@ -4741,13 +4757,14 @@ POST(epoll_wait)
}
-PRE(readlink)
+PREx(sys_readlink, 0)
{
- /* int readlink(const char *path, char *buf, size_t bufsiz); */
- PRINT("readlink ( %p, %p, %llu )", arg1,arg2,(ULong)arg3);
+ PRINT("sys_readlink ( %p, %p, %llu )", arg1,arg2,(ULong)arg3);
+ PRE_REG_READ3(long, "readlink",
+ const char *, path, char *, buf, int, bufsiz);
PRE_MEM_RASCIIZ( "readlink(path)", arg1 );
PRE_MEM_WRITE( "readlink(buf)", arg2,arg3 );
}
-POST(readlink)
+POSTx(sys_readlink)
{
POST_MEM_WRITE( arg2, res );
@@ -5418,8 +5435,8 @@ POST(statfs64)
}
-PRE(symlink)
+PREx(sys_symlink, MayBlock)
{
- /* int symlink(const char *oldpath, const char *newpath); */
- PRINT("symlink ( %p, %p )",arg1,arg2);
+ PRINT("sys_symlink ( %p, %p )",arg1,arg2);
+ PRE_REG_READ2(long, "symlink", const char *, oldpath, const char *, newpath);
PRE_MEM_RASCIIZ( "symlink(oldpath)", arg1 );
PRE_MEM_RASCIIZ( "symlink(newpath)", arg2 );
@@ -5494,11 +5511,4 @@ POSTx(sys_times)
}
-PRE(truncate)
-{
- /* int truncate(const char *path, off_t length); */
- PRINT("truncate ( %p(%s), %d )", arg1,arg1,arg2);
- PRE_MEM_RASCIIZ( "truncate(path)", arg1 );
-}
-
PREx(sys_umask, 0)
{
@@ -6373,8 +6383,8 @@ static const struct sys_info sys_info[]
SYSX_(__NR_setgroups, sys_setgroups16), // 81 ## almost-P
SYSX_(__NR_select, old_select), // 82 (x86) (4.4BSD)
- SYSB_(__NR_symlink, sys_symlink, MayBlock), // 83 *
+ SYSX_(__NR_symlink, sys_symlink), // 83 * P
// (__NR_oldlstat, sys_lstat), // 84 * L -- obsolete
- SYSBA(__NR_readlink, sys_readlink, 0), // 85 *
+ SYSXY(__NR_readlink, sys_readlink), // 85 * (X/OPEN,4.4BSD)
// (__NR_uselib, sys_uselib), // 86 * L
// (__NR_swapon, sys_swapon), // 87 * L
@@ -6384,6 +6394,6 @@ static const struct sys_info sys_info[]
SYSB_(__NR_mmap, old_mmap, Special), // 90 old_mmap
SYSBA(__NR_munmap, sys_munmap, 0), // 91 *
- SYSB_(__NR_truncate, sys_truncate, MayBlock), // 92 *
- SYSB_(__NR_ftruncate, sys_ftruncate, MayBlock), // 93 *
+ SYSX_(__NR_truncate, sys_truncate), // 92 * P
+ SYSX_(__NR_ftruncate, sys_ftruncate), // 93 * P
SYSB_(__NR_fchmod, sys_fchmod, 0), // 94 *
@@ -6508,6 +6518,6 @@ static const struct sys_info sys_info[]
SYSXY(__NR_ugetrlimit, sys_getrlimit), // 191 * (?)
SYSBA(__NR_mmap2, sys_mmap2, 0), // 192
- SYSB_(__NR_truncate64, sys_truncate64, MayBlock), // 193 %%
- SYSB_(__NR_ftruncate64, sys_ftruncate64, MayBlock), // 194 %%
+ SYSX_(__NR_truncate64, sys_truncate64), // 193 %% (P?)
+ SYSX_(__NR_ftruncate64, sys_ftruncate64), // 194 %% (P?)
SYSXY(__NR_stat64, sys_stat64), // 195 %% (?)
--- valgrind/memcheck/tests/scalar.c #1.28:1.29
@@ -340,7 +340,7 @@ int main(void)
}
- // __NR_symlink 83
- //GO(__NR_symlink, ".s .m");
- //SY(__NR_symlink);
+ // __NR_symlink 83 --> sys_symlink()
+ GO(__NR_symlink, "2s 2m");
+ SY(__NR_symlink, x0, x0);
// __NR_oldlstat 84
@@ -348,6 +348,6 @@ int main(void)
// __NR_readlink 85
- //GO(__NR_readlink, ".s .m");
- //SY(__NR_readlink);
+ GO(__NR_readlink, "3s 2m");
+ SY(__NR_readlink);
// __NR_uselib 86
@@ -371,11 +371,11 @@ int main(void)
//SY(__NR_munmap);
- // __NR_truncate 92
- //GO(__NR_truncate, ".s .m");
- //SY(__NR_truncate);
+ // __NR_truncate 92 --> sys_truncate()
+ GO(__NR_truncate, "2s 1m");
+ SY(__NR_truncate, x0, x0);
- // __NR_ftruncate 93
- //GO(__NR_ftruncate, ".s .m");
- //SY(__NR_ftruncate);
+ // __NR_ftruncate 93 --> sys_ftruncate()
+ GO(__NR_ftruncate, "2s 0m");
+ SY(__NR_ftruncate, x0, x0);
// __NR_fchmod 94
@@ -774,11 +774,11 @@ int main(void)
//SY(__NR_mmap2);
- // __NR_truncate64 193
- //GO(__NR_truncate64, ".s .m");
- //SY(__NR_truncate64);
+ // __NR_truncate64 193 --> sys_truncate64()
+ GO(__NR_truncate64, "3s 1m");
+ SY(__NR_truncate64, x0, x0, x0);
- // __NR_ftruncate64 194
- //GO(__NR_ftruncate64, ".s .m");
- //SY(__NR_ftruncate64);
+ // __NR_ftruncate64 194 --> sys_ftruncate64()
+ GO(__NR_ftruncate64, "3s 0m");
+ SY(__NR_ftruncate64, x0, x0, x0);
// __NR_stat64 195
--- valgrind/memcheck/tests/scalar.stderr.exp #1.23:1.24
@@ -987,4 +987,91 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 83: __NR_symlink 2s 2m
+-----------------------------------------------------
+
+Syscall param symlink(oldpath) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param symlink(newpath) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param symlink(oldpath) 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 symlink(newpath) 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
+-----------------------------------------------------
+ 85: __NR_readlink 3s 2m
+-----------------------------------------------------
+
+Syscall param readlink(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param readlink(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param readlink(bufsiz) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param readlink(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 readlink(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
+-----------------------------------------------------
+ 92: __NR_truncate 2s 1m
+-----------------------------------------------------
+
+Syscall param truncate(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param truncate(length) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param truncate(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
+-----------------------------------------------------
+ 93: __NR_ftruncate 2s 0m
+-----------------------------------------------------
+
+Syscall param ftruncate(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ftruncate(length) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
95: __NR_fchown 3s 0m
-----------------------------------------------------
@@ -1363,4 +1450,46 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+193: __NR_truncate64 3s 1m
+-----------------------------------------------------
+
+Syscall param truncate64(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param truncate64(length_low32) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param truncate64(length_high32) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param truncate64(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
+-----------------------------------------------------
+194: __NR_ftruncate64 3s 0m
+-----------------------------------------------------
+
+Syscall param ftruncate64(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ftruncate64(length_low32) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ftruncate64(length_high32) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
195: __NR_stat64 2s 2m
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 18:22:12
|
CVS commit by nethercote: forgot to remove these files in last commit R scalar2.c 1.1 R scalar2.stderr.exp 1.1 R scalar2.vgtest 1.1 R scalar3.c 1.1 R scalar3.stderr.exp 1.1 R scalar3.vgtest 1.1 R scalar4.c 1.1 R scalar4.stderr.exp 1.1 R scalar4.vgtest 1.1 R scalar5.c 1.1 R scalar5.stderr.exp 1.1 R scalar5.vgtest 1.1 R scalar6.c 1.1 R scalar6.stderr.exp 1.1 R scalar6.vgtest 1.1 |
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 18:11:59
|
CVS commit by nethercote:
Undo splitting of scalar from the last commit, which was stupid; just use
--error-limit=no instead.
M +0 -5 .cvsignore 1.27
M +2 -12 Makefile.am 1.60
M +932 -0 scalar.c 1.28
M +1564 -0 scalar.stderr.exp 1.23
M +1 -1 scalar.vgtest 1.4
--- valgrind/memcheck/tests/.cvsignore #1.26:1.27
@@ -50,9 +50,4 @@
realloc3
scalar
-scalar2
-scalar3
-scalar4
-scalar5
-scalar6
scalar_fork
scalar_supp
--- valgrind/memcheck/tests/Makefile.am #1.59:1.60
@@ -55,9 +55,4 @@
realloc3.stderr.exp realloc3.vgtest \
scalar.stderr.exp scalar.vgtest \
- scalar2.stderr.exp scalar2.vgtest \
- scalar3.stderr.exp scalar3.vgtest \
- scalar4.stderr.exp scalar4.vgtest \
- scalar5.stderr.exp scalar5.vgtest \
- scalar6.stderr.exp scalar6.vgtest \
scalar_fork.stderr.exp scalar_fork.vgtest \
scalar_supp.stderr.exp scalar_supp.vgtest scalar_supp.supp \
@@ -92,6 +87,6 @@
null_socket overlap \
realloc1 realloc2 realloc3 \
- scalar scalar2 scalar3 scalar4 scalar5 scalar6 \
- scalar_fork scalar_supp scalar_vfork sigaltstack signal2 \
+ scalar scalar_fork scalar_supp scalar_vfork \
+ sigaltstack signal2 \
str_tester supp1 supp2 suppfree \
trivialleak weirdioctl \
@@ -146,9 +141,4 @@
realloc3_SOURCES = realloc3.c
scalar_SOURCES = scalar.c
-scalar2_SOURCES = scalar2.c
-scalar3_SOURCES = scalar3.c
-scalar4_SOURCES = scalar4.c
-scalar5_SOURCES = scalar5.c
-scalar6_SOURCES = scalar6.c
scalar_fork_SOURCES = scalar_fork.c
scalar_supp_SOURCES = scalar_supp.c
--- valgrind/memcheck/tests/scalar.c #1.27:1.28
@@ -208,4 +208,936 @@ int main(void)
SY(__NR_geteuid);
+ // __NR_getegid 50 --> sys_getegid16()
+ GO(__NR_getegid, "0e");
+ SY(__NR_getegid);
+
+ // __NR_acct 51 --> sys_acct()
+ GO(__NR_acct, "1s 1m");
+ SY(__NR_acct, x0);
+
+ // __NR_umount2 52 --> sys_umount()
+ GO(__NR_umount2, "2s 1m");
+ SY(__NR_umount2, x0, x0);
+
+ // __NR_lock 53 --> sys_ni_syscall()
+ GO(__NR_lock, "0e");
+ SY(__NR_lock);
+
+ // __NR_ioctl 54 --> sys_ioctl()
+ #include <asm/ioctls.h>
+ GO(__NR_ioctl, "3s 1m");
+ SY(__NR_ioctl, x0, x0+TCSETS, x0);
+
+ // __NR_fcntl 55 --> sys_fcntl()
+ GO(__NR_fcntl, "3s 0m");
+ SY(__NR_fcntl, x0, x0, x0);
+
+ // __NR_mpx 56 --> sys_ni_syscall()
+ GO(__NR_mpx, "0e");
+ SY(__NR_mpx);
+
+ // __NR_setpgid 57
+ GO(__NR_setpgid, "2s 0m");
+ SY(__NR_setpgid, x0, x0);
+
+ // __NR_ulimit 58 --> sys_ni_syscall()
+ GO(__NR_ulimit, "0e");
+ SY(__NR_ulimit);
+
+ // __NR_oldolduname 59
+ // (obsolete, not handled by Valgrind)
+
+ // __NR_umask 60
+ GO(__NR_umask, "1s 0m");
+ SY(__NR_umask, x0);
+
+ // __NR_chroot 61
+ GO(__NR_chroot, "1s 1m");
+ SY(__NR_chroot, x0);
+
+ // __NR_ustat 62
+ // (deprecated, not handled by Valgrind)
+
+ // __NR_dup2 63
+ GO(__NR_dup2, "2s 0m");
+ SY(__NR_dup2, x0, x0);
+
+ // __NR_getppid 64 --> sys_getppid()
+ GO(__NR_getppid, "0e");
+ SY(__NR_getppid);
+
+ // __NR_getpgrp 65 --> sys_getpgrp()
+ GO(__NR_getpgrp, "0e");
+ SY(__NR_getpgrp);
+
+ // __NR_setsid 66 --> sys_setsid()
+ GO(__NR_setsid, "0e");
+ SY(__NR_setsid);
+
+ // __NR_sigaction 67 --> sys_sigaction()
+ GO(__NR_sigaction, "3s 2m");
+ SY(__NR_sigaction, x0, x0+1, x0+1);
+
+ // __NR_sgetmask 68
+ // (Not yet handled by Valgrind)
+
+ // __NR_ssetmask 69
+ // (Not yet handled by Valgrind)
+
+ // __NR_setreuid 70 --> sys_setreuid16()
+ GO(__NR_setreuid, "2s 0m");
+ SY(__NR_setreuid, x0, x0);
+
+ // __NR_setregid 71 --> sys_setregid16()
+ GO(__NR_setregid, "2s 0m");
+ SY(__NR_setregid, x0, x0);
+
+ // __NR_sigsuspend 72 --> sys_sigsuspend()
+ // XXX: how do you use this function?
+// GO(__NR_sigsuspend, ".s .m");
+// SY(__NR_sigsuspend);
+
+ // __NR_sigpending 73 --> sys_sigpending()
+ GO(__NR_sigpending, "1s 1m");
+ SY(__NR_sigpending, x0);
+
+ // __NR_sethostname 74
+ // (Not yet handled by Valgrind)
+
+ // __NR_setrlimit 75 --> sys_setrlimit()
+ GO(__NR_setrlimit, "2s 1m");
+ SY(__NR_setrlimit, x0, x0);
+
+ // __NR_getrlimit 76
+ GO(__NR_getrlimit, "2s 1m");
+ SY(__NR_getrlimit, x0, x0);
+
+ // __NR_getrusage 77
+ GO(__NR_getrusage, "2s 1m");
+ SY(__NR_getrusage, x0, x0);
+
+ // __NR_gettimeofday 78 --> sys_gettimeofday()
+ GO(__NR_gettimeofday, "2s 2m");
+ SY(__NR_gettimeofday, x0, x0+1);
+
+ // __NR_settimeofday 79 --> sys_settimeofday()
+ GO(__NR_settimeofday, "2s 2m");
+ SY(__NR_settimeofday, x0, x0+1);
+
+ // __NR_getgroups 80 --> sys_getgroups16()
+ GO(__NR_getgroups, "2s 1m");
+ SY(__NR_getgroups, x0+1, x0+1);
+
+ // __NR_setgroups 81 --> sys_setgroups16()
+ GO(__NR_setgroups, "2s 1m");
+ SY(__NR_setgroups, x0+1, x0+1);
+
+ // __NR_select 82 --> old_select()
+ {
+ long args[5] = { x0+8, x0+0xffffffee, x0+1, x0+1, x0+1 };
+ GO(__NR_select, "1s 4m");
+ SY(__NR_select, args+x0);
+ }
+
+ // __NR_symlink 83
+ //GO(__NR_symlink, ".s .m");
+ //SY(__NR_symlink);
+
+ // __NR_oldlstat 84
+ // (obsolete, not handled by Valgrind)
+
+ // __NR_readlink 85
+ //GO(__NR_readlink, ".s .m");
+ //SY(__NR_readlink);
+
+ // __NR_uselib 86
+ // (Not yet handled by Valgrind)
+
+ // __NR_swapon 87
+ // (Not yet handled by Valgrind)
+
+ // __NR_reboot 88
+ // (Not yet handled by Valgrind)
+
+ // __NR_readdir 89
+ // (superseded, not handled by Valgrind)
+
+ // __NR_mmap 90
+ //GO(__NR_mmap, ".s .m");
+ //SY(__NR_mmap);
+
+ // __NR_munmap 91
+ //GO(__NR_munmap, ".s .m");
+ //SY(__NR_munmap);
+
+ // __NR_truncate 92
+ //GO(__NR_truncate, ".s .m");
+ //SY(__NR_truncate);
+
+ // __NR_ftruncate 93
+ //GO(__NR_ftruncate, ".s .m");
+ //SY(__NR_ftruncate);
+
+ // __NR_fchmod 94
+ //GO(__NR_fchmod, ".s .m");
+ //SY(__NR_fchmod);
+
+ // __NR_fchown 95 --> sys_fchown16
+ GO(__NR_fchown, "3s 0m");
+ SY(__NR_fchown, x0, x0, x0);
+
+ // __NR_getpriority 96
+ //GO(__NR_getpriority, ".s .m");
+ //SY(__NR_getpriority);
+
+ // __NR_setpriority 97
+ //GO(__NR_setpriority, ".s .m");
+ //SY(__NR_setpriority);
+
+ // __NR_profil 98
+ //GO(__NR_profil, ".s .m");
+ //SY(__NR_profil);
+
+ // __NR_statfs 99
+ //GO(__NR_statfs, ".s .m");
+ //SY(__NR_statfs);
+
+ // __NR_fstatfs 100
+ //GO(__NR_fstatfs, ".s .m");
+ //SY(__NR_fstatfs);
+
+ // __NR_ioperm 101
+ //GO(__NR_ioperm, ".s .m");
+ //SY(__NR_ioperm);
+
+ // __NR_socketcall 102
+ //GO(__NR_socketcall, ".s .m");
+ //SY(__NR_socketcall);
+
+ // __NR_syslog 103
+ //GO(__NR_syslog, ".s .m");
+ //SY(__NR_syslog);
+
+ // __NR_setitimer 104
+ //GO(__NR_setitimer, ".s .m");
+ //SY(__NR_setitimer);
+
+ // __NR_getitimer 105
+ //GO(__NR_getitimer, ".s .m");
+ //SY(__NR_getitimer);
+
+ // __NR_stat 106 --> sys_newstat()
+ GO(__NR_stat, "2s 2m");
+ SY(__NR_stat, x0, x0);
+
+ // __NR_lstat 107 --> sys_newlstat()
+ GO(__NR_lstat, "2s 2m");
+ SY(__NR_lstat, x0, x0);
+
+ // __NR_fstat 108 --> sys_newfstat()
+ GO(__NR_fstat, "2s 1m");
+ SY(__NR_fstat, x0, x0);
+
+ // __NR_olduname 109
+ // (obsolete, not handled by Valgrind)
+
+ // __NR_iopl 110
+ //GO(__NR_iopl, ".s .m");
+ //SY(__NR_iopl);
+
+ // __NR_vhangup 111 --> sys_vhangup()
+ GO(__NR_vhangup, "0e");
+ SY(__NR_vhangup);
+
+ // __NR_idle 112 --> sys_ni_syscall()
+ GO(__NR_idle, "0e");
+ SY(__NR_idle);
+
+ // __NR_vm86old 113
+ //GO(__NR_vm86old, ".s .m");
+ //SY(__NR_vm86old);
+
+ // __NR_wait4 114
+ //GO(__NR_wait4, ".s .m");
+ //SY(__NR_wait4);
+
+ // __NR_swapoff 115
+ //GO(__NR_swapoff, ".s .m");
+ //SY(__NR_swapoff);
+
+ // __NR_sysinfo 116
+ //GO(__NR_sysinfo, ".s .m");
+ //SY(__NR_sysinfo);
+
+ // __NR_ipc 117
+ //GO(__NR_ipc, ".s .m");
+ //SY(__NR_ipc);
+
+ // __NR_fsync 118
+ //GO(__NR_fsync, ".s .m");
+ //SY(__NR_fsync);
+
+ // __NR_sigreturn 119
+ //GO(__NR_sigreturn, ".s .m");
+ //SY(__NR_sigreturn);
+
+ // __NR_clone 120
+ //GO(__NR_clone, ".s .m");
+ //SY(__NR_clone);
+
+ // __NR_setdomainname 121
+ //GO(__NR_setdomainname, ".s .m");
+ //SY(__NR_setdomainname);
+
+ // __NR_uname 122
+ GO(__NR_uname, "1s 1m");
+ SY(__NR_uname, x0);
+
+ // __NR_modify_ldt 123
+ //GO(__NR_modify_ldt, ".s .m");
+ //SY(__NR_modify_ldt);
+
+ // __NR_adjtimex 124
+ //GO(__NR_adjtimex, ".s .m");
+ //SY(__NR_adjtimex);
+
+ // __NR_mprotect 125
+ //GO(__NR_mprotect, ".s .m");
+ //SY(__NR_mprotect);
+
+ // __NR_sigprocmask 126
+ //GO(__NR_sigprocmask, ".s .m");
+ //SY(__NR_sigprocmask);
+
+ // __NR_create_module 127 --> sys_ni_syscall()
+ GO(__NR_create_module, "0e");
+ SY(__NR_create_module);
+
+ // __NR_init_module 128
+ //GO(__NR_init_module, ".s .m");
+ //SY(__NR_init_module);
+
+ // __NR_delete_module 129
+ //GO(__NR_delete_module, ".s .m");
+ //SY(__NR_delete_module);
+
+ // __NR_get_kernel_syms 130 --> sys_ni_syscall()
+ GO(__NR_get_kernel_syms, "0e");
+ SY(__NR_get_kernel_syms);
+
+ // __NR_quotactl 131
+ //GO(__NR_quotactl, ".s .m");
+ //SY(__NR_quotactl);
+
+ // __NR_getpgid 132
+ //GO(__NR_getpgid, ".s .m");
+ //SY(__NR_getpgid);
+
+ // __NR_fchdir 133
+ //GO(__NR_fchdir, ".s .m");
+ //SY(__NR_fchdir);
+
+ // __NR_bdflush 134
+ //GO(__NR_bdflush, ".s .m");
+ //SY(__NR_bdflush);
+
+ // __NR_sysfs 135
+ //GO(__NR_sysfs, ".s .m");
+ //SY(__NR_sysfs);
+
+ // __NR_personality 136
+ //GO(__NR_personality, ".s .m");
+ //SY(__NR_personality);
+
+ // __NR_afs_syscall 137 --> sys_ni_syscall()
+ GO(__NR_afs_syscall, "0e");
+ SY(__NR_afs_syscall);
+
+ // __NR_setfsuid 138
+ GO(__NR_setfsuid, "1s 0m");
+ SY(__NR_setfsuid, x0);
+
+ // __NR_setfsgid 139
+ GO(__NR_setfsgid, "1s 0m");
+ SY(__NR_setfsgid, x0);
+
+ // __NR__llseek 140
+ //GO(__NR__llseek, ".s .m");
+ //SY(__NR__llseek);
+
+ // __NR_getdents 141
+ //GO(__NR_getdents, ".s .m");
+ //SY(__NR_getdents);
+
+ // __NR__newselect 142 --> sys_select()
+ GO(__NR__newselect, "5s 4m");
+ SY(__NR__newselect, x0+8, x0+0xffffffff, x0+1, x0+1, x0+1);
+
+ // __NR_flock 143
+ //GO(__NR_flock, ".s .m");
+ //SY(__NR_flock);
+
+ // __NR_msync 144
+ //GO(__NR_msync, ".s .m");
+ //SY(__NR_msync);
+
+ // __NR_readv 145
+ //GO(__NR_readv, ".s .m");
+ //SY(__NR_readv);
+
+ // __NR_writev 146
+ //GO(__NR_writev, ".s .m");
+ //SY(__NR_writev);
+
+ // __NR_getsid 147
+ //GO(__NR_getsid, ".s .m");
+ //SY(__NR_getsid);
+
+ // __NR_fdatasync 148
+ //GO(__NR_fdatasync, ".s .m");
+ //SY(__NR_fdatasync);
+
+ // __NR__sysctl 149
+ //GO(__NR__sysctl, ".s .m");
+ //SY(__NR__sysctl);
+
+ // __NR_mlock 150
+ //GO(__NR_mlock, ".s .m");
+ //SY(__NR_mlock);
+
+ // __NR_munlock 151
+ //GO(__NR_munlock, ".s .m");
+ //SY(__NR_munlock);
+
+ // __NR_mlockall 152
+ //GO(__NR_mlockall, ".s .m");
+ //SY(__NR_mlockall);
+
+ // __NR_munlockall 153 --> sys_munlockall()
+ GO(__NR_munlockall, "0e");
+ SY(__NR_munlockall);
+
+ // __NR_sched_setparam 154
+ //GO(__NR_sched_setparam, ".s .m");
+ //SY(__NR_sched_setparam);
+
+ // __NR_sched_getparam 155
+ //GO(__NR_sched_getparam, ".s .m");
+ //SY(__NR_sched_getparam);
+
+ // __NR_sched_setscheduler 156
+ //GO(__NR_sched_setscheduler, ".s .m");
+ //SY(__NR_sched_setscheduler);
+
+ // __NR_sched_getscheduler 157
+ //GO(__NR_sched_getscheduler, ".s .m");
+ //SY(__NR_sched_getscheduler);
+
+ // __NR_sched_yield 158
+ //GO(__NR_sched_yield, ".s .m");
+ //SY(__NR_sched_yield);
+
+ // __NR_sched_get_priority_max 159
+ //GO(__NR_sched_get_priority_max, ".s .m");
+ //SY(__NR_sched_get_priority_max);
+
+ // __NR_sched_get_priority_min 160
+ //GO(__NR_sched_get_priority_min, ".s .m");
+ //SY(__NR_sched_get_priority_min);
+
+ // __NR_sched_rr_get_interval 161
+ //GO(__NR_sched_rr_get_interval, ".s .m");
+ //SY(__NR_sched_rr_get_interval);
+
+ // __NR_nanosleep 162
+ //GO(__NR_nanosleep, ".s .m");
+ //SY(__NR_nanosleep);
+
+ // __NR_mremap 163
+ //GO(__NR_mremap, ".s .m");
+ //SY(__NR_mremap);
+
+ // __NR_setresuid 164 --> sys_setresuid16()
+ GO(__NR_setresuid, "3s 0m");
+ SY(__NR_setresuid, x0, x0, x0);
+
+ // __NR_getresuid 165 --> sys_getresuid16()
+ GO(__NR_getresuid, "3s 3m");
+ SY(__NR_getresuid, x0, x0, x0);
+
+ // __NR_vm86 166
+ //GO(__NR_vm86, ".s .m");
+ //SY(__NR_vm86);
+
+ // __NR_query_module 167 --> sys_ni_syscall()
+ GO(__NR_query_module, "0e");
+ SY(__NR_query_module);
+
+ // __NR_poll 168
+ //GO(__NR_poll, ".s .m");
+ //SY(__NR_poll);
+
+ // __NR_nfsservctl 169
+ //GO(__NR_nfsservctl, ".s .m");
+ //SY(__NR_nfsservctl);
+
+ // __NR_setresgid 170 --> sys_setresgid16()
+ GO(__NR_setresgid, "3s 0m");
+ SY(__NR_setresgid, x0, x0, x0);
+
+ // __NR_getresgid 171 --> sys_getresgid16()
+ GO(__NR_getresgid, "3s 3m");
+ SY(__NR_getresgid, x0, x0, x0);
+
+ // __NR_prctl 172
+ //GO(__NR_prctl, ".s .m");
+ //SY(__NR_prctl);
+
+ // __NR_rt_sigreturn 173
+ //GO(__NR_rt_sigreturn, ".s .m");
+ //SY(__NR_rt_sigreturn);
+
+ // __NR_rt_sigaction 174 --> sys_rt_sigaction()
+ GO(__NR_rt_sigaction, "4s 2m");
+ SY(__NR_rt_sigaction, x0, x0+1, x0+1, x0);
+
+ // __NR_rt_sigprocmask 175
+ //GO(__NR_rt_sigprocmask, ".s .m");
+ //SY(__NR_rt_sigprocmask);
+
+ // __NR_rt_sigpending 176
+ //GO(__NR_rt_sigpending, ".s .m");
+ //SY(__NR_rt_sigpending);
+
+ // __NR_rt_sigtimedwait 177
+ //GO(__NR_rt_sigtimedwait, ".s .m");
+ //SY(__NR_rt_sigtimedwait);
+
+ // __NR_rt_sigqueueinfo 178
+ //GO(__NR_rt_sigqueueinfo, ".s .m");
+ //SY(__NR_rt_sigqueueinfo);
+
+ // __NR_rt_sigsuspend 179
+ //GO(__NR_rt_sigsuspend, ".s .m");
+ //SY(__NR_rt_sigsuspend);
+
+ // __NR_pread64 180
+ //GO(__NR_pread64, ".s .m");
+ //SY(__NR_pread64);
+
+ // __NR_pwrite64 181
+ //GO(__NR_pwrite64, ".s .m");
+ //SY(__NR_pwrite64);
+
+ // __NR_chown 182 --> sys_chown16()
+ GO(__NR_chown, "3s 1m");
+ SY(__NR_chown, x0, x0, x0);
+
+ // __NR_getcwd 183
+ //GO(__NR_getcwd, ".s .m");
+ //SY(__NR_getcwd);
+
+ // __NR_capget 184
+ //GO(__NR_capget, ".s .m");
+ //SY(__NR_capget);
+
+ // __NR_capset 185
+ //GO(__NR_capset, ".s .m");
+ //SY(__NR_capset);
+
+ // __NR_sigaltstack 186
+ //GO(__NR_sigaltstack, ".s .m");
+ //SY(__NR_sigaltstack);
+
+ // __NR_sendfile 187
+ //GO(__NR_sendfile, ".s .m");
+ //SY(__NR_sendfile);
+
+ // __NR_getpmsg 188
+ //GO(__NR_getpmsg, ".s .m");
+ //SY(__NR_getpmsg);
+
+ // __NR_putpmsg 189
+ //GO(__NR_putpmsg, ".s .m");
+ //SY(__NR_putpmsg);
+
+ // __NR_vfork 190
+ //GO(__NR_vfork, ".s .m");
+ //SY(__NR_vfork);
+
+ // __NR_ugetrlimit 191
+ GO(__NR_ugetrlimit, "2s 1m");
+ SY(__NR_ugetrlimit, x0, x0);
+
+ // __NR_mmap2 192
+ //GO(__NR_mmap2, ".s .m");
+ //SY(__NR_mmap2);
+
+ // __NR_truncate64 193
+ //GO(__NR_truncate64, ".s .m");
+ //SY(__NR_truncate64);
+
+ // __NR_ftruncate64 194
+ //GO(__NR_ftruncate64, ".s .m");
+ //SY(__NR_ftruncate64);
+
+ // __NR_stat64 195
+ GO(__NR_stat64, "2s 2m");
+ SY(__NR_stat64, x0, x0);
+
+ // __NR_lstat64 196
+ GO(__NR_lstat64, "2s 2m");
+ SY(__NR_lstat64, x0, x0);
+
+ // __NR_fstat64 197
+ GO(__NR_fstat64, "2s 1m");
+ SY(__NR_fstat64, x0, x0);
+
+ // __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");
+ SY(__NR_getuid32);
+
+ // __NR_getgid32 200 --> sys_getgid()
+ GO(__NR_getgid32, "0e");
+ SY(__NR_getgid32);
+
+ // __NR_geteuid32 201 --> sys_geteuid()
+ GO(__NR_geteuid32, "0e");
+ SY(__NR_geteuid32);
+
+ // __NR_getegid32 202 --> sys_getegid()
+ GO(__NR_getegid32, "0e");
+ SY(__NR_getegid32);
+
+ // __NR_setreuid32 203
+ GO(__NR_setreuid32, "2s 0m");
+ SY(__NR_setreuid32, x0, x0);
+
+ // __NR_setregid32 204
+ GO(__NR_setregid32, "2s 0m");
+ SY(__NR_setregid32, x0, x0);
+
+ // __NR_getgroups32 205 --> sys_getgroups()
+ GO(__NR_getgroups32, "2s 1m");
+ SY(__NR_getgroups32, x0+1, x0+1);
+
+ // __NR_setgroups32 206 --> sys_setgroups()
+ GO(__NR_setgroups32, "2s 1m");
+ SY(__NR_setgroups32, x0+1, x0+1);
+
+ // __NR_fchown32 207 --> sys_fchown()
+ GO(__NR_fchown32, "3s 0m");
+ SY(__NR_fchown32, x0, x0, x0);
+
+ // __NR_setresuid32 208 --> sys_setresuid()
+ GO(__NR_setresuid32, "3s 0m");
+ SY(__NR_setresuid32, x0, x0, x0);
+
+ // __NR_getresuid32 209 --> sys_getresuid()
+ GO(__NR_getresuid32, "3s 3m");
+ SY(__NR_getresuid32, x0, x0, x0);
+
+ // __NR_setresgid32 210 --> sys_setresgid()
+ GO(__NR_setresgid32, "3s 0m");
+ SY(__NR_setresgid32, x0, x0, x0);
+
+ // __NR_getresgid32 211 --> sys_getresgid()
+ GO(__NR_getresgid32, "3s 3m");
+ SY(__NR_getresgid32, x0, x0, x0);
+
+ // __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");
+ SY(__NR_setuid32, x0);
+
+ // __NR_setgid32 214
+ GO(__NR_setgid32, "1s 0m");
+ SY(__NR_setgid32, x0);
+
+ // __NR_setfsuid32 215 --> sys_setfsuid()
+ GO(__NR_setfsuid32, "1s 0m");
+ SY(__NR_setfsuid32, x0);
+
+ // __NR_setfsgid32 216 --> sys_setfsgid()
+ GO(__NR_setfsgid32, "1s 0m");
+ SY(__NR_setfsgid32, x0);
+
+ // __NR_pivot_root 217
+ //GO(__NR_pivot_root, ".s .m");
+ //SY(__NR_pivot_root);
+
+ // __NR_mincore 218
+ //GO(__NR_mincore, ".s .m");
+ //SY(__NR_mincore);
+
+ // __NR_madvise 219
+ //GO(__NR_madvise, ".s .m");
+ //SY(__NR_madvise);
+
+ // __NR_getdents64 220
+ //GO(__NR_getdents64, ".s .m");
+ //SY(__NR_getdents64);
+
+ // __NR_fcntl64 221
+ //GO(__NR_fcntl64, ".s .m");
+ //SY(__NR_fcntl64);
+
+ // 222 --> sys_ni_syscall()
+ GO(222, "0e");
+ SY(222);
+
+ // 223 --> sys_ni_syscall()
+ GO(223, "0e");
+ SY(223);
+
+ // __NR_gettid 224
+ //GO(__NR_gettid, ".s .m");
+ //SY(__NR_gettid);
+
+ // __NR_readahead 225
+ //GO(__NR_readahead, ".s .m");
+ //SY(__NR_readahead);
+
+ // __NR_setxattr 226 --> sys_xattr()
+ GO(__NR_setxattr, "5s 3m");
+ SY(__NR_setxattr, x0, x0, x0, x0+1, x0);
+
+ // __NR_lsetxattr 227 --> sys_lsetxattr()
+ GO(__NR_lsetxattr, "5s 3m");
+ SY(__NR_lsetxattr, x0, x0, x0, x0+1, x0);
+
+ // __NR_fsetxattr 228 --> sys_fsetxattr()
+ GO(__NR_fsetxattr, "5s 2m");
+ SY(__NR_fsetxattr, x0, x0, x0, x0+1, x0);
+
+ // __NR_getxattr 229 --> sys_getxattr()
+ GO(__NR_getxattr, "4s 3m");
+ SY(__NR_getxattr, x0, x0, x0, x0+1);
+
+ // __NR_lgetxattr 230 --> sys_lgetxattr()
+ GO(__NR_lgetxattr, "4s 3m");
+ SY(__NR_lgetxattr, x0, x0, x0, x0+1);
+
+ // __NR_fgetxattr 231 --> sys_fgetxattr()
+ GO(__NR_fgetxattr, "4s 2m");
+ SY(__NR_fgetxattr, x0, x0, x0, x0+1);
+
+ // __NR_listxattr 232 --> sys_listxattr()
+ GO(__NR_listxattr, "3s 2m");
+ SY(__NR_listxattr, x0, x0, x0+1);
+
+ // __NR_llistxattr 233 --> sys_llistxattr()
+ GO(__NR_llistxattr, "3s 2m");
+ SY(__NR_llistxattr, x0, x0, x0+1);
+
+ // __NR_flistxattr 234 --> sys_flistxattr()
+ GO(__NR_flistxattr, "3s 1m");
+ SY(__NR_flistxattr, x0, x0, x0+1);
+
+ // __NR_removexattr 235 --> sys_removexattr()
+ GO(__NR_removexattr, "2s 2m");
+ SY(__NR_removexattr, x0, x0);
+
+ // __NR_lremovexattr 236 --> sys_lremovexattr()
+ GO(__NR_lremovexattr, "2s 2m");
+ SY(__NR_lremovexattr, x0, x0);
+
+ // __NR_fremovexattr 237 --> sys_fremovexattr()
+ GO(__NR_fremovexattr, "2s 1m");
+ SY(__NR_fremovexattr, x0, x0);
+
+ // __NR_tkill 238
+ //GO(__NR_tkill, ".s .m");
+ //SY(__NR_tkill);
+
+ // __NR_sendfile64 239
+ //GO(__NR_sendfile64, ".s .m");
+ //SY(__NR_sendfile64);
+
+ // __NR_futex 240
+ //GO(__NR_futex, ".s .m");
+ //SY(__NR_futex);
+
+ // __NR_sched_setaffinity 241
+ //GO(__NR_sched_setaffinity, ".s .m");
+ //SY(__NR_sched_setaffinity);
+
+ // __NR_sched_getaffinity 242
+ //GO(__NR_sched_getaffinity, ".s .m");
+ //SY(__NR_sched_getaffinity);
+
+ // __NR_set_thread_area 243
+ //GO(__NR_set_thread_area, ".s .m");
+ //SY(__NR_set_thread_area);
+
+ // __NR_get_thread_area 244
+ //GO(__NR_get_thread_area, ".s .m");
+ //SY(__NR_get_thread_area);
+
+ // __NR_io_setup 245
+ //GO(__NR_io_setup, ".s .m");
+ //SY(__NR_io_setup);
+
+ // __NR_io_destroy 246
+ //GO(__NR_io_destroy, ".s .m");
+ //SY(__NR_io_destroy);
+
+ // __NR_io_getevents 247
+ //GO(__NR_io_getevents, ".s .m");
+ //SY(__NR_io_getevents);
+
+ // __NR_io_submit 248
+ //GO(__NR_io_submit, ".s .m");
+ //SY(__NR_io_submit);
+
+ // __NR_io_cancel 249
+ //GO(__NR_io_cancel, ".s .m");
+ //SY(__NR_io_cancel);
+
+ // __NR_fadvise64 250
+ //GO(__NR_fadvise64, ".s .m");
+ //SY(__NR_fadvise64);
+
+ // 251 --> sys_ni_syscall()
+ GO(251, "0e");
+ SY(251);
+
+ // __NR_exit_group 252
+ // See below
+
+ // __NR_lookup_dcookie 253 --> sys_lookup_dcookie()
+ GO(__NR_lookup_dcookie, "4s 1m");
+ SY(__NR_lookup_dcookie, x0, x0, x0, x0+1);
+
+ // __NR_epoll_create 254
+ //GO(__NR_epoll_create, ".s .m");
+ //SY(__NR_epoll_create);
+
+ // __NR_epoll_ctl 255
+ //GO(__NR_epoll_ctl, ".s .m");
+ //SY(__NR_epoll_ctl);
+
+ // __NR_epoll_wait 256
+ //GO(__NR_epoll_wait, ".s .m");
+ //SY(__NR_epoll_wait);
+
+ // __NR_remap_file_pages 257
+ //GO(__NR_remap_file_pages, ".s .m");
+ //SY(__NR_remap_file_pages);
+
+ // __NR_set_tid_address 258
+ //GO(__NR_set_tid_address, ".s .m");
+ //SY(__NR_set_tid_address);
+
+ // __NR_timer_create 259
+ //GO(__NR_timer_create, ".s .m");
+ //SY(__NR_timer_create);
+
+ // __NR_timer_settime (__NR_timer_create+1)
+ //GO(__NR_timer_settime, ".s .m");
+ //SY(__NR_timer_settime);
+
+ // __NR_timer_gettime (__NR_timer_create+2)
+ //GO(__NR_timer_gettime, ".s .m");
+ //SY(__NR_timer_gettime);
+
+ // __NR_timer_getoverrun (__NR_timer_create+3)
+ //GO(__NR_timer_getoverrun, ".s .m");
+ //SY(__NR_timer_getoverrun);
+
+ // __NR_timer_delete (__NR_timer_create+4)
+ //GO(__NR_timer_delete, ".s .m");
+ //SY(__NR_timer_delete);
+
+ // __NR_clock_settime (__NR_timer_create+5)
+ //GO(__NR_clock_settime, ".s .m");
+ //SY(__NR_clock_settime);
+
+ // __NR_clock_gettime (__NR_timer_create+6)
+ //GO(__NR_clock_gettime, ".s .m");
+ //SY(__NR_clock_gettime);
+
+ // __NR_clock_getres (__NR_timer_create+7)
+ //GO(__NR_clock_getres, ".s .m");
+ //SY(__NR_clock_getres);
+
+ // __NR_clock_nanosleep (__NR_timer_create+8)
+ //GO(__NR_clock_nanosleep, ".s .m");
+ //SY(__NR_clock_nanosleep);
+
+ // __NR_statfs64 268
+ //GO(__NR_statfs64, ".s .m");
+ //SY(__NR_statfs64);
+
+ // __NR_fstatfs64 269
+ //GO(__NR_fstatfs64, ".s .m");
+ //SY(__NR_fstatfs64);
+
+ // __NR_tgkill 270
+ //GO(__NR_tgkill, ".s .m");
+ //SY(__NR_tgkill);
+
+ // __NR_utimes 271
+ //GO(__NR_utimes, ".s .m");
+ //SY(__NR_utimes);
+
+ // __NR_fadvise64_64 272
+ //GO(__NR_fadvise64_64, ".s .m");
+ //SY(__NR_fadvise64_64);
+
+ // __NR_vserver 273 --> sys_ni_syscall()
+ //GO(__NR_vserver, "0e");
+ //SY(__NR_vserver);
+
+ // __NR_mbind 274
+ //GO(__NR_mbind, ".s .m");
+ //SY(__NR_mbind);
+
+ // __NR_get_mempolicy 275
+ //GO(__NR_get_mempolicy, ".s .m");
+ //SY(__NR_get_mempolicy);
+
+ // __NR_set_mempolicy 276
+ //GO(__NR_set_mempolicy, ".s .m");
+ //SY(__NR_set_mempolicy);
+
+ // __NR_mq_open 277
+ //GO(__NR_mq_open, ".s .m");
+ //SY(__NR_mq_open);
+
+ // __NR_mq_unlink (__NR_mq_open+1)
+ //GO(__NR_mq_unlink, ".s .m");
+ //SY(__NR_mq_unlink);
+
+ // __NR_mq_timedsend (__NR_mq_open+2)
+ //GO(__NR_mq_timedsend, ".s .m");
+ //SY(__NR_mq_timedsend);
+
+ // __NR_mq_timedreceive (__NR_mq_open+3)
+ //GO(__NR_mq_timedreceive, ".s .m");
+ //SY(__NR_mq_timedreceive);
+
+ // __NR_mq_notify (__NR_mq_open+4)
+ //GO(__NR_mq_notify, ".s .m");
+ //SY(__NR_mq_notify);
+
+ // __NR_mq_getsetattr (__NR_mq_open+5)
+ //GO(__NR_mq_getsetattr, ".s .m");
+ //SY(__NR_mq_getsetattr);
+
+ // __NR_sys_kexec_load 283 --> sys_ni_syscall()
+ //GO(__NR_sys_kexec_load, "0e");
+ //SY(__NR_sys_kexec_load);
+
+ GO(9999, "1e");
+ SY(9999);
+
// __NR_exit 1 --> sys_exit()
GO(__NR_exit, "1s 0m");
--- valgrind/memcheck/tests/scalar.stderr.exp #1.22:1.23
@@ -596,4 +596,1568 @@
-----------------------------------------------------
-----------------------------------------------------
+ 50: __NR_getegid 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 51: __NR_acct 1s 1m
+-----------------------------------------------------
+
+Syscall param acct(filename) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param acct(filename) 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
+-----------------------------------------------------
+ 52: __NR_umount2 2s 1m
+-----------------------------------------------------
+
+Syscall param umount2(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param umount2(flags) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param umount2(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
+-----------------------------------------------------
+ 53: __NR_lock 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 54: __NR_ioctl 3s 1m
+-----------------------------------------------------
+
+Syscall param ioctl(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ioctl(request) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ioctl(arg) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param ioctl(TCSET{S,SW,SF}) 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
+-----------------------------------------------------
+ 55: __NR_fcntl 3s 0m
+-----------------------------------------------------
+
+Syscall param fcntl(fd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fcntl(cmd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param fcntl(arg) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 56: __NR_mpx 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 57: __NR_setpgid 2s 0m
+-----------------------------------------------------
+
+Syscall param setpgid(pid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setpgid(pgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 58: __NR_ulimit 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 60: __NR_umask 1s 0m
+-----------------------------------------------------
+
+Syscall param umask(mask) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 61: __NR_chroot 1s 1m
+-----------------------------------------------------
+
+Syscall param chroot(path) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param chroot(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
+-----------------------------------------------------
+ 63: __NR_dup2 2s 0m
+-----------------------------------------------------
+
+Syscall param dup2(oldfd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param dup2(newfd) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 64: __NR_getppid 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 65: __NR_getpgrp 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 66: __NR_setsid 0e
+-----------------------------------------------------
+-----------------------------------------------------
+ 67: __NR_sigaction 3s 2m
+-----------------------------------------------------
+
+Syscall param sigaction(signum) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param sigaction(act) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param sigaction(oldact) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param sigaction(act) 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 sigaction(oldact) 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
+-----------------------------------------------------
+ 70: __NR_setreuid 2s 0m
+-----------------------------------------------------
+
+Syscall param setreuid16(ruid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setreuid16(euid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 71: __NR_setregid 2s 0m
+-----------------------------------------------------
+
+Syscall param setregid16(rgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setregid16(egid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+ 73: __NR_sigpending 1s 1m
+-----------------------------------------------------
+
+Syscall param sigpending(set) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param sigpending(set) 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
+-----------------------------------------------------
+ 75: __NR_setrlimit 2s 1m
+-----------------------------------------------------
+
+Syscall param setrlimit(resource) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setrlimit(rlim) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setrlimit(rlim) 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
+-----------------------------------------------------
+ 76: __NR_getrlimit 2s 1m
+-----------------------------------------------------
+
+Syscall param old_getrlimit(resource) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param old_getrlimit(rlim) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param old_getrlimit(rlim) 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
+-----------------------------------------------------
+ 77: __NR_getrusage 2s 1m
+-----------------------------------------------------
+
+Syscall param getrusage(who) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrusage(usage) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrusage(usage) 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
+-----------------------------------------------------
+ 78: __NR_gettimeofday 2s 2m
+-----------------------------------------------------
+
+Syscall param gettimeofday(tv) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param gettimeofday(tz) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param gettimeofday(tv) 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 gettimeofday(tz) 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
+-----------------------------------------------------
+ 79: __NR_settimeofday 2s 2m
+-----------------------------------------------------
+
+Syscall param settimeofday(tv) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param settimeofday(tz) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param settimeofday(tv) 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 settimeofday(tz) 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
+-----------------------------------------------------
+ 80: __NR_getgroups 2s 1m
+-----------------------------------------------------
+
+Syscall param getgroups16(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups16(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups16(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
+-----------------------------------------------------
+ 81: __NR_setgroups 2s 1m
+-----------------------------------------------------
+
+Syscall param setgroups16(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups16(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups16(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
+-----------------------------------------------------
+ 82: __NR_select 1s 4m
+-----------------------------------------------------
+
+Syscall param old_select(args) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param old_select(readfds) 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 old_select(writefds) 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 old_select(exceptfds) 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 old_select(timeout) 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
+-----------------------------------------------------
+ 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
+-----------------------------------------------------
+-----------------------------------------------------
+112: __NR_idle 0e
+-----------------------------------------------------
+-----------------------------------------------------
+122: __NR_uname 1s 1m
+-----------------------------------------------------
+
+Syscall param uname(buf) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param uname(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
+-----------------------------------------------------
+127: __NR_create_module 0e
+-----------------------------------------------------
+-----------------------------------------------------
+130:__NR_get_kernel_syms 0e
+-----------------------------------------------------
+-----------------------------------------------------
+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........: ...
+-----------------------------------------------------
+142: __NR__newselect 5s 4m
+-----------------------------------------------------
+
+Syscall param select(n) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(readfds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(writefds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(exceptfds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(timeout) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(readfds) 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 select(writefds) 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 select(exceptfds) 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 select(timeout) 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
+-----------------------------------------------------
+153: __NR_munlockall 0e
+-----------------------------------------------------
+-----------------------------------------------------
+164: __NR_setresuid 3s 0m
+-----------------------------------------------------
+
+Syscall param setresuid16(ruid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setresuid16(euid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setresuid16(suid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+165: __NR_getresuid 3s 3m
+-----------------------------------------------------
+
+Syscall param getresuid16(ruid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresuid16(euid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresuid16(suid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresuid16(ruid) 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 getresuid16(euid) 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 getresuid16(suid) 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
+-----------------------------------------------------
+167: __NR_query_module 0e
+-----------------------------------------------------
+-----------------------------------------------------
+170: __NR_setresgid 3s 0m
+-----------------------------------------------------
+
+Syscall param setresgid16(rgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setresgid16(egid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setresgid16(sgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+171: __NR_getresgid 3s 3m
+-----------------------------------------------------
+
+Syscall param getresgid16(rgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresgid16(egid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresgid16(sgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getresgid16(rgid) 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 getresgid16(egid) 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 getresgid16(sgid) 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
+-----------------------------------------------------
+174: __NR_rt_sigaction 4s 2m
+-----------------------------------------------------
+
+Syscall param rt_sigaction(signum) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(act) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(oldact) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(sigsetsize) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(act) 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 rt_sigaction(oldact) 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
+-----------------------------------------------------
+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
+-----------------------------------------------------
+
+Syscall param getrlimit(resource) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrlimit(rlim) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrlimit(rlim) 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
+-----------------------------------------------------
+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
+-----------------------------------------------------
+-----------------------------------------------------
+200: __NR_getgid32 0e
+-----------------------------------------------------
+-----------------------------------------------------
+201: __NR_geteuid32 0e
+-----------------------------------------------------
+-----------------------------------------------------
+202: __NR_getegid32 0e
+-----------------------------------------------------
+-----------------------------------------------------
+203: __NR_setreuid32 2s 0m
+-----------------------------------------------------
+
+Syscall param setreuid(ruid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setreuid(euid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+204: __NR_setregid32 2s 0m
+-----------------------------------------------------
+
+Syscall param setregid(rgid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setregid(egid) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+-----------------------------------------------------
+205: __NR_getgroups32 2s 1m
+-----------------------------------------------------
+
+Syscall param getgroups(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups(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...
[truncated message content] |
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 17:58:30
|
CVS commit by nethercote:
Converted a few more syscalls.
Also split scalar into 6 pieces, to avoid hitting the 300 error limit.
A memcheck/tests/scalar2.c 1.1 [no copyright]
A memcheck/tests/scalar2.stderr.exp 1.1
A memcheck/tests/scalar2.vgtest 1.1
A memcheck/tests/scalar3.c 1.1 [no copyright]
A memcheck/tests/scalar3.stderr.exp 1.1
A memcheck/tests/scalar3.vgtest 1.1
A memcheck/tests/scalar4.c 1.1 [no copyright]
A memcheck/tests/scalar4.stderr.exp 1.1
A memcheck/tests/scalar4.vgtest 1.1
A memcheck/tests/scalar5.c 1.1 [no copyright]
A memcheck/tests/scalar5.stderr.exp 1.1
A memcheck/tests/scalar5.vgtest 1.1
A memcheck/tests/scalar6.c 1.1 [no copyright]
A memcheck/tests/scalar6.stderr.exp 1.1
A memcheck/tests/scalar6.vgtest 1.1
A memcheck/tests/scalar_supp.supp 1.1
M +70 -60 coregrind/vg_syscalls.c 1.196
M +5 -0 memcheck/tests/.cvsignore 1.26
M +15 -4 memcheck/tests/Makefile.am 1.59
M +2 -931 memcheck/tests/scalar.c 1.27
M +0 -1348 memcheck/tests/scalar.stderr.exp 1.22
M +1 -1 memcheck/tests/scalar_supp.vgtest 1.3
R memcheck/tests/scalar.supp 1.2
--- valgrind/coregrind/vg_syscalls.c #1.195:1.196
@@ -1272,8 +1272,16 @@ PRE(set_tid_address)
}
-PRE(setresgid)
+PREx(sys_setresgid16, 0)
{
- /* int setresgid(gid_t rgid, gid_t egid, gid_t sgid); */
- PRINT("setresgid ( %d, %d, %d )", arg1, arg2, arg3);
+ PRINT("sys_setresgid16 ( %d, %d, %d )", arg1, arg2, arg3);
+ PRE_REG_READ3(long, "setresgid16",
+ vki_old_gid_t, rgid, vki_old_gid_t, egid, vki_old_gid_t, sgid);
+}
+
+PREx(sys_setresgid, 0)
+{
+ PRINT("sys_setresgid ( %d, %d, %d )", arg1, arg2, arg3);
+ PRE_REG_READ3(long, "setresgid",
+ vki_gid_t, rgid, vki_gid_t, egid, vki_gid_t, sgid);
}
@@ -1617,10 +1625,4 @@ PREx(sys_nice, 0)
}
-PRE(setresgid32)
-{
- /* int setresgid(gid_t rgid, gid_t egid, gid_t sgid); */
- PRINT("setresgid32 ( %d, %d, %d )", arg1, arg2, arg3);
-}
-
PREx(sys_setfsuid, 0)
{
@@ -1718,8 +1720,16 @@ PREx(sys_setregid16, 0)
}
-PRE(setresuid)
+PREx(sys_setresuid16, 0)
{
- /* int setresuid(uid_t ruid, uid_t euid, uid_t suid); */
- PRINT("setresuid ( %d, %d, %d )", arg1, arg2, arg3);
+ PRINT("sys_setresuid16 ( %d, %d, %d )", arg1, arg2, arg3);
+ PRE_REG_READ3(long, "setresuid16",
+ vki_old_uid_t, ruid, vki_old_uid_t, euid, vki_old_uid_t, suid);
+}
+
+PREx(sys_setresuid, 0)
+{
+ PRINT("sys_setresuid ( %d, %d, %d )", arg1, arg2, arg3);
+ PRE_REG_READ3(long, "setresuid",
+ vki_uid_t, ruid, vki_uid_t, euid, vki_uid_t, suid);
}
@@ -2429,32 +2439,35 @@ PREx(sys_getppid, 0)
}
-PRE(getresgid)
+PREx(sys_getresgid16, 0)
{
- /* int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); */
- PRINT("getresgid ( %p, %p, %p )", arg1,arg2,arg3);
- PRE_MEM_WRITE( "getresgid(rgid)", arg1, sizeof(vki_gid_t) );
- PRE_MEM_WRITE( "getresgid(egid)", arg2, sizeof(vki_gid_t) );
- PRE_MEM_WRITE( "getresgid(sgid)", arg3, sizeof(vki_gid_t) );
+ PRINT("sys_getresgid16 ( %p, %p, %p )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getresgid16",
+ vki_old_gid_t *, rgid, vki_old_gid_t *, egid,
+ vki_old_gid_t *, sgid);
+ PRE_MEM_WRITE( "getresgid16(rgid)", arg1, sizeof(vki_old_gid_t) );
+ PRE_MEM_WRITE( "getresgid16(egid)", arg2, sizeof(vki_old_gid_t) );
+ PRE_MEM_WRITE( "getresgid16(sgid)", arg3, sizeof(vki_old_gid_t) );
}
-POST(getresgid)
+POSTx(sys_getresgid16)
{
if (res == 0) {
- POST_MEM_WRITE( arg1, sizeof(vki_gid_t) );
- POST_MEM_WRITE( arg2, sizeof(vki_gid_t) );
- POST_MEM_WRITE( arg3, sizeof(vki_gid_t) );
+ POST_MEM_WRITE( arg1, sizeof(vki_old_gid_t) );
+ POST_MEM_WRITE( arg2, sizeof(vki_old_gid_t) );
+ POST_MEM_WRITE( arg3, sizeof(vki_old_gid_t) );
}
}
-PRE(getresgid32)
+PREx(sys_getresgid, 0)
{
- /* int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); */
- PRINT("getresgid32 ( %p, %p, %p )", arg1,arg2,arg3);
- PRE_MEM_WRITE( "getresgid32(rgid)", arg1, sizeof(vki_gid_t) );
- PRE_MEM_WRITE( "getresgid32(egid)", arg2, sizeof(vki_gid_t) );
- PRE_MEM_WRITE( "getresgid32(sgid)", arg3, sizeof(vki_gid_t) );
+ PRINT("sys_getresgid ( %p, %p, %p )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getresgid",
+ vki_gid_t *, rgid, vki_gid_t *, egid, vki_gid_t *, sgid);
+ PRE_MEM_WRITE( "getresgid(rgid)", arg1, sizeof(vki_gid_t) );
+ PRE_MEM_WRITE( "getresgid(egid)", arg2, sizeof(vki_gid_t) );
+ PRE_MEM_WRITE( "getresgid(sgid)", arg3, sizeof(vki_gid_t) );
}
-POST(getresgid32)
+POSTx(sys_getresgid)
{
if (res == 0) {
@@ -2465,32 +2478,35 @@ POST(getresgid32)
}
-PRE(getresuid)
+PREx(sys_getresuid16, 0)
{
- /* int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); */
- PRINT("getresuid ( %p, %p, %p )", arg1,arg2,arg3);
- PRE_MEM_WRITE( "getresuid(ruid)", arg1, sizeof(vki_uid_t) );
- PRE_MEM_WRITE( "getresuid(euid)", arg2, sizeof(vki_uid_t) );
- PRE_MEM_WRITE( "getresuid(suid)", arg3, sizeof(vki_uid_t) );
+ PRINT("sys_getresuid16 ( %p, %p, %p )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getresuid16",
+ vki_old_uid_t *, ruid, vki_old_uid_t *, euid,
+ vki_old_uid_t *, suid);
+ PRE_MEM_WRITE( "getresuid16(ruid)", arg1, sizeof(vki_old_uid_t) );
+ PRE_MEM_WRITE( "getresuid16(euid)", arg2, sizeof(vki_old_uid_t) );
+ PRE_MEM_WRITE( "getresuid16(suid)", arg3, sizeof(vki_old_uid_t) );
}
-POST(getresuid)
+POSTx(sys_getresuid16)
{
if (res == 0) {
- POST_MEM_WRITE( arg1, sizeof(vki_uid_t) );
- POST_MEM_WRITE( arg2, sizeof(vki_uid_t) );
- POST_MEM_WRITE( arg3, sizeof(vki_uid_t) );
+ POST_MEM_WRITE( arg1, sizeof(vki_old_uid_t) );
+ POST_MEM_WRITE( arg2, sizeof(vki_old_uid_t) );
+ POST_MEM_WRITE( arg3, sizeof(vki_old_uid_t) );
}
}
-PRE(getresuid32)
+PREx(sys_getresuid, 0)
{
- /* int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); */
- PRINT("getresuid32 ( %p, %p, %p )", arg1,arg2,arg3);
- PRE_MEM_WRITE( "getresuid32(ruid)", arg1, sizeof(vki_uid_t) );
- PRE_MEM_WRITE( "getresuid32(euid)", arg2, sizeof(vki_uid_t) );
- PRE_MEM_WRITE( "getresuid32(suid)", arg3, sizeof(vki_uid_t) );
+ PRINT("sys_getresuid ( %p, %p, %p )", arg1,arg2,arg3);
+ PRE_REG_READ3(long, "getresuid",
+ vki_uid_t *, ruid, vki_uid_t *, euid, vki_uid_t *, suid);
+ PRE_MEM_WRITE( "getresuid(ruid)", arg1, sizeof(vki_uid_t) );
+ PRE_MEM_WRITE( "getresuid(euid)", arg2, sizeof(vki_uid_t) );
+ PRE_MEM_WRITE( "getresuid(suid)", arg3, sizeof(vki_uid_t) );
}
-POST(getresuid32)
+POSTx(sys_getresuid)
{
if (res == 0) {
@@ -4948,10 +4964,4 @@ PREx(sys_setregid, 0)
}
-PRE(setresuid32)
-{
- /* int setresuid(uid_t ruid, uid_t euid, uid_t suid); */
- PRINT("setresuid32(?) ( %d, %d, %d )", arg1, arg2, arg3);
-}
-
PREx(sys_setreuid16, 0)
{
@@ -6462,7 +6472,7 @@ static const struct sys_info sys_info[]
SYSBA(__NR_nanosleep, sys_nanosleep, MayBlock|PostOnFail), // 162 *
SYSB_(__NR_mremap, sys_mremap, Special), // 163 *
- SYSB_(__NR_setresuid, sys_setresuid16, 0), // 164 ##
+ SYSX_(__NR_setresuid, sys_setresuid16), // 164 ## (non-standard)
- SYSBA(__NR_getresuid, sys_getresuid16, 0), // 165 ##
+ SYSXY(__NR_getresuid, sys_getresuid16), // 165 ## L
// (__NR_vm86, sys_vm86), // 166 (x86) L
SYSX_(__NR_query_module, sys_ni_syscall), // 167 * P -- unimplemented
@@ -6470,6 +6480,6 @@ static const struct sys_info sys_info[]
// (__NR_nfsservctl, sys_nfsservctl), // 169 * L
- SYSB_(__NR_setresgid, sys_setresgid16, 0), // 170 ##
- SYSBA(__NR_getresgid, sys_getresgid16, 0), // 171 ##
+ SYSX_(__NR_setresgid, sys_setresgid16), // 170 ## (non-standard)
+ SYSXY(__NR_getresgid, sys_getresgid16), // 171 ## L
SYSB_(__NR_prctl, sys_prctl, MayBlock), // 172 *
// (__NR_rt_sigreturn, sys_rt_sigreturn), // 173 (x86) ()
@@ -6516,9 +6526,9 @@ static const struct sys_info sys_info[]
SYSX_(__NR_setgroups32, sys_setgroups), // 206 * almost-P
SYSX_(__NR_fchown32, sys_fchown), // 207 * (SVr4,BSD4.3)
- SYSB_(__NR_setresuid32, sys_setresuid, 0), // 208 *
- SYSBA(__NR_getresuid32, sys_getresuid, 0), // 209 *
+ SYSX_(__NR_setresuid32, sys_setresuid), // 208 * (non-standard)
+ SYSXY(__NR_getresuid32, sys_getresuid), // 209 * L
- SYSB_(__NR_setresgid32, sys_setresgid, 0), // 210 *
- SYSBA(__NR_getresgid32, sys_getresgid, 0), // 211 *
+ SYSX_(__NR_setresgid32, sys_setresgid), // 210 * (non-standard)
+ SYSXY(__NR_getresgid32, sys_getresgid), // 211 * L
SYSX_(__NR_chown32, sys_chown), // 212 * P
SYSX_(__NR_setuid32, sys_setuid), // 213 *
--- valgrind/memcheck/tests/.cvsignore #1.25:1.26
@@ -50,4 +50,9 @@
realloc3
scalar
+scalar2
+scalar3
+scalar4
+scalar5
+scalar6
scalar_fork
scalar_supp
--- valgrind/memcheck/tests/Makefile.am #1.58:1.59
@@ -54,7 +54,12 @@
realloc2.stderr.exp realloc2.vgtest \
realloc3.stderr.exp realloc3.vgtest \
- scalar.stderr.exp scalar.vgtest scalar.supp \
+ scalar.stderr.exp scalar.vgtest \
+ scalar2.stderr.exp scalar2.vgtest \
+ scalar3.stderr.exp scalar3.vgtest \
+ scalar4.stderr.exp scalar4.vgtest \
+ scalar5.stderr.exp scalar5.vgtest \
+ scalar6.stderr.exp scalar6.vgtest \
scalar_fork.stderr.exp scalar_fork.vgtest \
- scalar_supp.stderr.exp scalar_supp.vgtest \
+ scalar_supp.stderr.exp scalar_supp.vgtest scalar_supp.supp \
scalar_vfork.stderr.exp scalar_vfork.vgtest \
sigaltstack.stderr.exp sigaltstack.vgtest \
@@ -86,6 +91,7 @@
nanoleak new_nothrow \
null_socket overlap \
- realloc1 realloc2 realloc3 scalar scalar_fork \
- scalar_supp scalar_vfork sigaltstack signal2 \
+ realloc1 realloc2 realloc3 \
+ scalar scalar2 scalar3 scalar4 scalar5 scalar6 \
+ scalar_fork scalar_supp scalar_vfork sigaltstack signal2 \
str_tester supp1 supp2 suppfree \
trivialleak weirdioctl \
@@ -140,4 +146,9 @@
realloc3_SOURCES = realloc3.c
scalar_SOURCES = scalar.c
+scalar2_SOURCES = scalar2.c
+scalar3_SOURCES = scalar3.c
+scalar4_SOURCES = scalar4.c
+scalar5_SOURCES = scalar5.c
+scalar6_SOURCES = scalar6.c
scalar_fork_SOURCES = scalar_fork.c
scalar_supp_SOURCES = scalar_supp.c
--- valgrind/memcheck/tests/scalar.c #1.26:1.27
@@ -9,4 +9,6 @@ int main(void)
// All __NR_xxx numbers are taken from x86
+ // 0--49
+
// __NR_restart_syscall 1 XXX ???
// (see below)
@@ -206,935 +208,4 @@ int main(void)
SY(__NR_geteuid);
- // __NR_getegid 50 --> sys_getegid16()
- GO(__NR_getegid, "0e");
- SY(__NR_getegid);
-
- // __NR_acct 51 --> sys_acct()
- GO(__NR_acct, "1s 1m");
- SY(__NR_acct, x0);
-
- // __NR_umount2 52 --> sys_umount()
- GO(__NR_umount2, "2s 1m");
- SY(__NR_umount2, x0, x0);
-
- // __NR_lock 53 --> sys_ni_syscall()
- GO(__NR_lock, "0e");
- SY(__NR_lock);
-
- // __NR_ioctl 54 --> sys_ioctl()
- #include <asm/ioctls.h>
- GO(__NR_ioctl, "3s 1m");
- SY(__NR_ioctl, x0, x0+TCSETS, x0);
-
- // __NR_fcntl 55 --> sys_fcntl()
- GO(__NR_fcntl, "3s 0m");
- SY(__NR_fcntl, x0, x0, x0);
-
- // __NR_mpx 56 --> sys_ni_syscall()
- GO(__NR_mpx, "0e");
- SY(__NR_mpx);
-
- // __NR_setpgid 57
- GO(__NR_setpgid, "2s 0m");
- SY(__NR_setpgid, x0, x0);
-
- // __NR_ulimit 58 --> sys_ni_syscall()
- GO(__NR_ulimit, "0e");
- SY(__NR_ulimit);
-
- // __NR_oldolduname 59
- // (obsolete, not handled by Valgrind)
-
- // __NR_umask 60
- GO(__NR_umask, "1s 0m");
- SY(__NR_umask, x0);
-
- // __NR_chroot 61
- GO(__NR_chroot, "1s 1m");
- SY(__NR_chroot, x0);
-
- // __NR_ustat 62
- // (deprecated, not handled by Valgrind)
-
- // __NR_dup2 63
- GO(__NR_dup2, "2s 0m");
- SY(__NR_dup2, x0, x0);
-
- // __NR_getppid 64 --> sys_getppid()
- GO(__NR_getppid, "0e");
- SY(__NR_getppid);
-
- // __NR_getpgrp 65 --> sys_getpgrp()
- GO(__NR_getpgrp, "0e");
- SY(__NR_getpgrp);
-
- // __NR_setsid 66 --> sys_setsid()
- GO(__NR_setsid, "0e");
- SY(__NR_setsid);
-
- // __NR_sigaction 67 --> sys_sigaction()
- GO(__NR_sigaction, "3s 2m");
- SY(__NR_sigaction, x0, x0+1, x0+1);
-
- // __NR_sgetmask 68
- // (Not yet handled by Valgrind)
-
- // __NR_ssetmask 69
- // (Not yet handled by Valgrind)
-
- // __NR_setreuid 70 --> sys_setreuid16()
- GO(__NR_setreuid, "2s 0m");
- SY(__NR_setreuid, x0, x0);
-
- // __NR_setregid 71 --> sys_setregid16()
- GO(__NR_setregid, "2s 0m");
- SY(__NR_setregid, x0, x0);
-
- // __NR_sigsuspend 72 --> sys_sigsuspend()
- // XXX: how do you use this function?
-// GO(__NR_sigsuspend, ".s .m");
-// SY(__NR_sigsuspend);
-
- // __NR_sigpending 73 --> sys_sigpending()
- GO(__NR_sigpending, "1s 1m");
- SY(__NR_sigpending, x0);
-
- // __NR_sethostname 74
- // (Not yet handled by Valgrind)
-
- // __NR_setrlimit 75 --> sys_setrlimit()
- GO(__NR_setrlimit, "2s 1m");
- SY(__NR_setrlimit, x0, x0);
-
- // __NR_getrlimit 76
- GO(__NR_getrlimit, "2s 1m");
- SY(__NR_getrlimit, x0, x0);
-
- // __NR_getrusage 77
- GO(__NR_getrusage, "2s 1m");
- SY(__NR_getrusage, x0, x0);
-
- // __NR_gettimeofday 78 --> sys_gettimeofday()
- GO(__NR_gettimeofday, "2s 2m");
- SY(__NR_gettimeofday, x0, x0+1);
-
- // __NR_settimeofday 79 --> sys_settimeofday()
- GO(__NR_settimeofday, "2s 2m");
- SY(__NR_settimeofday, x0, x0+1);
-
- // __NR_getgroups 80 --> sys_getgroups16()
- GO(__NR_getgroups, "2s 1m");
- SY(__NR_getgroups, x0+1, x0+1);
-
- // __NR_setgroups 81 --> sys_setgroups16()
- GO(__NR_setgroups, "2s 1m");
- SY(__NR_setgroups, x0+1, x0+1);
-
- // __NR_select 82 --> old_select()
- {
- long args[5] = { x0+8, x0+0xffffffee, x0+1, x0+1, x0+1 };
- GO(__NR_select, "1s 4m");
- SY(__NR_select, args+x0);
- }
-
- // __NR_symlink 83
- //GO(__NR_symlink, ".s .m");
- //SY(__NR_symlink);
-
- // __NR_oldlstat 84
- // (obsolete, not handled by Valgrind)
-
- // __NR_readlink 85
- //GO(__NR_readlink, ".s .m");
- //SY(__NR_readlink);
-
- // __NR_uselib 86
- // (Not yet handled by Valgrind)
-
- // __NR_swapon 87
- // (Not yet handled by Valgrind)
-
- // __NR_reboot 88
- // (Not yet handled by Valgrind)
-
- // __NR_readdir 89
- // (superseded, not handled by Valgrind)
-
- // __NR_mmap 90
- //GO(__NR_mmap, ".s .m");
- //SY(__NR_mmap);
-
- // __NR_munmap 91
- //GO(__NR_munmap, ".s .m");
- //SY(__NR_munmap);
-
- // __NR_truncate 92
- //GO(__NR_truncate, ".s .m");
- //SY(__NR_truncate);
-
- // __NR_ftruncate 93
- //GO(__NR_ftruncate, ".s .m");
- //SY(__NR_ftruncate);
-
- // __NR_fchmod 94
- //GO(__NR_fchmod, ".s .m");
- //SY(__NR_fchmod);
-
- // __NR_fchown 95 --> sys_fchown16
- GO(__NR_fchown, "3s 0m");
- SY(__NR_fchown, x0, x0, x0);
-
- // __NR_getpriority 96
- //GO(__NR_getpriority, ".s .m");
- //SY(__NR_getpriority);
-
- // __NR_setpriority 97
- //GO(__NR_setpriority, ".s .m");
- //SY(__NR_setpriority);
-
- // __NR_profil 98
- //GO(__NR_profil, ".s .m");
- //SY(__NR_profil);
-
- // __NR_statfs 99
- //GO(__NR_statfs, ".s .m");
- //SY(__NR_statfs);
-
- // __NR_fstatfs 100
- //GO(__NR_fstatfs, ".s .m");
- //SY(__NR_fstatfs);
-
- // __NR_ioperm 101
- //GO(__NR_ioperm, ".s .m");
- //SY(__NR_ioperm);
-
- // __NR_socketcall 102
- //GO(__NR_socketcall, ".s .m");
- //SY(__NR_socketcall);
-
- // __NR_syslog 103
- //GO(__NR_syslog, ".s .m");
- //SY(__NR_syslog);
-
- // __NR_setitimer 104
- //GO(__NR_setitimer, ".s .m");
- //SY(__NR_setitimer);
-
- // __NR_getitimer 105
- //GO(__NR_getitimer, ".s .m");
- //SY(__NR_getitimer);
-
- // __NR_stat 106 --> sys_newstat()
- GO(__NR_stat, "2s 2m");
- SY(__NR_stat, x0, x0);
-
- // __NR_lstat 107 --> sys_newlstat()
- GO(__NR_lstat, "2s 2m");
- SY(__NR_lstat, x0, x0);
-
- // __NR_fstat 108 --> sys_newfstat()
- GO(__NR_fstat, "2s 1m");
- SY(__NR_fstat, x0, x0);
-
- // __NR_olduname 109
- // (obsolete, not handled by Valgrind)
-
- // __NR_iopl 110
- //GO(__NR_iopl, ".s .m");
- //SY(__NR_iopl);
-
- // __NR_vhangup 111 --> sys_vhangup()
- GO(__NR_vhangup, "0e");
- SY(__NR_vhangup);
-
- // __NR_idle 112 --> sys_ni_syscall()
- GO(__NR_idle, "0e");
- SY(__NR_idle);
-
- // __NR_vm86old 113
- //GO(__NR_vm86old, ".s .m");
- //SY(__NR_vm86old);
-
- // __NR_wait4 114
- //GO(__NR_wait4, ".s .m");
- //SY(__NR_wait4);
-
- // __NR_swapoff 115
- //GO(__NR_swapoff, ".s .m");
- //SY(__NR_swapoff);
-
- // __NR_sysinfo 116
- //GO(__NR_sysinfo, ".s .m");
- //SY(__NR_sysinfo);
-
- // __NR_ipc 117
- //GO(__NR_ipc, ".s .m");
- //SY(__NR_ipc);
-
- // __NR_fsync 118
- //GO(__NR_fsync, ".s .m");
- //SY(__NR_fsync);
-
- // __NR_sigreturn 119
- //GO(__NR_sigreturn, ".s .m");
- //SY(__NR_sigreturn);
-
- // __NR_clone 120
- //GO(__NR_clone, ".s .m");
- //SY(__NR_clone);
-
- // __NR_setdomainname 121
- //GO(__NR_setdomainname, ".s .m");
- //SY(__NR_setdomainname);
-
- // __NR_uname 122
- GO(__NR_uname, "1s 1m");
- SY(__NR_uname, x0);
-
- // __NR_modify_ldt 123
- //GO(__NR_modify_ldt, ".s .m");
- //SY(__NR_modify_ldt);
-
- // __NR_adjtimex 124
- //GO(__NR_adjtimex, ".s .m");
- //SY(__NR_adjtimex);
-
- // __NR_mprotect 125
- //GO(__NR_mprotect, ".s .m");
- //SY(__NR_mprotect);
-
- // __NR_sigprocmask 126
- //GO(__NR_sigprocmask, ".s .m");
- //SY(__NR_sigprocmask);
-
- // __NR_create_module 127 --> sys_ni_syscall()
- GO(__NR_create_module, "0e");
- SY(__NR_create_module);
-
- // __NR_init_module 128
- //GO(__NR_init_module, ".s .m");
- //SY(__NR_init_module);
-
- // __NR_delete_module 129
- //GO(__NR_delete_module, ".s .m");
- //SY(__NR_delete_module);
-
- // __NR_get_kernel_syms 130 --> sys_ni_syscall()
- GO(__NR_get_kernel_syms, "0e");
- SY(__NR_get_kernel_syms);
-
- // __NR_quotactl 131
- //GO(__NR_quotactl, ".s .m");
- //SY(__NR_quotactl);
-
- // __NR_getpgid 132
- //GO(__NR_getpgid, ".s .m");
- //SY(__NR_getpgid);
-
- // __NR_fchdir 133
- //GO(__NR_fchdir, ".s .m");
- //SY(__NR_fchdir);
-
- // __NR_bdflush 134
- //GO(__NR_bdflush, ".s .m");
- //SY(__NR_bdflush);
-
- // __NR_sysfs 135
- //GO(__NR_sysfs, ".s .m");
- //SY(__NR_sysfs);
-
- // __NR_personality 136
- //GO(__NR_personality, ".s .m");
- //SY(__NR_personality);
-
- // __NR_afs_syscall 137 --> sys_ni_syscall()
- GO(__NR_afs_syscall, "0e");
- SY(__NR_afs_syscall);
-
- // __NR_setfsuid 138
- GO(__NR_setfsuid, "1s 0m");
- SY(__NR_setfsuid, x0);
-
- // __NR_setfsgid 139
- GO(__NR_setfsgid, "1s 0m");
- SY(__NR_setfsgid, x0);
-
- // __NR__llseek 140
- //GO(__NR__llseek, ".s .m");
- //SY(__NR__llseek);
-
- // __NR_getdents 141
- //GO(__NR_getdents, ".s .m");
- //SY(__NR_getdents);
-
- // __NR__newselect 142 --> sys_select()
- GO(__NR__newselect, "5s 4m");
- SY(__NR__newselect, x0+8, x0+0xffffffff, x0+1, x0+1, x0+1);
-
- // __NR_flock 143
- //GO(__NR_flock, ".s .m");
- //SY(__NR_flock);
-
- // __NR_msync 144
- //GO(__NR_msync, ".s .m");
- //SY(__NR_msync);
-
- // __NR_readv 145
- //GO(__NR_readv, ".s .m");
- //SY(__NR_readv);
-
- // __NR_writev 146
- //GO(__NR_writev, ".s .m");
- //SY(__NR_writev);
-
- // __NR_getsid 147
- //GO(__NR_getsid, ".s .m");
- //SY(__NR_getsid);
-
- // __NR_fdatasync 148
- //GO(__NR_fdatasync, ".s .m");
- //SY(__NR_fdatasync);
-
- // __NR__sysctl 149
- //GO(__NR__sysctl, ".s .m");
- //SY(__NR__sysctl);
-
- // __NR_mlock 150
- //GO(__NR_mlock, ".s .m");
- //SY(__NR_mlock);
-
- // __NR_munlock 151
- //GO(__NR_munlock, ".s .m");
- //SY(__NR_munlock);
-
- // __NR_mlockall 152
- //GO(__NR_mlockall, ".s .m");
- //SY(__NR_mlockall);
-
- // __NR_munlockall 153 --> sys_munlockall()
- GO(__NR_munlockall, "0e");
- SY(__NR_munlockall);
-
- // __NR_sched_setparam 154
- //GO(__NR_sched_setparam, ".s .m");
- //SY(__NR_sched_setparam);
-
- // __NR_sched_getparam 155
- //GO(__NR_sched_getparam, ".s .m");
- //SY(__NR_sched_getparam);
-
- // __NR_sched_setscheduler 156
- //GO(__NR_sched_setscheduler, ".s .m");
- //SY(__NR_sched_setscheduler);
-
- // __NR_sched_getscheduler 157
- //GO(__NR_sched_getscheduler, ".s .m");
- //SY(__NR_sched_getscheduler);
-
- // __NR_sched_yield 158
- //GO(__NR_sched_yield, ".s .m");
- //SY(__NR_sched_yield);
-
- // __NR_sched_get_priority_max 159
- //GO(__NR_sched_get_priority_max, ".s .m");
- //SY(__NR_sched_get_priority_max);
-
- // __NR_sched_get_priority_min 160
- //GO(__NR_sched_get_priority_min, ".s .m");
- //SY(__NR_sched_get_priority_min);
-
- // __NR_sched_rr_get_interval 161
- //GO(__NR_sched_rr_get_interval, ".s .m");
- //SY(__NR_sched_rr_get_interval);
-
- // __NR_nanosleep 162
- //GO(__NR_nanosleep, ".s .m");
- //SY(__NR_nanosleep);
-
- // __NR_mremap 163
- //GO(__NR_mremap, ".s .m");
- //SY(__NR_mremap);
-
- // __NR_setresuid 164
- //GO(__NR_setresuid, ".s .m");
- //SY(__NR_setresuid);
-
- // __NR_getresuid 165
- //GO(__NR_getresuid, ".s .m");
- //SY(__NR_getresuid);
-
- // __NR_vm86 166
- //GO(__NR_vm86, ".s .m");
- //SY(__NR_vm86);
-
- // __NR_query_module 167 --> sys_ni_syscall()
- GO(__NR_query_module, "0e");
- SY(__NR_query_module);
-
- // __NR_poll 168
- //GO(__NR_poll, ".s .m");
- //SY(__NR_poll);
-
- // __NR_nfsservctl 169
- //GO(__NR_nfsservctl, ".s .m");
- //SY(__NR_nfsservctl);
-
- // __NR_setresgid 170
- //GO(__NR_setresgid, ".s .m");
- //SY(__NR_setresgid);
-
- // __NR_getresgid 171
- //GO(__NR_getresgid, ".s .m");
- //SY(__NR_getresgid);
-
- // __NR_prctl 172
- //GO(__NR_prctl, ".s .m");
- //SY(__NR_prctl);
-
- // __NR_rt_sigreturn 173
- //GO(__NR_rt_sigreturn, ".s .m");
- //SY(__NR_rt_sigreturn);
-
- // __NR_rt_sigaction 174 --> sys_rt_sigaction()
- GO(__NR_rt_sigaction, "4s 2m");
- SY(__NR_rt_sigaction, x0, x0+1, x0+1, x0);
-
- // __NR_rt_sigprocmask 175
- //GO(__NR_rt_sigprocmask, ".s .m");
- //SY(__NR_rt_sigprocmask);
-
- // __NR_rt_sigpending 176
- //GO(__NR_rt_sigpending, ".s .m");
- //SY(__NR_rt_sigpending);
-
- // __NR_rt_sigtimedwait 177
- //GO(__NR_rt_sigtimedwait, ".s .m");
- //SY(__NR_rt_sigtimedwait);
-
- // __NR_rt_sigqueueinfo 178
- //GO(__NR_rt_sigqueueinfo, ".s .m");
- //SY(__NR_rt_sigqueueinfo);
-
- // __NR_rt_sigsuspend 179
- //GO(__NR_rt_sigsuspend, ".s .m");
- //SY(__NR_rt_sigsuspend);
-
- // __NR_pread64 180
- //GO(__NR_pread64, ".s .m");
- //SY(__NR_pread64);
-
- // __NR_pwrite64 181
- //GO(__NR_pwrite64, ".s .m");
- //SY(__NR_pwrite64);
-
- // __NR_chown 182 --> sys_chown16()
- GO(__NR_chown, "3s 1m");
- SY(__NR_chown, x0, x0, x0);
-
- // __NR_getcwd 183
- //GO(__NR_getcwd, ".s .m");
- //SY(__NR_getcwd);
-
- // __NR_capget 184
- //GO(__NR_capget, ".s .m");
- //SY(__NR_capget);
-
- // __NR_capset 185
- //GO(__NR_capset, ".s .m");
- //SY(__NR_capset);
-
- // __NR_sigaltstack 186
- //GO(__NR_sigaltstack, ".s .m");
- //SY(__NR_sigaltstack);
-
- // __NR_sendfile 187
- //GO(__NR_sendfile, ".s .m");
- //SY(__NR_sendfile);
-
- // __NR_getpmsg 188
- //GO(__NR_getpmsg, ".s .m");
- //SY(__NR_getpmsg);
-
- // __NR_putpmsg 189
- //GO(__NR_putpmsg, ".s .m");
- //SY(__NR_putpmsg);
-
- // __NR_vfork 190
- //GO(__NR_vfork, ".s .m");
- //SY(__NR_vfork);
-
- // __NR_ugetrlimit 191
- GO(__NR_ugetrlimit, "2s 1m");
- SY(__NR_ugetrlimit, x0, x0);
-
- // __NR_mmap2 192
- //GO(__NR_mmap2, ".s .m");
- //SY(__NR_mmap2);
-
- // __NR_truncate64 193
- //GO(__NR_truncate64, ".s .m");
- //SY(__NR_truncate64);
-
- // __NR_ftruncate64 194
- //GO(__NR_ftruncate64, ".s .m");
- //SY(__NR_ftruncate64);
-
- // __NR_stat64 195
- GO(__NR_stat64, "2s 2m");
- SY(__NR_stat64, x0, x0);
-
- // __NR_lstat64 196
- GO(__NR_lstat64, "2s 2m");
- SY(__NR_lstat64, x0, x0);
-
- // __NR_fstat64 197
- GO(__NR_fstat64, "2s 1m");
- SY(__NR_fstat64, x0, x0);
-
- // __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");
- SY(__NR_getuid32);
-
- // __NR_getgid32 200 --> sys_getgid()
- GO(__NR_getgid32, "0e");
- SY(__NR_getgid32);
-
- // __NR_geteuid32 201 --> sys_geteuid()
- GO(__NR_geteuid32, "0e");
- SY(__NR_geteuid32);
-
- // __NR_getegid32 202 --> sys_getegid()
- GO(__NR_getegid32, "0e");
- SY(__NR_getegid32);
-
- // __NR_setreuid32 203
- GO(__NR_setreuid32, "2s 0m");
- SY(__NR_setreuid32, x0, x0);
-
- // __NR_setregid32 204
- GO(__NR_setregid32, "2s 0m");
- SY(__NR_setregid32, x0, x0);
-
- // __NR_getgroups32 205 --> sys_getgroups()
- GO(__NR_getgroups32, "2s 1m");
- SY(__NR_getgroups32, x0+1, x0+1);
-
- // __NR_setgroups32 206 --> sys_setgroups()
- GO(__NR_setgroups32, "2s 1m");
- SY(__NR_setgroups32, x0+1, x0+1);
-
- // __NR_fchown32 207 --> sys_fchown()
- GO(__NR_fchown32, "3s 0m");
- SY(__NR_fchown32, x0, x0, x0);
-
- // __NR_setresuid32 208
- //GO(__NR_setresuid32, ".s .m");
- //SY(__NR_setresuid32);
-
- // __NR_getresuid32 209
- //GO(__NR_getresuid32, ".s .m");
- //SY(__NR_getresuid32);
-
- // __NR_setresgid32 210
- //GO(__NR_setresgid32, ".s .m");
- //SY(__NR_setresgid32);
-
- // __NR_getresgid32 211
- //GO(__NR_getresgid32, ".s .m");
- //SY(__NR_getresgid32);
-
- // __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");
- SY(__NR_setuid32, x0);
-
- // __NR_setgid32 214
- GO(__NR_setgid32, "1s 0m");
- SY(__NR_setgid32, x0);
-
- // __NR_setfsuid32 215 --> sys_setfsuid()
- GO(__NR_setfsuid32, "1s 0m");
- SY(__NR_setfsuid32, x0);
-
- // __NR_setfsgid32 216 --> sys_setfsgid()
- GO(__NR_setfsgid32, "1s 0m");
- SY(__NR_setfsgid32, x0);
-
- // __NR_pivot_root 217
- //GO(__NR_pivot_root, ".s .m");
- //SY(__NR_pivot_root);
-
- // __NR_mincore 218
- //GO(__NR_mincore, ".s .m");
- //SY(__NR_mincore);
-
- // __NR_madvise 219
- //GO(__NR_madvise, ".s .m");
- //SY(__NR_madvise);
-
- // __NR_getdents64 220
- //GO(__NR_getdents64, ".s .m");
- //SY(__NR_getdents64);
-
- // __NR_fcntl64 221
- //GO(__NR_fcntl64, ".s .m");
- //SY(__NR_fcntl64);
-
- // 222 --> sys_ni_syscall()
- GO(222, "0e");
- SY(222);
-
- // 223 --> sys_ni_syscall()
- GO(223, "0e");
- SY(223);
-
- // __NR_gettid 224
- //GO(__NR_gettid, ".s .m");
- //SY(__NR_gettid);
-
- // __NR_readahead 225
- //GO(__NR_readahead, ".s .m");
- //SY(__NR_readahead);
-
- // __NR_setxattr 226 --> sys_xattr()
- GO(__NR_setxattr, "5s 3m");
- SY(__NR_setxattr, x0, x0, x0, x0+1, x0);
-
- // __NR_lsetxattr 227 --> sys_lsetxattr()
- GO(__NR_lsetxattr, "5s 3m");
- SY(__NR_lsetxattr, x0, x0, x0, x0+1, x0);
-
- // __NR_fsetxattr 228 --> sys_fsetxattr()
- GO(__NR_fsetxattr, "5s 2m");
- SY(__NR_fsetxattr, x0, x0, x0, x0+1, x0);
-
- // __NR_getxattr 229 --> sys_getxattr()
- GO(__NR_getxattr, "4s 3m");
- SY(__NR_getxattr, x0, x0, x0, x0+1);
-
- // __NR_lgetxattr 230 --> sys_lgetxattr()
- GO(__NR_lgetxattr, "4s 3m");
- SY(__NR_lgetxattr, x0, x0, x0, x0+1);
-
- // __NR_fgetxattr 231 --> sys_fgetxattr()
- GO(__NR_fgetxattr, "4s 2m");
- SY(__NR_fgetxattr, x0, x0, x0, x0+1);
-
- // __NR_listxattr 232 --> sys_listxattr()
- GO(__NR_listxattr, "3s 2m");
- SY(__NR_listxattr, x0, x0, x0+1);
-
- // __NR_llistxattr 233 --> sys_llistxattr()
- GO(__NR_llistxattr, "3s 2m");
- SY(__NR_llistxattr, x0, x0, x0+1);
-
- // __NR_flistxattr 234 --> sys_flistxattr()
- GO(__NR_flistxattr, "3s 1m");
- SY(__NR_flistxattr, x0, x0, x0+1);
-
- // __NR_removexattr 235 --> sys_removexattr()
- GO(__NR_removexattr, "2s 2m");
- SY(__NR_removexattr, x0, x0);
-
- // __NR_lremovexattr 236 --> sys_lremovexattr()
- GO(__NR_lremovexattr, "2s 2m");
- SY(__NR_lremovexattr, x0, x0);
-
- // __NR_fremovexattr 237 --> sys_fremovexattr()
- GO(__NR_fremovexattr, "2s 1m");
- SY(__NR_fremovexattr, x0, x0);
-
- // __NR_tkill 238
- //GO(__NR_tkill, ".s .m");
- //SY(__NR_tkill);
-
- // __NR_sendfile64 239
- //GO(__NR_sendfile64, ".s .m");
- //SY(__NR_sendfile64);
-
- // __NR_futex 240
- //GO(__NR_futex, ".s .m");
- //SY(__NR_futex);
-
- // __NR_sched_setaffinity 241
- //GO(__NR_sched_setaffinity, ".s .m");
- //SY(__NR_sched_setaffinity);
-
- // __NR_sched_getaffinity 242
- //GO(__NR_sched_getaffinity, ".s .m");
- //SY(__NR_sched_getaffinity);
-
- // __NR_set_thread_area 243
- //GO(__NR_set_thread_area, ".s .m");
- //SY(__NR_set_thread_area);
-
- // __NR_get_thread_area 244
- //GO(__NR_get_thread_area, ".s .m");
- //SY(__NR_get_thread_area);
-
- // __NR_io_setup 245
- //GO(__NR_io_setup, ".s .m");
- //SY(__NR_io_setup);
-
- // __NR_io_destroy 246
- //GO(__NR_io_destroy, ".s .m");
- //SY(__NR_io_destroy);
-
- // __NR_io_getevents 247
- //GO(__NR_io_getevents, ".s .m");
- //SY(__NR_io_getevents);
-
- // __NR_io_submit 248
- //GO(__NR_io_submit, ".s .m");
- //SY(__NR_io_submit);
-
- // __NR_io_cancel 249
- //GO(__NR_io_cancel, ".s .m");
- //SY(__NR_io_cancel);
-
- // __NR_fadvise64 250
- //GO(__NR_fadvise64, ".s .m");
- //SY(__NR_fadvise64);
-
- // 251 --> sys_ni_syscall()
- GO(251, "0e");
- SY(251);
-
- // __NR_exit_group 252
-
- // __NR_lookup_dcookie 253 --> sys_lookup_dcookie()
- GO(__NR_lookup_dcookie, "4s 1m");
- SY(__NR_lookup_dcookie, x0, x0, x0, x0+1);
-
- // __NR_epoll_create 254
- //GO(__NR_epoll_create, ".s .m");
- //SY(__NR_epoll_create);
-
- // __NR_epoll_ctl 255
- //GO(__NR_epoll_ctl, ".s .m");
- //SY(__NR_epoll_ctl);
-
- // __NR_epoll_wait 256
- //GO(__NR_epoll_wait, ".s .m");
- //SY(__NR_epoll_wait);
-
- // __NR_remap_file_pages 257
- //GO(__NR_remap_file_pages, ".s .m");
- //SY(__NR_remap_file_pages);
-
- // __NR_set_tid_address 258
- //GO(__NR_set_tid_address, ".s .m");
- //SY(__NR_set_tid_address);
-
- // __NR_timer_create 259
- //GO(__NR_timer_create, ".s .m");
- //SY(__NR_timer_create);
-
- // __NR_timer_settime (__NR_timer_create+1)
- //GO(__NR_timer_settime, ".s .m");
- //SY(__NR_timer_settime);
-
- // __NR_timer_gettime (__NR_timer_create+2)
- //GO(__NR_timer_gettime, ".s .m");
- //SY(__NR_timer_gettime);
-
- // __NR_timer_getoverrun (__NR_timer_create+3)
- //GO(__NR_timer_getoverrun, ".s .m");
- //SY(__NR_timer_getoverrun);
-
- // __NR_timer_delete (__NR_timer_create+4)
- //GO(__NR_timer_delete, ".s .m");
- //SY(__NR_timer_delete);
-
- // __NR_clock_settime (__NR_timer_create+5)
- //GO(__NR_clock_settime, ".s .m");
- //SY(__NR_clock_settime);
-
- // __NR_clock_gettime (__NR_timer_create+6)
- //GO(__NR_clock_gettime, ".s .m");
- //SY(__NR_clock_gettime);
-
- // __NR_clock_getres (__NR_timer_create+7)
- //GO(__NR_clock_getres, ".s .m");
- //SY(__NR_clock_getres);
-
- // __NR_clock_nanosleep (__NR_timer_create+8)
- //GO(__NR_clock_nanosleep, ".s .m");
- //SY(__NR_clock_nanosleep);
-
- // __NR_statfs64 268
- //GO(__NR_statfs64, ".s .m");
- //SY(__NR_statfs64);
-
- // __NR_fstatfs64 269
- //GO(__NR_fstatfs64, ".s .m");
- //SY(__NR_fstatfs64);
-
- // __NR_tgkill 270
- //GO(__NR_tgkill, ".s .m");
- //SY(__NR_tgkill);
-
- // __NR_utimes 271
- //GO(__NR_utimes, ".s .m");
- //SY(__NR_utimes);
-
- // __NR_fadvise64_64 272
- //GO(__NR_fadvise64_64, ".s .m");
- //SY(__NR_fadvise64_64);
-
- // __NR_vserver 273 --> sys_ni_syscall()
- //GO(__NR_vserver, "0e");
- //SY(__NR_vserver);
-
- // __NR_mbind 274
- //GO(__NR_mbind, ".s .m");
- //SY(__NR_mbind);
-
- // __NR_get_mempolicy 275
- //GO(__NR_get_mempolicy, ".s .m");
- //SY(__NR_get_mempolicy);
-
- // __NR_set_mempolicy 276
- //GO(__NR_set_mempolicy, ".s .m");
- //SY(__NR_set_mempolicy);
-
- // __NR_mq_open 277
- //GO(__NR_mq_open, ".s .m");
- //SY(__NR_mq_open);
-
- // __NR_mq_unlink (__NR_mq_open+1)
- //GO(__NR_mq_unlink, ".s .m");
- //SY(__NR_mq_unlink);
-
- // __NR_mq_timedsend (__NR_mq_open+2)
- //GO(__NR_mq_timedsend, ".s .m");
- //SY(__NR_mq_timedsend);
-
- // __NR_mq_timedreceive (__NR_mq_open+3)
- //GO(__NR_mq_timedreceive, ".s .m");
- //SY(__NR_mq_timedreceive);
-
- // __NR_mq_notify (__NR_mq_open+4)
- //GO(__NR_mq_notify, ".s .m");
- //SY(__NR_mq_notify);
-
- // __NR_mq_getsetattr (__NR_mq_open+5)
- //GO(__NR_mq_getsetattr, ".s .m");
- //SY(__NR_mq_getsetattr);
-
- // __NR_sys_kexec_load 283 --> sys_ni_syscall()
- //GO(__NR_sys_kexec_load, "0e");
- //SY(__NR_sys_kexec_load);
-
- GO(9999, "1e");
- SY(9999);
-
// __NR_exit 1 --> sys_exit()
GO(__NR_exit, "1s 0m");
--- valgrind/memcheck/tests/scalar.stderr.exp #1.21:1.22
@@ -596,1352 +596,4 @@
-----------------------------------------------------
-----------------------------------------------------
- 50: __NR_getegid 0e
------------------------------------------------------
------------------------------------------------------
- 51: __NR_acct 1s 1m
------------------------------------------------------
-
-Syscall param acct(filename) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param acct(filename) 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
------------------------------------------------------
- 52: __NR_umount2 2s 1m
------------------------------------------------------
-
-Syscall param umount2(path) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param umount2(flags) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param umount2(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
------------------------------------------------------
- 53: __NR_lock 0e
------------------------------------------------------
------------------------------------------------------
- 54: __NR_ioctl 3s 1m
------------------------------------------------------
-
-Syscall param ioctl(fd) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param ioctl(request) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param ioctl(arg) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param ioctl(TCSET{S,SW,SF}) 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
------------------------------------------------------
- 55: __NR_fcntl 3s 0m
------------------------------------------------------
-
-Syscall param fcntl(fd) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param fcntl(cmd) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param fcntl(arg) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 56: __NR_mpx 0e
------------------------------------------------------
------------------------------------------------------
- 57: __NR_setpgid 2s 0m
------------------------------------------------------
-
-Syscall param setpgid(pid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setpgid(pgid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 58: __NR_ulimit 0e
------------------------------------------------------
------------------------------------------------------
- 60: __NR_umask 1s 0m
------------------------------------------------------
-
-Syscall param umask(mask) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 61: __NR_chroot 1s 1m
------------------------------------------------------
-
-Syscall param chroot(path) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param chroot(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
------------------------------------------------------
- 63: __NR_dup2 2s 0m
------------------------------------------------------
-
-Syscall param dup2(oldfd) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param dup2(newfd) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 64: __NR_getppid 0e
------------------------------------------------------
------------------------------------------------------
- 65: __NR_getpgrp 0e
------------------------------------------------------
------------------------------------------------------
- 66: __NR_setsid 0e
------------------------------------------------------
------------------------------------------------------
- 67: __NR_sigaction 3s 2m
------------------------------------------------------
-
-Syscall param sigaction(signum) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param sigaction(act) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param sigaction(oldact) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param sigaction(act) 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 sigaction(oldact) 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
------------------------------------------------------
- 70: __NR_setreuid 2s 0m
------------------------------------------------------
-
-Syscall param setreuid16(ruid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setreuid16(euid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 71: __NR_setregid 2s 0m
------------------------------------------------------
-
-Syscall param setregid16(rgid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setregid16(egid) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
------------------------------------------------------
- 73: __NR_sigpending 1s 1m
------------------------------------------------------
-
-Syscall param sigpending(set) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param sigpending(set) 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
------------------------------------------------------
- 75: __NR_setrlimit 2s 1m
------------------------------------------------------
-
-Syscall param setrlimit(resource) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setrlimit(rlim) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setrlimit(rlim) 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
------------------------------------------------------
- 76: __NR_getrlimit 2s 1m
------------------------------------------------------
-
-Syscall param old_getrlimit(resource) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param old_getrlimit(rlim) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param old_getrlimit(rlim) 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
------------------------------------------------------
- 77: __NR_getrusage 2s 1m
------------------------------------------------------
-
-Syscall param getrusage(who) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getrusage(usage) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getrusage(usage) 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
------------------------------------------------------
- 78: __NR_gettimeofday 2s 2m
------------------------------------------------------
-
-Syscall param gettimeofday(tv) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param gettimeofday(tz) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param gettimeofday(tv) 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 gettimeofday(tz) 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
------------------------------------------------------
- 79: __NR_settimeofday 2s 2m
------------------------------------------------------
-
-Syscall param settimeofday(tv) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param settimeofday(tz) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param settimeofday(tv) 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 settimeofday(tz) 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
------------------------------------------------------
- 80: __NR_getgroups 2s 1m
------------------------------------------------------
-
-Syscall param getgroups16(size) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getgroups16(list) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getgroups16(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
------------------------------------------------------
- 81: __NR_setgroups 2s 1m
------------------------------------------------------
-
-Syscall param setgroups16(size) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setgroups16(list) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param setgroups16(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
------------------------------------------------------
- 82: __NR_select 1s 4m
------------------------------------------------------
-
-Syscall param old_select(args) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param old_select(readfds) 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 old_select(writefds) 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 old_select(exceptfds) 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 old_select(timeout) 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
------------------------------------------------------
- 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
------------------------------------------------------
------------------------------------------------------
-112: __NR_idle 0e
------------------------------------------------------
------------------------------------------------------
-122: __NR_uname 1s 1m
------------------------------------------------------
-
-Syscall param uname(buf) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param uname(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
------------------------------------------------------
-127: __NR_create_module 0e
------------------------------------------------------
------------------------------------------------------
-130:__NR_get_kernel_syms 0e
------------------------------------------------------
------------------------------------------------------
-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........: ...
------------------------------------------------------
-142: __NR__newselect 5s 4m
------------------------------------------------------
-
-Syscall param select(n) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param select(readfds) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param select(writefds) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param select(exceptfds) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param select(timeout) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param select(readfds) 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 select(writefds) 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 select(exceptfds) 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 select(timeout) 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
------------------------------------------------------
-153: __NR_munlockall 0e
------------------------------------------------------
------------------------------------------------------
-167: __NR_query_module 0e
------------------------------------------------------
------------------------------------------------------
-174: __NR_rt_sigaction 4s 2m
------------------------------------------------------
-
-Syscall param rt_sigaction(signum) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param rt_sigaction(act) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param rt_sigaction(oldact) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param rt_sigaction(sigsetsize) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param rt_sigaction(act) 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 rt_sigaction(oldact) 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
------------------------------------------------------
-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
------------------------------------------------------
-
-Syscall param getrlimit(resource) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getrlimit(rlim) contains uninitialised byte(s)
- at 0x........: syscall (in /...libc...)
- by 0x........: __libc_start_main (...libc...)
- by 0x........: ...
-
-Syscall param getrlimit(rlim) 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
------------------------------------------------------
-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)
...
[truncated message content] |
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 17:03:51
|
CVS commit by nethercote:
Converted a couple more
M +43 -42 coregrind/vg_syscalls.c 1.195
M +20 -0 include/linux/vki.h 1.6
M +11 -8 memcheck/tests/scalar.c 1.26
M +103 -0 memcheck/tests/scalar.stderr.exp 1.21
--- valgrind/coregrind/vg_syscalls.c #1.194:1.195
@@ -2547,15 +2547,16 @@ POSTx(sys_getrlimit)
}
-PRE(getrusage)
+PREx(sys_getrusage, 0)
{
/* int getrusage (int who, struct rusage *usage); */
- PRINT("getrusage ( %d, %p )", arg1,arg2);
+ PRINT("sys_getrusage ( %d, %p )", arg1,arg2);
+ PRE_REG_READ2(long, "getrusage", int, who, struct rusage *, usage);
PRE_MEM_WRITE( "getrusage(usage)", arg2, sizeof(struct vki_rusage) );
}
-POST(getrusage)
+POSTx(sys_getrusage)
{
if (res == 0)
- VG_TRACK( post_mem_write,arg2, sizeof(struct vki_rusage) );
+ VG_TRACK( post_mem_write, arg2, sizeof(struct vki_rusage) );
}
@@ -4546,24 +4547,4 @@ POST(nanosleep)
}
-PRE(_newselect)
-{
- /* int select(int n,
- fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
- struct timeval *timeout);
- */
- PRINT("newselect ( %d, %p, %p, %p, %p )", arg1,arg2,arg3,arg4,arg5);
- if (arg2 != 0)
- PRE_MEM_READ( "newselect(readfds)",
- arg2, arg1/8 /* __FD_SETSIZE/8 */ );
- if (arg3 != 0)
- PRE_MEM_READ( "newselect(writefds)",
- arg3, arg1/8 /* __FD_SETSIZE/8 */ );
- if (arg4 != 0)
- PRE_MEM_READ( "newselect(exceptfds)",
- arg4, arg1/8 /* __FD_SETSIZE/8 */ );
- if (arg5 != 0)
- PRE_MEM_READ( "newselect(timeout)", arg5, sizeof(struct vki_timeval) );
-}
-
PREx(sys_open, MayBlock)
{
@@ -4839,5 +4820,5 @@ PRE(sched_yield)
}
-PRE(select)
+PREx(old_select, MayBlock)
{
/* struct sel_arg_struct {
@@ -4846,7 +4827,7 @@ PRE(select)
struct timeval *tvp;
};
- int old_select(struct sel_arg_struct *arg);
*/
- PRE_MEM_READ( "select(args)", arg1, 5*sizeof(UInt) );
+ PRE_REG_READ1(long, "old_select", struct sel_arg_struct *, args);
+ PRE_MEM_READ( "old_select(args)", arg1, 5*sizeof(UInt) );
{
@@ -4860,16 +4841,36 @@ PRE(select)
a5 = arg_struct[4];
- PRINT("select ( %d, %p, %p, %p, %p )", a1,a2,a3,a4,a5);
+ PRINT("old_select ( %d, %p, %p, %p, %p )", a1,a2,a3,a4,a5);
if (a2 != (Addr)NULL)
- PRE_MEM_READ( "select(readfds)", a2, a1/8 /* __FD_SETSIZE/8 */ );
+ PRE_MEM_READ( "old_select(readfds)", a2, a1/8 /* __FD_SETSIZE/8 */ );
if (a3 != (Addr)NULL)
- PRE_MEM_READ( "select(writefds)", a3, a1/8 /* __FD_SETSIZE/8 */ );
+ PRE_MEM_READ( "old_select(writefds)", a3, a1/8 /* __FD_SETSIZE/8 */ );
if (a4 != (Addr)NULL)
- PRE_MEM_READ( "select(exceptfds)", a4, a1/8 /* __FD_SETSIZE/8 */ );
+ PRE_MEM_READ( "old_select(exceptfds)", a4, a1/8 /* __FD_SETSIZE/8 */ );
if (a5 != (Addr)NULL)
- PRE_MEM_READ( "select(timeout)", a5, sizeof(struct vki_timeval) );
+ PRE_MEM_READ( "old_select(timeout)", a5, sizeof(struct vki_timeval) );
}
}
+PREx(sys_select, MayBlock)
+{
+ PRINT("sys_select ( %d, %p, %p, %p, %p )", arg1,arg2,arg3,arg4,arg5);
+ PRE_REG_READ5(long, "select",
+ int, n, vki_fd_set *, readfds, vki_fd_set *, writefds,
+ vki_fd_set *, exceptfds, struct timeval *, timeout);
+ // XXX: this possibly understates how much memory is read.
+ if (arg2 != 0)
+ PRE_MEM_READ( "select(readfds)",
+ arg2, arg1/8 /* __FD_SETSIZE/8 */ );
+ if (arg3 != 0)
+ PRE_MEM_READ( "select(writefds)",
+ arg3, arg1/8 /* __FD_SETSIZE/8 */ );
+ if (arg4 != 0)
+ PRE_MEM_READ( "select(exceptfds)",
+ arg4, arg1/8 /* __FD_SETSIZE/8 */ );
+ if (arg5 != 0)
+ PRE_MEM_READ( "select(timeout)", arg5, sizeof(struct vki_timeval) );
+}
+
PRE(setitimer)
{
@@ -6354,6 +6355,6 @@ static const struct sys_info sys_info[]
SYSX_(__NR_setrlimit, sys_setrlimit), // 75 * (SVr4,BSD4.3)
- SYSXY(__NR_getrlimit, sys_old_getrlimit), // 76 * (SVr4,BSD4.3)
- SYSBA(__NR_getrusage, sys_getrusage, 0), // 77 *
+ SYSXY(__NR_getrlimit, sys_old_getrlimit),// 76 * (SVr4,BSD4.3)
+ SYSXY(__NR_getrusage, sys_getrusage), // 77 * (SVr4,BSD4.3)
SYSXY(__NR_gettimeofday, sys_gettimeofday), // 78 * P
SYSX_(__NR_settimeofday, sys_settimeofday), // 79 * almost-P
@@ -6361,5 +6362,5 @@ static const struct sys_info sys_info[]
SYSXY(__NR_getgroups, sys_getgroups16), // 80 ## P
SYSX_(__NR_setgroups, sys_setgroups16), // 81 ## almost-P
- SYSB_(__NR_select, old_select, MayBlock), // 82 old_select
+ SYSX_(__NR_select, old_select), // 82 (x86) (4.4BSD)
SYSB_(__NR_symlink, sys_symlink, MayBlock), // 83 *
// (__NR_oldlstat, sys_lstat), // 84 * L -- obsolete
@@ -6435,5 +6436,5 @@ static const struct sys_info sys_info[]
SYSBA(__NR__llseek, sys_llseek, 0), // 140 *
SYSBA(__NR_getdents, sys_getdents, MayBlock), // 141 *
- SYSB_(__NR__newselect, sys_select, MayBlock), // 142 *
+ SYSX_(__NR__newselect, sys_select), // 142 * (4.4BSD...)
SYSB_(__NR_flock, sys_flock, MayBlock), // 143 *
SYSB_(__NR_msync, sys_msync, MayBlock), // 144 *
--- valgrind/include/linux/vki.h #1.5:1.6
@@ -81,4 +81,23 @@
//----------------------------------------------------------------------
+#undef __VKI_NFDBITS
+#define __VKI_NFDBITS (8 * sizeof(unsigned long))
+
+#undef __VKI_FD_SETSIZE
+#define __VKI_FD_SETSIZE 1024
+
+#undef __VKI_FDSET_LONGS
+#define __VKI_FDSET_LONGS (__VKI_FD_SETSIZE/__VKI_NFDBITS)
+
+#undef __VKI_FDELT
+#define __VKI_FDELT(d) ((d) / __VKI_NFDBITS)
+
+#undef __VKI_FDMASK
+#define __VKI_FDMASK(d) (1UL << ((d) % __VKI_NFDBITS))
+
+typedef struct {
+ unsigned long fds_bits [__VKI_FDSET_LONGS];
+} __vki_kernel_fd_set;
+
typedef int __vki_kernel_key_t;
@@ -87,4 +106,5 @@ typedef int __vki_kernel_key_t;
//----------------------------------------------------------------------
+typedef __vki_kernel_fd_set vki_fd_set;
typedef __vki_kernel_mode_t vki_mode_t;
typedef __vki_kernel_off_t vki_off_t;
--- valgrind/memcheck/tests/scalar.c #1.25:1.26
@@ -312,6 +312,6 @@ int main(void)
// __NR_getrusage 77
- //GO(__NR_getrusage, ".s .m");
- //SY(__NR_getrusage);
+ GO(__NR_getrusage, "2s 1m");
+ SY(__NR_getrusage, x0, x0);
// __NR_gettimeofday 78 --> sys_gettimeofday()
@@ -331,7 +331,10 @@ int main(void)
SY(__NR_setgroups, x0+1, x0+1);
- // __NR_select 82
- //GO(__NR_select, ".s .m");
- //SY(__NR_select);
+ // __NR_select 82 --> old_select()
+ {
+ long args[5] = { x0+8, x0+0xffffffee, x0+1, x0+1, x0+1 };
+ GO(__NR_select, "1s 4m");
+ SY(__NR_select, args+x0);
+ }
// __NR_symlink 83
@@ -565,7 +568,7 @@ int main(void)
//SY(__NR_getdents);
- // __NR__newselect 142
- //GO(__NR__newselect, ".s .m");
- //SY(__NR__newselect);
+ // __NR__newselect 142 --> sys_select()
+ GO(__NR__newselect, "5s 4m");
+ SY(__NR__newselect, x0+8, x0+0xffffffff, x0+1, x0+1, x0+1);
// __NR_flock 143
--- valgrind/memcheck/tests/scalar.stderr.exp #1.20:1.21
@@ -848,4 +848,23 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 77: __NR_getrusage 2s 1m
+-----------------------------------------------------
+
+Syscall param getrusage(who) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrusage(usage) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getrusage(usage) 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
+-----------------------------------------------------
78: __NR_gettimeofday 2s 2m
-----------------------------------------------------
@@ -936,4 +955,36 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 82: __NR_select 1s 4m
+-----------------------------------------------------
+
+Syscall param old_select(args) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param old_select(readfds) 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 old_select(writefds) 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 old_select(exceptfds) 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 old_select(timeout) 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
+-----------------------------------------------------
95: __NR_fchown 3s 0m
-----------------------------------------------------
@@ -1068,4 +1119,56 @@
by 0x........: ...
-----------------------------------------------------
+142: __NR__newselect 5s 4m
+-----------------------------------------------------
+
+Syscall param select(n) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(readfds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(writefds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(exceptfds) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(timeout) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param select(readfds) 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 select(writefds) 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 select(exceptfds) 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 select(timeout) 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
+-----------------------------------------------------
153: __NR_munlockall 0e
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 15:56:43
|
CVS commit by nethercote:
Add gettimeofday() to test.
M +2 -3 scalar.c 1.25
M +25 -0 scalar.stderr.exp 1.20
--- valgrind/memcheck/tests/scalar.c #1.24:1.25
@@ -316,7 +316,6 @@ int main(void)
// __NR_gettimeofday 78 --> sys_gettimeofday()
- // XXX: it succeeds when I give it two NULL pointers... kernel bug?
-// GO(__NR_gettimeofday, "2s 2m");
-// SY(__NR_gettimeofday, x0, x0);
+ GO(__NR_gettimeofday, "2s 2m");
+ SY(__NR_gettimeofday, x0, x0+1);
// __NR_settimeofday 79 --> sys_settimeofday()
--- valgrind/memcheck/tests/scalar.stderr.exp #1.19:1.20
@@ -848,4 +848,29 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 78: __NR_gettimeofday 2s 2m
+-----------------------------------------------------
+
+Syscall param gettimeofday(tv) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param gettimeofday(tz) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param gettimeofday(tv) 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 gettimeofday(tz) 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
+-----------------------------------------------------
79: __NR_settimeofday 2s 2m
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 15:55:10
|
CVS commit by nethercote:
Add missing params. Tom's nightly tests should work now.
M +5 -5 scalar.c 1.24
--- valgrind/memcheck/tests/scalar.c #1.23:1.24
@@ -39,5 +39,5 @@ int main(void)
// __NR_waitpid 7 --> sys_waitpid()
GO(__NR_waitpid, "3s 1m");
- SY(__NR_waitpid, x0-1);
+ SY(__NR_waitpid, x0, x0+1, x0);
// __NR_creat 8 --> sys_creat()
@@ -193,5 +193,5 @@ int main(void)
// __NR_setgid 46 --> sys_setgid16()
GO(__NR_setgid, "1s 0m");
- SY(__NR_setgid);
+ SY(__NR_setgid, x0);
// __NR_getgid 47 --> sys_getgid16()
@@ -552,9 +552,9 @@ int main(void)
// __NR_setfsuid 138
GO(__NR_setfsuid, "1s 0m");
- SY(__NR_setfsuid);
+ SY(__NR_setfsuid, x0);
// __NR_setfsgid 139
GO(__NR_setfsgid, "1s 0m");
- SY(__NR_setfsgid);
+ SY(__NR_setfsgid, x0);
// __NR__llseek 140
@@ -856,5 +856,5 @@ int main(void)
// __NR_setgid32 214
GO(__NR_setgid32, "1s 0m");
- SY(__NR_setgid32);
+ SY(__NR_setgid32, x0);
// __NR_setfsuid32 215 --> sys_setfsuid()
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 14:13:17
|
CVS commit by nethercote:
converted sigsuspend, rt_sigsuspend. Not very sure about them.
M +24 -8 coregrind/vg_syscalls.c 1.194
M +3 -2 memcheck/tests/scalar.c 1.23
--- valgrind/coregrind/vg_syscalls.c #1.193:1.194
@@ -5682,15 +5682,31 @@ PREx(sys_pause, MayBlock)
}
-PRE(rt_sigsuspend)
+// XXX: x86-specific
+PREx(sys_sigsuspend, MayBlock)
{
- /* int sigsuspend(const sigset_t *mask); */
- PRINT("sigsuspend ( %p )", arg1 );
+ // XXX: is this right? sys_sigsuspend prototype looks like this:
+ //
+ // int sys_sigsuspend(int history0, int history1, old_sigset_t mask)
+ //
+ PRINT("sys_sigsuspend ( %p )", arg1 );
+ PRE_REG_READ1(int, "sigsuspend", // XXX: is this right?
+ vki_old_sigset_t, mask);
if (arg1 != (Addr)NULL) {
- /* above NULL test is paranoia */
- PRE_MEM_READ( "sigsuspend(mask)", arg1, sizeof(vki_sigset_t) );
+ PRE_MEM_READ( "sigsuspend(mask)", arg1, sizeof(vki_old_sigset_t) );
}
}
-PREALIAS(sigsuspend, rt_sigsuspend);
+// XXX: x86-specific
+PREx(sys_rt_sigsuspend, MayBlock)
+{
+ // XXX: is this right? sys_rt_sigsuspend prototype looks like this:
+ //
+ // int sys_rt_sigsuspend(struct pt_regs regs)
+ PRINT("sys_rt_sigsuspend ( %p, %d )", arg1,arg2 );
+ PRE_REG_READ2(int, "rt_sigsuspend", vki_sigset_t *, mask, vki_size_t, size)
+ if (arg1 != (Addr)NULL) {
+ PRE_MEM_READ( "rt_sigsuspend(mask)", arg1, sizeof(vki_sigset_t) );
+ }
+}
PRE(rt_sigtimedwait)
@@ -6333,5 +6349,5 @@ static const struct sys_info sys_info[]
SYSX_(__NR_setreuid, sys_setreuid16), // 70 ## (BSD4.3)
SYSX_(__NR_setregid, sys_setregid16), // 71 ## (BSD4.3)
- SYSB_(__NR_sigsuspend, sys_sigsuspend, MayBlock), // 72
+ SYSX_(__NR_sigsuspend, sys_sigsuspend), // 72 () P
SYSXY(__NR_sigpending, sys_sigpending), // 73 * P
// (__NR_sethostname, sys_sethostname), // 74 * (almost P)
@@ -6463,5 +6479,5 @@ static const struct sys_info sys_info[]
SYSBA(__NR_rt_sigtimedwait, sys_rt_sigtimedwait, MayBlock), // 177 *
SYSBA(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo, 0), // 178 *
- SYSB_(__NR_rt_sigsuspend, sys_sigsuspend, MayBlock), // 179
+ SYSX_(__NR_rt_sigsuspend, sys_rt_sigsuspend), // 179 () ()
SYSBA(__NR_pread64, sys_pread64, MayBlock), // 180 *
--- valgrind/memcheck/tests/scalar.c #1.22:1.23
@@ -292,6 +292,7 @@ int main(void)
// __NR_sigsuspend 72 --> sys_sigsuspend()
- //GO(__NR_sigsuspend, ".s .m");
- //SY(__NR_sigsuspend);
+ // XXX: how do you use this function?
+// GO(__NR_sigsuspend, ".s .m");
+// SY(__NR_sigsuspend);
// __NR_sigpending 73 --> sys_sigpending()
|
|
From: Tom H. <th...@cy...> - 2004-11-14 14:10:59
|
In message <Pin...@he...>
Nicholas Nethercote <nj...@ca...> wrote:
> On Sun, 14 Nov 2004, Tom Hughes wrote:
>
> > Nightly build on alvis ( Red Hat 7.3 ) started at 2004-11-14 03:05:02 GMT
> >
> > == 188 tests, 2 stderr failures, 0 stdout failures =================
> > memcheck/tests/scalar (stderr)
>
> What's wrong with scalar?
It isn't detecting some of the undefined scalar arguments for some
reason - diff attached.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 13:42:56
|
CVS commit by nethercote:
converted a few more
M +79 -42 coregrind/vg_syscalls.c 1.193
M +9 -1 include/x86-linux/vki_arch.h 1.5
M +26 -25 memcheck/tests/scalar.c 1.22
M +136 -0 memcheck/tests/scalar.stderr.exp 1.19
--- valgrind/coregrind/vg_syscalls.c #1.192:1.193
@@ -2326,13 +2326,27 @@ POST(getdents64)
}
-PRE(getgroups)
+PREx(sys_getgroups16, 0)
+{
+ PRINT("sys_getgroups16 ( %d, %p )", arg1, arg2);
+ PRE_REG_READ2(long, "getgroups16", int, size, vki_old_gid_t *, list);
+ if (arg1 > 0)
+ PRE_MEM_WRITE( "getgroups16(list)", arg2, arg1 * sizeof(vki_old_gid_t) );
+}
+
+POSTx(sys_getgroups16)
+{
+ if (arg1 > 0 && res > 0)
+ POST_MEM_WRITE( arg2, res * sizeof(vki_old_gid_t) );
+}
+
+PREx(sys_getgroups, 0)
{
- /* int getgroups(int size, gid_t list[]); */
PRINT("getgroups ( %d, %p )", arg1, arg2);
+ PRE_REG_READ2(long, "getgroups", int, size, vki_gid_t *, list);
if (arg1 > 0)
PRE_MEM_WRITE( "getgroups(list)", arg2, arg1 * sizeof(vki_gid_t) );
}
-POST(getgroups)
+POSTx(sys_getgroups)
{
if (arg1 > 0 && res > 0)
@@ -2340,7 +2354,4 @@ POST(getgroups)
}
-PREALIAS(getgroups32, getgroups);
-POSTALIAS(getgroups32, getgroups);
-
PRE(getcwd)
{
@@ -2549,8 +2560,9 @@ POST(getrusage)
}
-PRE(gettimeofday)
+PREx(sys_gettimeofday, 0)
{
- /* int gettimeofday(struct timeval *tv, struct timezone *tz); */
- PRINT("gettimeofday ( %p, %p )",arg1,arg2);
+ PRINT("sys_gettimeofday ( %p, %p )", arg1,arg2);
+ PRE_REG_READ2(long, "gettimeofday",
+ struct timeval *, tv, struct timezone *, tz);
PRE_MEM_WRITE( "gettimeofday(tv)", arg1, sizeof(struct vki_timeval) );
if (arg2 != 0)
@@ -2558,5 +2570,5 @@ PRE(gettimeofday)
}
-POST(gettimeofday)
+POSTx(sys_gettimeofday)
{
if (res == 0) {
@@ -2567,4 +2579,16 @@ POST(gettimeofday)
}
+PREx(sys_settimeofday, 0)
+{
+ PRINT("sys_settimeofday ( %p, %p )", arg1,arg2);
+ PRE_REG_READ2(long, "settimeofday",
+ struct timeval *, tv, struct timezone *, tz);
+ PRE_MEM_READ( "settimeofday(tv)", arg1, sizeof(struct vki_timeval) );
+ if (arg2 != 0) {
+ PRE_MEM_READ( "settimeofday(tz)", arg2, sizeof(struct vki_timezone) );
+ /* maybe should warn if tz->tz_dsttime is non-zero? */
+ }
+}
+
PREx(sys_getuid16, 0)
{
@@ -4884,6 +4908,4 @@ PREx(sys_setgid, 0)
}
-PREALIAS(setgid32, setgid);
-
PREx(sys_setsid, 0)
{
@@ -4892,14 +4914,20 @@ PREx(sys_setsid, 0)
}
-PRE(setgroups)
+PREx(sys_setgroups16, 0)
+{
+ PRINT("sys_setgroups16 ( %llu, %p )", (ULong)arg1, arg2);
+ PRE_REG_READ2(long, "setgroups16", int, size, vki_old_gid_t *, list);
+ if (arg1 > 0)
+ PRE_MEM_READ( "setgroups16(list)", arg2, arg1 * sizeof(vki_old_gid_t) );
+}
+
+PREx(sys_setgroups, 0)
{
- /* int setgroups(size_t size, const gid_t *list); */
PRINT("setgroups ( %llu, %p )", (ULong)arg1, arg2);
+ PRE_REG_READ2(long, "setgroups", int, size, vki_gid_t *, list);
if (arg1 > 0)
PRE_MEM_READ( "setgroups(list)", arg2, arg1 * sizeof(vki_gid_t) );
}
-PREALIAS(setgroups32, setgroups);
-
PREx(sys_setpgid, 0)
{
@@ -4937,6 +4965,4 @@ PREx(sys_setreuid, 0)
}
-PREALIAS(setreuid32, setreuid);
-
PREx(sys_setrlimit, 0)
{
@@ -4979,15 +5005,4 @@ PREx(sys_setrlimit, 0)
}
-PRE(settimeofday)
-{
- /* int settimeofday(const struct timeval *tv, const struct timezone *tz); */
- PRINT("settimeofday ( %p, %p )",arg1,arg2);
- PRE_MEM_READ( "settimeofday(tv)", arg1, sizeof(struct vki_timeval) );
- if (arg2 != 0) {
- PRE_MEM_READ( "settimeofday(tz)", arg2, sizeof(struct vki_timezone) );
- /* maybe should warn if tz->tz_dsttime is non-zero? */
- }
-}
-
PREx(sys_setuid16, 0)
{
@@ -5752,7 +5767,7 @@ PREx(sys_sigaction, SIG_SIM)
struct old_sigaction *, oldact)
if (arg2 != (UWord)NULL)
- PRE_MEM_READ( "sigaction(act)", arg2, sizeof(struct vki_sigaction));
+ PRE_MEM_READ( "sigaction(act)", arg2, sizeof(struct vki_old_sigaction));
if (arg3 != (UWord)NULL)
- PRE_MEM_WRITE( "sigaction(oldact)", arg3, sizeof(struct vki_sigaction));
+ PRE_MEM_WRITE( "sigaction(oldact)", arg3, sizeof(struct vki_old_sigaction));
if (SIGNAL_SIMULATION)
@@ -5763,9 +5778,31 @@ POSTx(sys_sigaction)
{
if (res == 0 && arg3 != (UWord)NULL)
- POST_MEM_WRITE( arg3, sizeof(struct vki_sigaction));
+ POST_MEM_WRITE( arg3, sizeof(struct vki_old_sigaction));
}
-PREALIASx(rt_sigaction, sys_sigaction);
-POSTALIASx(rt_sigaction, sys_sigaction);
+// XXX: x86-specific
+PREx(sys_rt_sigaction, SIG_SIM)
+{
+ PRINT("sys_rt_sigaction ( %d, %p, %p, %d )", arg1,arg2,arg3,arg4);
+ PRE_REG_READ4(long, "rt_sigaction",
+ int, signum, const struct sigaction *, act,
+ struct sigaction *, oldact,
+ vki_size_t, sigsetsize);
+
+ if (arg2 != (UWord)NULL)
+ PRE_MEM_READ( "rt_sigaction(act)", arg2, sizeof(struct vki_sigaction));
+ if (arg3 != (UWord)NULL)
+ PRE_MEM_WRITE( "rt_sigaction(oldact)", arg3, sizeof(struct vki_sigaction));
+
+ // XXX: hmm... doesn't seem quite right...
+ if (SIGNAL_SIMULATION)
+ VG_(do_sys_sigaction)(tid);
+}
+
+POSTx(sys_rt_sigaction)
+{
+ if (res == 0 && arg3 != (UWord)NULL)
+ POST_MEM_WRITE( arg3, sizeof(struct vki_sigaction));
+}
PRE(sigprocmask)
@@ -6303,9 +6340,9 @@ static const struct sys_info sys_info[]
SYSXY(__NR_getrlimit, sys_old_getrlimit), // 76 * (SVr4,BSD4.3)
SYSBA(__NR_getrusage, sys_getrusage, 0), // 77 *
- SYSBA(__NR_gettimeofday, sys_gettimeofday, 0), // 78 *
- SYSB_(__NR_settimeofday, sys_settimeofday, 0), // 79 *
+ SYSXY(__NR_gettimeofday, sys_gettimeofday), // 78 * P
+ SYSX_(__NR_settimeofday, sys_settimeofday), // 79 * almost-P
- SYSBA(__NR_getgroups, sys_getgroups16, 0), // 80 ##
- SYSB_(__NR_setgroups, sys_setgroups16, 0), // 81 ##
+ SYSXY(__NR_getgroups, sys_getgroups16), // 80 ## P
+ SYSX_(__NR_setgroups, sys_setgroups16), // 81 ## almost-P
SYSB_(__NR_select, old_select, MayBlock), // 82 old_select
SYSB_(__NR_symlink, sys_symlink, MayBlock), // 83 *
@@ -6419,6 +6456,6 @@ static const struct sys_info sys_info[]
SYSBA(__NR_getresgid, sys_getresgid16, 0), // 171 ##
SYSB_(__NR_prctl, sys_prctl, MayBlock), // 172 *
- // (__NR_rt_sigreturn, sys_rt_sigreturn), // 173 () ()
- SYSBA(__NR_rt_sigaction, sys_rt_sigaction, SIG_SIM), // 174
+ // (__NR_rt_sigreturn, sys_rt_sigreturn), // 173 (x86) ()
+ SYSXY(__NR_rt_sigaction, sys_rt_sigaction), // 174 (x86) ()
SYSBA(__NR_rt_sigprocmask, sys_rt_sigprocmask, SIG_SIM), // 175 *
@@ -6459,6 +6496,6 @@ static const struct sys_info sys_info[]
SYSX_(__NR_setregid32, sys_setregid), // 204 * (BSD4.3)
- SYSBA(__NR_getgroups32, sys_getgroups, 0), // 205 *
- SYSB_(__NR_setgroups32, sys_setgroups, 0), // 206 *
+ SYSXY(__NR_getgroups32, sys_getgroups), // 205 * P
+ SYSX_(__NR_setgroups32, sys_setgroups), // 206 * almost-P
SYSX_(__NR_fchown32, sys_fchown), // 207 * (SVr4,BSD4.3)
SYSB_(__NR_setresuid32, sys_setresuid, 0), // 208 *
--- valgrind/include/x86-linux/vki_arch.h #1.4:1.5
@@ -157,5 +157,5 @@ typedef struct {
#define VKI_SS_DISABLE 2
-struct vki_sigaction {
+struct vki_old_sigaction {
// [[Nb: a 'k' prefix is added to "sa_handler" because
// bits/sigaction.h (which gets dragged in somehow via signal.h)
@@ -163,4 +163,12 @@ struct vki_sigaction {
// purposes, which we don't care about here, we use our own name.]]
__vki_sighandler_t ksa_handler;
+ vki_old_sigset_t sa_mask;
+ unsigned long sa_flags;
+ __vki_sigrestore_t sa_restorer;
+};
+
+struct vki_sigaction {
+ // [[See comment about extra 'k' above]]
+ __vki_sighandler_t ksa_handler;
unsigned long sa_flags;
__vki_sigrestore_t sa_restorer;
--- valgrind/memcheck/tests/scalar.c #1.21:1.22
@@ -314,19 +314,20 @@ int main(void)
//SY(__NR_getrusage);
- // __NR_gettimeofday 78
- //GO(__NR_gettimeofday, ".s .m");
- //SY(__NR_gettimeofday);
+ // __NR_gettimeofday 78 --> sys_gettimeofday()
+ // XXX: it succeeds when I give it two NULL pointers... kernel bug?
+// GO(__NR_gettimeofday, "2s 2m");
+// SY(__NR_gettimeofday, x0, x0);
- // __NR_settimeofday 79
- //GO(__NR_settimeofday, ".s .m");
- //SY(__NR_settimeofday);
+ // __NR_settimeofday 79 --> sys_settimeofday()
+ GO(__NR_settimeofday, "2s 2m");
+ SY(__NR_settimeofday, x0, x0+1);
- // __NR_getgroups 80
- //GO(__NR_getgroups, ".s .m");
- //SY(__NR_getgroups);
+ // __NR_getgroups 80 --> sys_getgroups16()
+ GO(__NR_getgroups, "2s 1m");
+ SY(__NR_getgroups, x0+1, x0+1);
- // __NR_setgroups 81
- //GO(__NR_setgroups, ".s .m");
- //SY(__NR_setgroups);
+ // __NR_setgroups 81 --> sys_setgroups16()
+ GO(__NR_setgroups, "2s 1m");
+ SY(__NR_setgroups, x0+1, x0+1);
// __NR_select 82
@@ -692,7 +693,7 @@ int main(void)
//SY(__NR_rt_sigreturn);
- // __NR_rt_sigaction 174
- //GO(__NR_rt_sigaction, ".s .m");
- //SY(__NR_rt_sigaction);
+ // __NR_rt_sigaction 174 --> sys_rt_sigaction()
+ GO(__NR_rt_sigaction, "4s 2m");
+ SY(__NR_rt_sigaction, x0, x0+1, x0+1, x0);
// __NR_rt_sigprocmask 175
@@ -816,11 +817,11 @@ int main(void)
SY(__NR_setregid32, x0, x0);
- // __NR_getgroups32 205
- //GO(__NR_getgroups32, ".s .m");
- //SY(__NR_getgroups32);
+ // __NR_getgroups32 205 --> sys_getgroups()
+ GO(__NR_getgroups32, "2s 1m");
+ SY(__NR_getgroups32, x0+1, x0+1);
- // __NR_setgroups32 206
- //GO(__NR_setgroups32, ".s .m");
- //SY(__NR_setgroups32);
+ // __NR_setgroups32 206 --> sys_setgroups()
+ GO(__NR_setgroups32, "2s 1m");
+ SY(__NR_setgroups32, x0+1, x0+1);
// __NR_fchown32 207 --> sys_fchown()
--- valgrind/memcheck/tests/scalar.stderr.exp #1.18:1.19
@@ -848,4 +848,67 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
-----------------------------------------------------
+ 79: __NR_settimeofday 2s 2m
+-----------------------------------------------------
+
+Syscall param settimeofday(tv) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param settimeofday(tz) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param settimeofday(tv) 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 settimeofday(tz) 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
+-----------------------------------------------------
+ 80: __NR_getgroups 2s 1m
+-----------------------------------------------------
+
+Syscall param getgroups16(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups16(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups16(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
+-----------------------------------------------------
+ 81: __NR_setgroups 2s 1m
+-----------------------------------------------------
+
+Syscall param setgroups16(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups16(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups16(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
+-----------------------------------------------------
95: __NR_fchown 3s 0m
-----------------------------------------------------
@@ -986,4 +1049,39 @@
-----------------------------------------------------
-----------------------------------------------------
+174: __NR_rt_sigaction 4s 2m
+-----------------------------------------------------
+
+Syscall param rt_sigaction(signum) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(act) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(oldact) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(sigsetsize) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param rt_sigaction(act) 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 rt_sigaction(oldact) 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
+-----------------------------------------------------
182: __NR_chown 3s 1m
-----------------------------------------------------
@@ -1160,4 +1258,42 @@
by 0x........: ...
-----------------------------------------------------
+205: __NR_getgroups32 2s 1m
+-----------------------------------------------------
+
+Syscall param getgroups(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param getgroups(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
+-----------------------------------------------------
+206: __NR_setgroups32 2s 1m
+-----------------------------------------------------
+
+Syscall param setgroups(size) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups(list) contains uninitialised byte(s)
+ at 0x........: syscall (in /...libc...)
+ by 0x........: __libc_start_main (...libc...)
+ by 0x........: ...
+
+Syscall param setgroups(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
+-----------------------------------------------------
207: __NR_fchown32 3s 0m
-----------------------------------------------------
|
|
From: Nicholas N. <nj...@ca...> - 2004-11-14 13:40:42
|
On Sun, 14 Nov 2004, Tom Hughes wrote: > Nightly build on alvis ( Red Hat 7.3 ) started at 2004-11-14 03:05:02 GMT > > == 188 tests, 2 stderr failures, 0 stdout failures ================= > memcheck/tests/scalar (stderr) What's wrong with scalar? thanks N |
|
From: <js...@ac...> - 2004-11-14 03:56:24
|
Nightly build on phoenix ( SuSE 9.1 ) started at 2004-11-14 03:50:00 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: (cpu_test failed, skipping) insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 183 tests, 2 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_fcntl (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <to...@co...> - 2004-11-14 03:25:25
|
Nightly build on dunsmere ( Fedora Core 3 ) started at 2004-11-14 03:20:03 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 188 tests, 13 stderr failures, 1 stdout failure ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/badjump (stderr) memcheck/tests/badjump2 (stderr) memcheck/tests/badpoll (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/scalar (stderr) memcheck/tests/scalar_supp (stderr) memcheck/tests/writev (stderr) none/tests/exec-sigmask (stdout) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-14 03:20:21
|
Nightly build on audi ( Red Hat 9 ) started at 2004-11-14 03:15:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 188 tests, 11 stderr failures, 0 stdout failures ================= corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/fdleak_fcntl (stderr) corecheck/tests/fdleak_ipv4 (stderr) corecheck/tests/fdleak_socketpair (stderr) memcheck/tests/badpoll (stderr) memcheck/tests/buflen_check (stderr) memcheck/tests/execve (stderr) memcheck/tests/execve2 (stderr) memcheck/tests/scalar (stderr) memcheck/tests/scalar_supp (stderr) memcheck/tests/writev (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-14 03:14:10
|
Nightly build on ginetta ( Red Hat 8.0 ) started at 2004-11-14 03:10:01 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow cpuid: valgrind ./cpuid dastest: valgrind ./dastest fpu_lazy_eflags: valgrind ./fpu_lazy_eflags insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 188 tests, 0 stderr failures, 0 stdout failures ================= |
|
From: Tom H. <th...@cy...> - 2004-11-14 03:08:58
|
Nightly build on standard ( Red Hat 7.2 ) started at 2004-11-14 03:00:08 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 188 tests, 2 stderr failures, 0 stdout failures ================= memcheck/tests/scalar (stderr) memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |
|
From: Tom H. <th...@cy...> - 2004-11-14 03:08:44
|
Nightly build on alvis ( Red Hat 7.3 ) started at 2004-11-14 03:05:02 GMT Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow insn_basic: valgrind ./insn_basic insn_cmov: valgrind ./insn_cmov insn_fpu: valgrind ./insn_fpu insn_mmx: valgrind ./insn_mmx insn_mmxext: valgrind ./insn_mmxext insn_sse: valgrind ./insn_sse insn_sse2: (cpu_test failed, skipping) int: valgrind ./int pushpopseg: valgrind ./pushpopseg rcl_assert: valgrind ./rcl_assert seg_override: valgrind ./seg_override -- Finished tests in none/tests/x86 ------------------------------------ yield: valgrind ./yield -- Finished tests in none/tests ---------------------------------------- == 188 tests, 2 stderr failures, 0 stdout failures ================= memcheck/tests/scalar (stderr) memcheck/tests/vgtest_ume (stderr) make: *** [regtest] Error 1 |