RESOLVED FIXED 218269
Use _CFURLConnectionSetFrameworkStubs for SecItemShim instead of DYLD_INTERPOSE on Apple Silicon Macs
https://bugs.webkit.org/show_bug.cgi?id=218269
Summary Use _CFURLConnectionSetFrameworkStubs for SecItemShim instead of DYLD_INTERPO...
Alex Christensen
Reported 2020-10-27 18:23:23 PDT
Use _CFURLConnectionSetFrameworkStubs instead of DYLD_INTERPOSE on Apple Silicon Macs
Attachments
Patch (5.33 KB, patch)
2020-10-27 18:32 PDT, Alex Christensen
darin: review+
Alex Christensen
Comment 1 2020-10-27 18:32:56 PDT
Darin Adler
Comment 2 2020-10-27 18:44:02 PDT
Comment on attachment 412493 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=412493&action=review > Source/WebKit/Shared/mac/SecItemShim.cpp:146 > -#if PLATFORM(IOS_FAMILY) > +#if PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && !CPU(X86_64)) How about this instead: #if !CPU(X86_64) It doesn’t seem like we need IOS_FAMILY vs. MAC here. > Source/WebKit/Shared/mac/SecItemShim.cpp:158 > -#if PLATFORM(MAC) > +#if PLATFORM(MAC) && CPU(X86_64) How about this instead: #if CPU(X86_64) Or: #else It doesn’t seem like we need IOS_FAMILY vs. MAC here.
mitz
Comment 3 2020-10-27 18:49:23 PDT
Comment on attachment 412493 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=412493&action=review >> Source/WebKit/Shared/mac/SecItemShim.cpp:146 >> +#if PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && !CPU(X86_64)) > > How about this instead: > > #if !CPU(X86_64) > > It doesn’t seem like we need IOS_FAMILY vs. MAC here. I believe the iOS Simulator is x86_64 but doesn’t have the interposing shim.
Alex Christensen
Comment 4 2020-10-27 20:04:06 PDT
Radar WebKit Bug Importer
Comment 5 2020-10-27 20:05:18 PDT
Sam Weinig
Comment 6 2020-10-28 10:39:17 PDT
I would propose we use a more clear USE(DYLD_INTERPOSE_FOR_SEC_ITEM_SHIM) or something like that.
Alex Christensen
Comment 7 2020-10-28 21:53:16 PDT
I would propose we stop using DYLD_INTERPOSE entirely and replace it with _CFURLConnectionSetFrameworkStubs in the short term and a per-NSURLSession solution I have yet to write in the long term. Given the nature of this radar, though, I wanted the absolute minimum risk and the easiest cherry picking to the branch.
Note You need to log in before you can comment on or make changes to this bug.