]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug #357833 Setting RLIMIT_DATA to zero breaks with linux 4.5+
authorMark Wielaard <mark@klomp.org>
Thu, 21 Jan 2016 11:37:43 +0000 (11:37 +0000)
committerMark Wielaard <mark@klomp.org>
Thu, 21 Jan 2016 11:37:43 +0000 (11:37 +0000)
commit6072a5a3acbf9fb3a3d94ba8ea4c9282cce26c44
tree3d11affe0956ef761fcd7a2b84c67f6e8875db98
parent0fe0da145d43cf56a087b5ff90b88982316cd211
Bug #357833 Setting RLIMIT_DATA to zero breaks with linux 4.5+

We used to set the process datasize rlimit to zero to prevent
any internal use of brk() from having any effect. But later
linux kernels redefine RLIMIT_DATA as the size of any data
areas, including some dynamic mmap memory allocations.

See bug #357833 for the commit that went into linux 4.5
changing the definition of RLIMIT_DATA. So don't mess with
RLIMIT_DATA anymore. Just remember it for use in the syscall
wrappers.

This also cleans up some hacks around the execv and spawn wrappers.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15766
NEWS
coregrind/m_libcproc.c
coregrind/m_main.c
coregrind/m_syswrap/syswrap-generic.c
coregrind/m_syswrap/syswrap-solaris.c