|
From: <sv...@va...> - 2015-02-18 15:46:27
|
Author: sewardj
Date: Wed Feb 18 15:46:19 2015
New Revision: 14946
Log:
Correctly handle prctl(VKI_PR_SET_PTRACER, ..) so as to avoid false
positives (eg when running Wine).
Modified:
trunk/coregrind/m_syswrap/syswrap-linux.c
trunk/include/vki/vki-linux.h
Modified: trunk/coregrind/m_syswrap/syswrap-linux.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-linux.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c Wed Feb 18 15:46:19 2015
@@ -1015,6 +1015,9 @@
case VKI_PR_SET_ENDIAN:
PRE_REG_READ2(int, "prctl", int, option, int, value);
break;
+ case VKI_PR_SET_PTRACER:
+ PRE_REG_READ2(int, "prctl", int, option, int, ptracer_process_ID);
+ break;
default:
PRE_REG_READ5(long, "prctl",
int, option, unsigned long, arg2, unsigned long, arg3,
Modified: trunk/include/vki/vki-linux.h
==============================================================================
--- trunk/include/vki/vki-linux.h (original)
+++ trunk/include/vki/vki-linux.h Wed Feb 18 15:46:19 2015
@@ -2506,6 +2506,7 @@
# define VKI_PR_ENDIAN_BIG 0
# define VKI_PR_ENDIAN_LITTLE 1 /* True little endian mode */
# define VKI_PR_ENDIAN_PPC_LITTLE 2 /* "PowerPC" pseudo little endian */
+#define VKI_PR_SET_PTRACER 0x59616d61
//----------------------------------------------------------------------
// From linux-2.6.19/include/linux/usbdevice_fs.h
|