WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 197620
Wasm should cage the memory base pointers in structs
https://bugs.webkit.org/show_bug.cgi?id=197620
Summary
Wasm should cage the memory base pointers in structs
Keith Miller
Reported
2019-05-06 12:05:07 PDT
...
Attachments
Patch
(24.52 KB, patch)
2019-05-16 13:56 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2019-05-16 13:56:51 PDT
Created
attachment 370065
[details]
Patch
Saam Barati
Comment 2
2019-05-16 18:34:45 PDT
Comment on
attachment 370065
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=370065&action=review
r=me
> Source/JavaScriptCore/ChangeLog:11 > + Currently, we use cageConditionally; this only matters for API > + users since the web content process cannot disable primitive > + gigacage. This patch also adds a set helper for union/intersection > + of RegisterSets.
Do we have tests where Gigacage is disabled with Wasm enabled in JSC?
> Source/JavaScriptCore/wasm/WasmBinding.cpp:48 > + GPRReg scratch = wasmCallingConventionAir().prologueScratch(0);
👍🏼
> Source/JavaScriptCore/wasm/WasmMemory.cpp:-442 > - m_memory.resize(m_size, desiredSize);
Seems like this was a bug? Do we have a test?
Keith Miller
Comment 3
2019-05-16 18:54:11 PDT
Comment on
attachment 370065
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=370065&action=review
>> Source/JavaScriptCore/ChangeLog:11 >> + of RegisterSets. > > Do we have tests where Gigacage is disabled with Wasm enabled in JSC?
I don’t believe so. I’m not sure how important it is since wasn’t memory is always allocated out of the cage anyway.
>> Source/JavaScriptCore/wasm/WasmMemory.cpp:-442 >> - m_memory.resize(m_size, desiredSize); > > Seems like this was a bug? Do we have a test?
It’s not a bug. I changed the type of the container so I had to change the name of the method. There’s definitely theses that grow (I recall hitting this in the og patch).
WebKit Commit Bot
Comment 4
2019-05-16 19:21:57 PDT
Comment on
attachment 370065
[details]
Patch Clearing flags on attachment: 370065 Committed
r245432
: <
https://trac.webkit.org/changeset/245432
>
WebKit Commit Bot
Comment 5
2019-05-16 19:21:59 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2019-05-16 19:22:15 PDT
<
rdar://problem/50878478
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug