Saturday, October 08, 2022

Re: valgrind: mark broken

Let's leave uebayasi out of this.

On Sat, Oct 08, 2022 at 03:34:37PM +0900, Masato Asou wrote:
> From: Stefan Sperling <stsp@stsp.name>
> Date: Fri, 7 Oct 2022 10:27:47 +0200
>
> > On Fri, Oct 07, 2022 at 02:37:15PM +0900, Masato Asou wrote:
> >> Hi tb and ports,
> >>
> >> I have adapted the system call number definition to the new syscall.h
> >>
> >> comments, ok?
> >
> > Thank you!
> >
> > I have tried running devel/got in valgrind and it fails because
> > the __realpath syscall is missing. Could this be fixed?
> >
> > --59025-- WARNING: unhandled syscall: 115
> > --59025-- You may be able to write your own handler.
> > --59025-- Read the file README_MISSING_SYSCALL_OR_IOCTL.
> >
> > In sys/kern/syscalls.master:
> >
> > 115 STD { int sys___realpath(const char *pathname, \
> > char *resolved); }
> >
>
> I was fixed above problem.
> New diff is below:

There are still a few syscall numbers that are missing or not quite
right. I'll need a bit of time to think about the rest of your diff.

--- vki-scnums-openbsd.h Sat Oct 8 11:32:14 2022
+++ syscall.h Sat Oct 8 11:46:11 2022
@@ -113,6 +113,8 @@
#define __NR_sendsyslog 112
#define __NR_unveil 114
#define __NR___realpath 115
+#define __NR_recvmmsg 116
+#define __NR_sendmmsg 117
#define __NR_getsockopt 118
#define __NR_thrkill 119
#define __NR_readv 120
@@ -136,12 +138,14 @@
#define __NR_quotactl 148
#define __NR_ypconnect 150
#define __NR_nfssvc 155
+#define __NR_mimmutable 159
#define __NR_getfh 161
#define __NR___tmpfd 164
#define __NR_sysarch 165
#define __NR_lseek 166
#define __NR_truncate 167
-#define __NR_pread 173 /* XXX 169 */
+#define __NR_ftruncate 168
+#define __NR_pread 169
#define __NR_pwrite 170
#define __NR_preadv 171
#define __NR_pwritev 172
@@ -157,8 +161,9 @@
#define __NR_setrlimit 195
#define __NR_pad_mmap 197
#define __NR___syscall 198
+#define __NR_pad_lseek 199
#define __NR_pad_truncate 200
-#define __NR_ftruncate 201
+#define __NR_pad_ftruncate 201
#define __NR_sysctl 202
#define __NR_mlock 203
#define __NR_munlock 204

No comments:

Post a Comment