[PATCH] mprotect segments with extra PROT_WRITE bit when DT_TEXTREL bit is set
Fangrui Song
maskray@google.com
Wed Aug 29 19:43:00 GMT 2018
On 2018-08-29, Florian Weimer wrote:
>On 08/23/2018 07:52 AM, Fangrui Song wrote:
>>
>> Â Â Â Â * elf/dl-reloc.c (_dl_relocate_object): __mprotect with extra
>> Â Â Â Â PROT_WRITE bit.
>
>This needs a bug in Bugzilla (is it bug 20480?), reference in the
>ChangeLog entry, and, ideally, a regression test.
>
>I can see that the current code has a problem, but I assume we do
>things this way because we want to create an RWX mapping, even
>temporarily. System security policy may prevent the creation of such
>mappings. We would have have to flip between RW and RWX protection
>flags around IFUNC handlers to fix that.
>
>Thanks,
>Florian
Thank you for referring to 20480! I have replied there.
--
宿¹ç¿
More information about the Libc-alpha
mailing list