aboutsummaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2016-01-15 11:13:35 -0800
committerDimitry Ivanov <dimitry@google.com>2016-01-20 20:57:47 -0800
commitf45b0e9edee72e97106c4b3d393b9bf1582303b3 (patch)
tree4058875667899bec12774f4843a0e123aa7c4b6c /libc/stdio/stdio.cpp
parentdf2f5fbe6f3d3937c3caf95138e43ee15f6d8497 (diff)
Do not unmap reserved region on dlclose
dlclose used to unmap the part of the reserved region for ANDROID_DLEXT_RESERVED_ADDRESS that was neccessary to map PT_LOAD segments. With this change dlclose replaces mapped PT_LOAD segments with a PROT_NONE, MAP_ANONYMOUS | MAP_NORESERVE. Previously caller was unmapping the reserved region after the failed dlclose which led to race condition when someone else reused the region freed by dlclose but before the unmap by the chromium code. Bug: http://code.google.com/p/chromium/issues/detail?id=568880 Change-Id: I0f5eaa2bf6641f83dde469b631c518482acc59a2
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions