Closed Dadoum closed 1 year ago
macOS forbids RWX pages, and to circumvent this limitation I wanted to see if blink could have RWX pages (Read+Write+Execute). But here is what happens:
I2022-12-27T15:04:32.097045:blink/memorymalloc.c:612:87752 mprotect(0x100080600000 [0x188880600000], 0x4000, 7) failed
Anyway, thanks for your awesome work!
Note: Putting prot &= ~PROT_EXEC; before protecting seems to work.
prot &= ~PROT_EXEC;
Your recommendation sounds like the right thing to do here. I'm going to push a fix. Let us know if it doesn't address the issue for you!
macOS forbids RWX pages, and to circumvent this limitation I wanted to see if blink could have RWX pages (Read+Write+Execute). But here is what happens:
Anyway, thanks for your awesome work!