[Webkit-unassigned] [Bug 236670] New: OSAllocatorPosix::tryReserveUncommittedAligned() should not use PROT_NONE on non-linux platforms
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 15 14:41:04 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=236670
Bug ID: 236670
Summary: OSAllocatorPosix::tryReserveUncommittedAligned()
should not use PROT_NONE on non-linux platforms
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: yoshiaki.jitsukawa at sony.com
OSAllocatorPosix::tryReserveUncommittedAligned() should not use PROT_NONE on non-linux platforms.
Only on linux PROT_NONE is used for deccommitted pages. That is, protection flags are set on commit() only on Linux.
https://github.com/WebKit/WebKit/blob/9067a50/Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp#L228
However in tryReserveUncommittedAligned() PROT_NONE is used for platforms other than
#if PLATFORM(MAC) || USE(APPLE_INTERNAL_SDK),
which may result in protection faults because appropriate flags won't be set on commit().
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220215/fa2985d8/attachment.htm>
More information about the webkit-unassigned
mailing list