Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address kernel MIG sandbox telemetry #11777

Conversation

pvollan
Copy link
Contributor

@pvollan pvollan commented Mar 21, 2023

0850093

Address kernel MIG sandbox telemetry
https://bugs.webkit.org/show_bug.cgi?id=254234
rdar://106829883

Reviewed by Brent Fulgham.

Address kernel MIG sandbox telemetry in the GPU and Network process. This patch also enforces the filters.

* Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
* Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
* Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:

Canonical link: https://commits.webkit.org/263551@main

e3caf66

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  wincairo
βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ§ͺ wpe-wk2
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ›  gtk
βœ… πŸ§ͺ ios-wk2-wpt βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk2 βœ… πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  tv-sim
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch
βœ… πŸ›  watch-sim

@pvollan pvollan self-assigned this Mar 21, 2023
@pvollan pvollan added the WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore). label Mar 21, 2023
Copy link
Contributor

@brentfulgham brentfulgham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, but please consider whether we should generate local reports, too. I think we maybe should...

@@ -1002,14 +1002,17 @@
(when (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'mach-kernel-endpoint))
(allow mach-kernel-endpoint
(apply-message-filter
(allow mach-message-send (with report) (with telemetry))
(deny mach-message-send (with telemetry))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not want a report if we deny the message-send? Seems like if we are willing to pay the cost of telemetry, we should try to generate a report, too? Or do you think that will be a perf hit?

@@ -694,10 +694,11 @@
(when (and (equal? (param "ENABLE_SANDBOX_MESSAGE_FILTER") "YES") (defined? 'mach-kernel-endpoint))
(allow mach-kernel-endpoint
(apply-message-filter
(allow mach-message-send (with report) (with telemetry))
(deny mach-message-send (with telemetry))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto: Should we try to get a local report, in case we miss a telemetry window because of other logging?

@pvollan pvollan force-pushed the eng/Address-kernel-MIG-sandbox-telemetry branch from 275a1c4 to c6fa833 Compare March 23, 2023 15:27
@pvollan
Copy link
Contributor Author

pvollan commented Mar 23, 2023

r=me, but please consider whether we should generate local reports, too. I think we maybe should...

That is a good point. I believe we still will get local reports, since that is the default action on a violation.

Thanks for reviewing!

@pvollan pvollan force-pushed the eng/Address-kernel-MIG-sandbox-telemetry branch from c6fa833 to e3caf66 Compare May 1, 2023 13:50
@pvollan pvollan added the merge-queue Applied to send a pull request to merge-queue label May 1, 2023
https://bugs.webkit.org/show_bug.cgi?id=254234
rdar://106829883

Reviewed by Brent Fulgham.

Address kernel MIG sandbox telemetry in the GPU and Network process. This patch also enforces the filters.

* Source/WebKit/GPUProcess/mac/com.apple.WebKit.GPUProcess.sb.in:
* Source/WebKit/NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
* Source/WebKit/Resources/SandboxProfiles/ios/com.apple.WebKit.GPU.sb.in:

Canonical link: https://commits.webkit.org/263551@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/Address-kernel-MIG-sandbox-telemetry branch from e3caf66 to 0850093 Compare May 1, 2023 15:21
@webkit-commit-queue
Copy link
Collaborator

Committed 263551@main (0850093): https://commits.webkit.org/263551@main

Reviewed commits have been landed. Closing PR #11777 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label May 1, 2023
@webkit-commit-queue webkit-commit-queue merged commit 0850093 into WebKit:main May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKit Misc. For miscellaneous bugs in the WebKit framework (and not JavaScriptCore or WebCore).
Projects
None yet
4 participants