[PATCH] Remove MAP_DENYWRITE FROM MAP_COPY definition

Florian Weimer fw@deneb.enyo.de
Sat Sep 3 18:58:00 GMT 2016


* Dmitrii Shcherbakov:

> Dmitrii Shcherbakov (1):
>   dl-load.h: Remove MAP_DENYWRITE from MAP_COPY definition

The patch seems to be missing, but I can guess what it looks like.

I wonder if the kernel can do a better job here.  Truncation of DSOs
is a common source of application crashes because you either get
SIGBUS immediatelly, or a crash because private writeable mappings are
cleared.  And it's not just about executable mappings, OpenJDK faces
the same issue with mapped JARs.



More information about the Libc-alpha mailing list