WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
237278
Remove release assert when UI process is blocking IOSurface IOKit access
https://bugs.webkit.org/show_bug.cgi?id=237278
Summary
Remove release assert when UI process is blocking IOSurface IOKit access
Per Arne Vollan
Reported
2022-02-28 10:16:54 PST
Remove release assert in IOSurface::bytesPerRowAlignment() when UI process is blocking IOSurface IOKit access.
Attachments
Patch
(1.74 KB, patch)
2022-02-28 10:19 PST
,
Per Arne Vollan
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(1.57 KB, patch)
2022-03-01 09:23 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2022-02-28 10:19:18 PST
Created
attachment 453405
[details]
Patch
Simon Fraser (smfr)
Comment 2
2022-02-28 11:21:28 PST
Comment on
attachment 453405
[details]
Patch I'm not sure why we'd special-case this one, and not the other places where we make IOKit calls which need to be removed before we can enable blocking?
Per Arne Vollan
Comment 3
2022-02-28 12:53:18 PST
(In reply to Simon Fraser (smfr) from
comment #2
)
> Comment on
attachment 453405
[details]
> Patch > > I'm not sure why we'd special-case this one, and not the other places where > we make IOKit calls which need to be removed before we can enable blocking?
This IOKit call only takes place in the UI process. We're brokering the value to the WebContent process. Thanks for reviewing!
Darin Adler
Comment 4
2022-02-28 14:33:10 PST
Comment on
attachment 453405
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=453405&action=review
> Source/WebCore/platform/graphics/cocoa/IOSurface.mm:299 > + // 64 bytes is currently the alignment on all platforms. > + alignment = 64;
Why not just return a constant? We don’t need to call IOSurface just to feel good.
Per Arne Vollan
Comment 5
2022-02-28 14:41:34 PST
(In reply to Darin Adler from
comment #4
)
> Comment on
attachment 453405
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=453405&action=review
> > > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:299 > > + // 64 bytes is currently the alignment on all platforms. > > + alignment = 64; > > Why not just return a constant? We don’t need to call IOSurface just to feel > good.
That is a good point. I kept the IOSurface call in case the constant should change at some point. Thanks for reviewing!
EWS
Comment 6
2022-02-28 15:27:59 PST
Committed
r290618
(
247891@main
): <
https://commits.webkit.org/247891@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 453405
[details]
.
Radar WebKit Bug Importer
Comment 7
2022-02-28 15:29:15 PST
<
rdar://problem/89585043
>
Geoffrey Garen
Comment 8
2022-02-28 15:31:27 PST
Comment on
attachment 453405
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=453405&action=review
> Source/WebCore/platform/graphics/cocoa/IOSurface.mm:297 > + RELEASE_LOG_FAULT(Layers, "Sandbox does not allow IOSurface IOKit access.");
RELEASE_LOG_FAULT produces a CrashTracer report. Does this code path execute frequently? If so, it will become our top CrashTracer report (even if the user does not experience a process termination). Do we have other options for gathering whatever information we're trying to gather here?
Per Arne Vollan
Comment 9
2022-03-01 07:41:26 PST
(In reply to Geoffrey Garen from
comment #8
)
> Comment on
attachment 453405
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=453405&action=review
> > > Source/WebCore/platform/graphics/cocoa/IOSurface.mm:297 > > + RELEASE_LOG_FAULT(Layers, "Sandbox does not allow IOSurface IOKit access."); > > RELEASE_LOG_FAULT produces a CrashTracer report. Does this code path execute > frequently? If so, it will become our top CrashTracer report (even if the > user does not experience a process termination). Do we have other options > for gathering whatever information we're trying to gather here?
That is a very good point. The code path is expected to execute very infrequently, although I still think it makes sense to avoid possible crash reports. I will change this to log an error instead. Thanks for reviewing!
Per Arne Vollan
Comment 10
2022-03-01 09:23:27 PST
Reopening to attach new patch.
Per Arne Vollan
Comment 11
2022-03-01 09:23:28 PST
Created
attachment 453503
[details]
Patch
EWS
Comment 12
2022-03-01 14:07:51 PST
Committed
r290675
(
247946@main
): <
https://commits.webkit.org/247946@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 453503
[details]
.
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