Bug 169890

Summary: WebAssembly: can mprotect ever fail?
Product: WebKit Reporter: JF Bastien <jfbastien>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: fpizlo, jfbastien, keith_miller, mark.lam, msaboff, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 159775    

JF Bastien
Reported 2017-03-20 13:59:34 PDT
WasmMemory uses mprotect and tries to handle its failure. I'm not sure it should ever fail according to the manpage for MacOS. Linux seems to allow failure if the kernel runs out of memory for its internal data structures, which seems *really* bad. In both cases I suspect we should just assert out.
Attachments
JF Bastien
Comment 1 2017-04-19 16:21:34 PDT
Fixed in other patches.
Note You need to log in before you can comment on or make changes to this bug.