From: Julian Seward Date: Sat, 5 Nov 2005 15:13:23 +0000 (+0000) Subject: Liberalise x86 clone flag handling, so it's as per amd64/ppc32. X-Git-Tag: svn/VALGRIND_3_1_0~209 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6510569558e3fd1b8973ce2e59c736530129ae15;p=thirdparty%2Fvalgrind.git Liberalise x86 clone flag handling, so it's as per amd64/ppc32. However, leave the old code in place, disabled, for documentary reasons. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5023 --- diff --git a/coregrind/m_syswrap/syswrap-x86-linux.c b/coregrind/m_syswrap/syswrap-x86-linux.c index caa1e2836b..3e804bedbf 100644 --- a/coregrind/m_syswrap/syswrap-x86-linux.c +++ b/coregrind/m_syswrap/syswrap-x86-linux.c @@ -1067,13 +1067,18 @@ PRE(sys_clone) - ??? specifies clone flags of 0x1200011. - NPTL specifies clone flags of 0x7D0F00. - The Quadrics Elan3 driver specifies clone flags of 0xF00. + - Newer Quadrics Elan3 drivers with NTPL support specify 0x410F00. Everything else is rejected. */ if ( + 1 || + /* 11 Nov 05: for the time being, disable this ultra-paranoia. + The switch below probably does a good enough job. */ (cloneflags == 0x100011 || cloneflags == 0x1200011 || cloneflags == 0x7D0F00 || cloneflags == 0x790F00 || cloneflags == 0x3D0F00 + || cloneflags == 0x410F00 || cloneflags == 0xF00 || cloneflags == 0xF21)) { /* OK */