This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove MAP_DENYWRITE FROM MAP_COPY definition


* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]