mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-12 14:20:04 +00:00
This is a follow up to r14682: When an mmap retry is done without any constraints, the kernel can place it into free or reservation segments (i.e. anywhere there is no mapping yet). In r14682 a sanity check made the hypothesis that the new mapping was in a free segment, but it does not hold at least on Linux 3.12 and 3.16 on amd64 (tested under Debian). There is no risk in allowing the mapping to end up in (what was previously) a reservation at this point, because it is also allowed. Patch by Guillaume Knispel <xilun0@gmail.com>. Fixes BZ #348269. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15538