|
Mark Wielaard |
87ec21 |
commit 266d48ed3aa5f5a6c422805d56abc5a32b90c09c
|
|
Mark Wielaard |
87ec21 |
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
|
|
Mark Wielaard |
87ec21 |
Date: Wed Jan 20 22:24:43 2016 +0000
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
Bug #358030 Support direct socket calls on x86 32bit (new in linux 4.3)
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
Patch by ronald.wahl@raritan.com.
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15764 a5019735-40e9-0310-863c-91ae7b9d1cf9
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
diff --git a/coregrind/m_syswrap/syswrap-x86-linux.c b/coregrind/m_syswrap/syswrap-x86-linux.c
|
|
Mark Wielaard |
87ec21 |
index 24d7dc1..3c80e6a 100644
|
|
Mark Wielaard |
87ec21 |
--- a/coregrind/m_syswrap/syswrap-x86-linux.c
|
|
Mark Wielaard |
87ec21 |
+++ b/coregrind/m_syswrap/syswrap-x86-linux.c
|
|
Mark Wielaard |
87ec21 |
@@ -1824,8 +1824,23 @@ static SyscallTableEntry syscall_table[] = {
|
|
Mark Wielaard |
87ec21 |
// LIN__(__NR_seccomp, sys_ni_syscall), // 354
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
LINXY(__NR_getrandom, sys_getrandom), // 355
|
|
Mark Wielaard |
87ec21 |
- LINXY(__NR_memfd_create, sys_memfd_create) // 356
|
|
Mark Wielaard |
87ec21 |
-// LIN__(__NR_bpf, sys_ni_syscall) // 357
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_memfd_create, sys_memfd_create), // 356
|
|
Mark Wielaard |
87ec21 |
+// LIN__(__NR_bpf, sys_ni_syscall), // 357
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_socket, sys_socket), // 359
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_socketpair, sys_socketpair), // 360
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_bind, sys_bind), // 361
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_connect, sys_connect), // 362
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_listen, sys_listen), // 363
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_accept4, sys_accept4), // 364
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_getsockopt, sys_getsockopt), // 365
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_setsockopt, sys_setsockopt), // 366
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_getsockname, sys_getsockname), // 367
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_getpeername, sys_getpeername), // 368
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_sendto, sys_sendto), // 369
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_sendmsg, sys_sendmsg), // 370
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_recvfrom, sys_recvfrom), // 371
|
|
Mark Wielaard |
87ec21 |
+ LINXY(__NR_recvmsg, sys_recvmsg), // 372
|
|
Mark Wielaard |
87ec21 |
+ LINX_(__NR_shutdown, sys_shutdown) // 373
|
|
Mark Wielaard |
87ec21 |
};
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
SyscallTableEntry* ML_(get_linux_syscall_entry) ( UInt sysno )
|
|
Mark Wielaard |
87ec21 |
diff --git a/include/vki/vki-scnums-x86-linux.h b/include/vki/vki-scnums-x86-linux.h
|
|
Mark Wielaard |
87ec21 |
index 5479b3e..a4e75a7 100644
|
|
Mark Wielaard |
87ec21 |
--- a/include/vki/vki-scnums-x86-linux.h
|
|
Mark Wielaard |
87ec21 |
+++ b/include/vki/vki-scnums-x86-linux.h
|
|
Mark Wielaard |
87ec21 |
@@ -392,6 +392,25 @@
|
|
Mark Wielaard |
87ec21 |
#define __NR_getrandom 355
|
|
Mark Wielaard |
87ec21 |
#define __NR_memfd_create 356
|
|
Mark Wielaard |
87ec21 |
#define __NR_bpf 357
|
|
Mark Wielaard |
87ec21 |
+#define __NR_execveat 358
|
|
Mark Wielaard |
87ec21 |
+#define __NR_socket 359
|
|
Mark Wielaard |
87ec21 |
+#define __NR_socketpair 360
|
|
Mark Wielaard |
87ec21 |
+#define __NR_bind 361
|
|
Mark Wielaard |
87ec21 |
+#define __NR_connect 362
|
|
Mark Wielaard |
87ec21 |
+#define __NR_listen 363
|
|
Mark Wielaard |
87ec21 |
+#define __NR_accept4 364
|
|
Mark Wielaard |
87ec21 |
+#define __NR_getsockopt 365
|
|
Mark Wielaard |
87ec21 |
+#define __NR_setsockopt 366
|
|
Mark Wielaard |
87ec21 |
+#define __NR_getsockname 367
|
|
Mark Wielaard |
87ec21 |
+#define __NR_getpeername 368
|
|
Mark Wielaard |
87ec21 |
+#define __NR_sendto 369
|
|
Mark Wielaard |
87ec21 |
+#define __NR_sendmsg 370
|
|
Mark Wielaard |
87ec21 |
+#define __NR_recvfrom 371
|
|
Mark Wielaard |
87ec21 |
+#define __NR_recvmsg 372
|
|
Mark Wielaard |
87ec21 |
+#define __NR_shutdown 373
|
|
Mark Wielaard |
87ec21 |
+#define __NR_userfaultfd 374
|
|
Mark Wielaard |
87ec21 |
+#define __NR_membarrier 375
|
|
Mark Wielaard |
87ec21 |
+#define __NR_mlock2 376
|
|
Mark Wielaard |
87ec21 |
|
|
Mark Wielaard |
87ec21 |
#endif /* __VKI_SCNUMS_X86_LINUX_H */
|
|
Mark Wielaard |
87ec21 |
|