Summary: | Add assertion to check whether shm files have maximum FileProtection of CompleteUnlessOpen | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sihui Liu <sihui_liu> | ||||
Component: | New Bugs | Assignee: | Sihui Liu <sihui_liu> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | achristensen, benjamin, cdumez, cgarcia, cmarcelo, commit-queue, dbates, ews-watchlist, ggaren, koivisto, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=222054 | ||||||
Attachments: |
|
Description
Sihui Liu
2019-04-29 15:11:27 PDT
Created attachment 368502 [details]
Patch
Comment on attachment 368502 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=368502&action=review > Source/WebCore/platform/sql/SQLiteDatabase.cpp:154 > + RELEASE_ASSERT(FileSystem::isSafeToUseMemoryMapForPath(shmFileName)); Why not just call makeSafeToUseMemoryMapForPath? (In reply to Alex Christensen from comment #3) > Comment on attachment 368502 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=368502&action=review > > > Source/WebCore/platform/sql/SQLiteDatabase.cpp:154 > > + RELEASE_ASSERT(FileSystem::isSafeToUseMemoryMapForPath(shmFileName)); > > Why not just call makeSafeToUseMemoryMapForPath? If the crash is caused by the shm file being unsafe for mmap, we probably need change in sqlite instead of WebKit to ensure shm file is in correct protection class when the file is being used. Comment on attachment 368502 [details]
Patch
r=me
Comment on attachment 368502 [details] Patch Clearing flags on attachment: 368502 Committed r244921: <https://trac.webkit.org/changeset/244921> All reviewed patches have been landed. Closing bug. |