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
|
2
(1) |
|
3
(3) |
4
(7) |
5
|
6
(1) |
7
(3) |
8
(4) |
9
(2) |
|
10
|
11
|
12
|
13
|
14
|
15
|
16
(1) |
|
17
(4) |
18
(2) |
19
(1) |
20
(1) |
21
(2) |
22
(4) |
23
(2) |
|
24
(1) |
25
|
26
(5) |
27
(2) |
28
(3) |
29
(1) |
30
|
Author: iraisr
Date: Tue Apr 19 16:57:13 2016
New Revision: 15862
Log:
Solaris: Add syscall wrapper for sysfs(84)
Fixes BZ#361926
Modified:
trunk/NEWS
trunk/coregrind/m_syswrap/syswrap-solaris.c
trunk/include/vki/vki-scnums-solaris.h
trunk/include/vki/vki-solaris.h
trunk/memcheck/tests/solaris/scalar.c
trunk/memcheck/tests/solaris/scalar.stderr.exp
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Tue Apr 19 16:57:13 2016
@@ -92,6 +92,7 @@
360752 raise the number of reserved fds in m_main.c from 10 to 12
361354 ppc64[le]: wire up separate socketcalls system calls
361226 s390x: risbgn (EC59) not implemented
+361926 Unhandled Solaris syscall: sysfs(84)
n-i-bz Fix incorrect (or infinite loop) unwind on RHEL7 x86 and amd64
n-i-bz massif --pages-as-heap=yes does not report peak caused by mmap+munmap
Modified: trunk/coregrind/m_syswrap/syswrap-solaris.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-solaris.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-solaris.c Tue Apr 19 16:57:13 2016
@@ -951,6 +951,7 @@
#endif /* SOLARIS_LWP_NAME_SYSCALL */
DECL_TEMPLATE(solaris, sys_privsys);
DECL_TEMPLATE(solaris, sys_ucredsys);
+DECL_TEMPLATE(solaris, sys_sysfs);
DECL_TEMPLATE(solaris, sys_getmsg);
DECL_TEMPLATE(solaris, sys_putmsg);
DECL_TEMPLATE(solaris, sys_lstat);
@@ -4556,6 +4557,51 @@
}
}
+PRE(sys_sysfs)
+{
+ /* Kernel: int sysfs(int opcode, long a1, long a2); */
+ PRINT("sys_sysfs ( %ld, %ld, %ld )", SARG1, SARG2, ARG3);
+
+ switch (ARG1 /*opcode*/) {
+ case VKI_GETFSIND:
+ /* Libc: int sysfs(int opcode, const char *fsname); */
+ PRE_REG_READ2(long, SC2("sysfs", "getfsind"), int, opcode,
+ const char *, fsname);
+ PRE_MEM_RASCIIZ("sysfs(fsname)", ARG2);
+ break;
+ case VKI_GETFSTYP:
+ /* Libc: int sysfs(int opcode, int fs_index, char *buf); */
+ PRE_REG_READ3(long, SC2("sysfs", "getfstyp"), int, opcode,
+ int, fs_index, char *, buf);
+ PRE_MEM_WRITE("sysfs(buf)", ARG3, VKI_FSTYPSZ + 1);
+ break;
+ case VKI_GETNFSTYP:
+ /* Libc: int sysfs(int opcode); */
+ PRE_REG_READ1(long, SC2("sysfs", "getnfstyp"), int, opcode);
+ break;
+ default:
+ VG_(unimplemented)("Syswrap of the sysfs call with opcode %ld.", SARG1);
+ /*NOTREACHED*/
+ break;
+ }
+}
+
+POST(sys_sysfs)
+{
+ switch (ARG1 /*opcode*/) {
+ case VKI_GETFSIND:
+ case VKI_GETNFSTYP:
+ break;
+ case VKI_GETFSTYP:
+ POST_MEM_WRITE(ARG3, VG_(strlen)((HChar *) ARG3) + 1);
+ break;
+ default:
+ vg_assert(0);
+ break;
+ }
+}
+
+
PRE(sys_getmsg)
{
/* int getmsg(int fildes, struct strbuf *ctlptr, struct strbuf *dataptr,
@@ -10392,6 +10438,7 @@
GENXY(__NR_getdents, sys_getdents), /* 81 */
SOLXY(__NR_privsys, sys_privsys), /* 82 */
SOLXY(__NR_ucredsys, sys_ucredsys), /* 83 */
+ SOLXY(__NR_sysfs, sys_sysfs), /* 84 */
SOLXY(__NR_getmsg, sys_getmsg), /* 85 */
SOLX_(__NR_putmsg, sys_putmsg), /* 86 */
#if defined(SOLARIS_OLD_SYSCALLS)
Modified: trunk/include/vki/vki-scnums-solaris.h
==============================================================================
--- trunk/include/vki/vki-scnums-solaris.h (original)
+++ trunk/include/vki/vki-scnums-solaris.h Tue Apr 19 16:57:13 2016
@@ -138,7 +138,7 @@
#define __NR_getdents SYS_getdents
#define __NR_privsys SYS_privsys
#define __NR_ucredsys SYS_ucredsys
-//#define __NR_sysfs SYS_sysfs
+#define __NR_sysfs SYS_sysfs
#define __NR_getmsg SYS_getmsg
#define __NR_putmsg SYS_putmsg
#define __NR_setgroups SYS_setgroups
Modified: trunk/include/vki/vki-solaris.h
==============================================================================
--- trunk/include/vki/vki-solaris.h (original)
+++ trunk/include/vki/vki-solaris.h Tue Apr 19 16:57:13 2016
@@ -564,6 +564,13 @@
#define vki_namefd namefd
+#include <sys/fstyp.h>
+#define VKI_FSTYPSZ FSTYPSZ
+#define VKI_GETFSIND GETFSIND
+#define VKI_GETFSTYP GETFSTYP
+#define VKI_GETNFSTYP GETNFSTYP
+
+
#include <sys/ioccom.h>
#define _VKI_IOC_DIR(x) ((x) & (IOC_VOID | IOC_OUT | IOC_IN))
#define _VKI_IOC_SIZE(x) (((x) >> 16) & IOCPARM_MASK)
Modified: trunk/memcheck/tests/solaris/scalar.c
==============================================================================
--- trunk/memcheck/tests/solaris/scalar.c (original)
+++ trunk/memcheck/tests/solaris/scalar.c Tue Apr 19 16:57:13 2016
@@ -8,6 +8,7 @@
#include <sys/acl.h>
#include <sys/door.h>
#include <sys/fcntl.h>
+#include <sys/fstyp.h>
#include <sys/lwp.h>
#include <sys/mman.h>
#include <sys/mount.h>
@@ -461,14 +462,35 @@
static void sys_ucredsys(void)
{
GO(SYS_ucredsys, "(UCREDSYS_UCREDGET) 3s 1m");
- SY(SYS_ucredsys, x0 + 0, x0, x0 + 1 ); FAIL;
+ SY(SYS_ucredsys, x0 + 0, x0, x0 + 1); FAIL;
}
__attribute__((noinline))
static void sys_ucredsys2(void)
{
GO(SYS_ucredsys, "(UCREDSYS_GETPEERUCRED) 3s 1m");
- SY(SYS_ucredsys, x0 + 1, x0 - 1, x0 + 1 ); FAILx(EBADF);
+ SY(SYS_ucredsys, x0 + 1, x0 - 1, x0 + 1); FAILx(EBADF);
+}
+
+__attribute__((noinline))
+static void sys_sysfs(void)
+{
+ GO(SYS_sysfs, "(GETFSIND) 2s 1m");
+ SY(SYS_sysfs, x0 + GETFSIND, x0 + 1); FAIL;
+}
+
+__attribute__((noinline))
+static void sys_sysfs2(void)
+{
+ GO(SYS_sysfs, "(GETFSTYP) 3s 1m");
+ SY(SYS_sysfs, x0 + GETFSTYP, x0, x0 + 1); FAIL;
+}
+
+__attribute__((noinline))
+static void sys_sysfs3(void)
+{
+ GO(SYS_sysfs, "(GETNFSTYP) 1s 0m");
+ SY(SYS_sysfs, x0 + GETNFSTYP); SUCC;
}
__attribute__((noinline))
@@ -1787,7 +1809,9 @@
sys_ucredsys2();
/* SYS_sysfs 84 */
- /* XXX Missing wrapper. */
+ sys_sysfs();
+ sys_sysfs2();
+ sys_sysfs3();
/* SYS_getmsg 85 */
GO(SYS_getmsg, "4s 1m");
Modified: trunk/memcheck/tests/solaris/scalar.stderr.exp
==============================================================================
--- trunk/memcheck/tests/solaris/scalar.stderr.exp (original)
+++ trunk/memcheck/tests/solaris/scalar.stderr.exp Tue Apr 19 16:57:13 2016
@@ -1496,6 +1496,41 @@
Address 0x........ is not stack'd, malloc'd or (recently) free'd
---------------------------------------------------------
+ 84: SYS_sysfs (GETFSIND) 2s 1m
+---------------------------------------------------------
+Syscall param sysfs_getfsind(opcode) contains uninitialised byte(s)
+ ...
+
+Syscall param sysfs_getfsind(fsname) contains uninitialised byte(s)
+ ...
+
+Syscall param sysfs(fsname) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+---------------------------------------------------------
+ 84: SYS_sysfs (GETFSTYP) 3s 1m
+---------------------------------------------------------
+Syscall param sysfs_getfstyp(opcode) contains uninitialised byte(s)
+ ...
+
+Syscall param sysfs_getfstyp(fs_index) contains uninitialised byte(s)
+ ...
+
+Syscall param sysfs_getfstyp(buf) contains uninitialised byte(s)
+ ...
+
+Syscall param sysfs(buf) points to unaddressable byte(s)
+ ...
+ Address 0x........ is not stack'd, malloc'd or (recently) free'd
+
+---------------------------------------------------------
+ 84: SYS_sysfs (GETNFSTYP) 1s 0m
+---------------------------------------------------------
+Syscall param sysfs_getnfstyp(opcode) contains uninitialised byte(s)
+ ...
+
+---------------------------------------------------------
85: SYS_getmsg 4s 1m
---------------------------------------------------------
Syscall param getmsg(fildes) contains uninitialised byte(s)
|