REOPENED 214986
Compute number of PAC bits from what the OS says its address space is
https://bugs.webkit.org/show_bug.cgi?id=214986
Summary Compute number of PAC bits from what the OS says its address space is
Keith Miller
Reported 2020-07-30 13:41:36 PDT
Compute number of PAC bits from what the OS says its address space is
Attachments
Patch (3.45 KB, patch)
2020-07-30 13:45 PDT, Keith Miller
no flags
Patch for landing (3.33 KB, patch)
2020-07-30 14:39 PDT, Keith Miller
no flags
Keith Miller
Comment 1 2020-07-30 13:45:09 PDT
Saam Barati
Comment 2 2020-07-30 14:11:57 PDT
Comment on attachment 405609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405609&action=review > Source/WTF/wtf/PtrTag.h:34 > +#if CPU(ARM64E) && __has_include(<mach/arm/vm_param.h>) I feel like this should be DARWIN based, w/ an assert we have the header
Saam Barati
Comment 3 2020-07-30 14:15:43 PDT
Comment on attachment 405609 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=405609&action=review > Source/WTF/wtf/PtrTag.h:36 > +constexpr unsigned maximumNumberOfPointerAuthenticationBits = 64 - getMSBSetConstexpr(MACH_VM_MAX_ADDRESS_RAW); is this off by 1?
Saam Barati
Comment 4 2020-07-30 14:36:21 PDT
I suggested to Keith to just do 64 - OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH)
Keith Miller
Comment 5 2020-07-30 14:39:58 PDT
Created attachment 405622 [details] Patch for landing
Keith Miller
Comment 6 2020-07-30 14:40:05 PDT
(In reply to Saam Barati from comment #4) > I suggested to Keith to just do 64 - OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH) Done.
EWS
Comment 7 2020-07-30 15:26:06 PDT
Committed r265113: <https://trac.webkit.org/changeset/265113> All reviewed patches have been landed. Closing bug and clearing flags on attachment 405622 [details].
Radar WebKit Bug Importer
Comment 8 2020-07-30 15:27:24 PDT
Ryan Haddad
Comment 9 2020-07-30 16:24:22 PDT
This change broke the Windows build, as EWS predicted: C:\cygwin\worker\win10-release\build\WebKitBuild\Release\DerivedSources\ForwardingHeaders\wtf/CagedPtr.h(43,1): error C2220: the following warning is treated as an error [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\worker\win10-release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : see reference to class template instantiation 'WTF::CagedPtr<Gigacage::Primitive,void,true,WTF::DumbPtrTraits<T>>' being compiled [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\worker\win10-release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : with [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\worker\win10-release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : [ [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\worker\win10-release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : T=void [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj] C:\cygwin\worker\win10-release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : ] [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor.vcxproj]
Keith Miller
Comment 10 2020-07-30 17:19:12 PDT
(In reply to Ryan Haddad from comment #9) > This change broke the Windows build, as EWS predicted: > C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\DerivedSources\ForwardingHeaders\wtf/ > CagedPtr.h(43,1): error C2220: the following warning is treated as an error > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] > C:\cygwin\worker\win10- > release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : see > reference to class template instantiation > 'WTF::CagedPtr<Gigacage::Primitive,void,true,WTF::DumbPtrTraits<T>>' being > compiled > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] > C:\cygwin\worker\win10- > release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : > with > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] > C:\cygwin\worker\win10- > release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : > [ > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] > C:\cygwin\worker\win10- > release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : > T=void > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] > C:\cygwin\worker\win10- > release\build\Source\JavaScriptCore\runtime\ArrayBuffer.h(61): message : > ] > [C:\cygwin\worker\win10- > release\build\WebKitBuild\Release\Source\JavaScriptCore\LLIntOffsetsExtractor > .vcxproj] Should be fixed with r265122.
WebKit Commit Bot
Comment 11 2020-08-01 14:47:03 PDT
Re-opened since this is blocked by bug 215065
Note You need to log in before you can comment on or make changes to this bug.