<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228773</bug_id>
          
          <creation_ts>2021-08-04 07:45:43 -0700</creation_ts>
          <short_desc>[macOS] Update message filters</short_desc>
          <delta_ts>2021-08-04 11:28:57 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1781877</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-08-04 07:45:43 -0700</bug_when>
    <thetext>Update message filters with enforcement on macOS based on telemetry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781878</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-04 07:46:11 -0700</bug_when>
    <thetext>&lt;rdar://problem/81514311&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781879</commentid>
    <comment_count>2</comment_count>
      <attachid>434903</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-08-04 07:48:55 -0700</bug_when>
    <thetext>Created attachment 434903
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781912</commentid>
    <comment_count>3</comment_count>
      <attachid>434903</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2021-08-04 09:51:35 -0700</bug_when>
    <thetext>Comment on attachment 434903
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=434903&amp;action=review

&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:273
&gt; +        (allow (with telemetry-backtrace) iokit-external-method

Do we really want telemetry-backtrace on these two methods?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781931</commentid>
    <comment_count>4</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-08-04 10:41:46 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #3)
&gt; Comment on attachment 434903 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=434903&amp;action=review
&gt; 
&gt; &gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:273
&gt; &gt; +        (allow (with telemetry-backtrace) iokit-external-method
&gt; 
&gt; Do we really want telemetry-backtrace on these two methods?

Yes, I believe so. They are not expected to be frequently used.

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781936</commentid>
    <comment_count>5</comment_count>
      <attachid>434903</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2021-08-04 10:55:03 -0700</bug_when>
    <thetext>Comment on attachment 434903
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=434903&amp;action=review

r=me

&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:269
&gt; +        (deny (with telemetry) (with message &quot;IOMobileFramebufferUserClient&quot;)

So we deny (with telemetry) pretty much all uses of iokit-async-external-method, and iokit-external-trap ...

&gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:273
&gt;&gt;&gt; +        (allow (with telemetry-backtrace) iokit-external-method
&gt;&gt; 
&gt;&gt; Do we really want telemetry-backtrace on these two methods?
&gt; 
&gt; Yes, I believe so. They are not expected to be frequently used.
&gt; 
&gt; Thanks for reviewing!

... and allow with backtrace iokit-external-method for these two methods.

That means everything else is denied without telemetry, right?

If so, I think this seems right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781948</commentid>
    <comment_count>6</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2021-08-04 11:19:39 -0700</bug_when>
    <thetext>(In reply to Brent Fulgham from comment #5)
&gt; Comment on attachment 434903 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=434903&amp;action=review
&gt; 
&gt; r=me
&gt; 
&gt; &gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:269
&gt; &gt; +        (deny (with telemetry) (with message &quot;IOMobileFramebufferUserClient&quot;)
&gt; 
&gt; So we deny (with telemetry) pretty much all uses of
&gt; iokit-async-external-method, and iokit-external-trap ...
&gt; 
&gt; &gt;&gt;&gt; Source/WebKit/WebProcess/com.apple.WebProcess.sb.in:273
&gt; &gt;&gt;&gt; +        (allow (with telemetry-backtrace) iokit-external-method
&gt; &gt;&gt; 
&gt; &gt;&gt; Do we really want telemetry-backtrace on these two methods?
&gt; &gt; 
&gt; &gt; Yes, I believe so. They are not expected to be frequently used.
&gt; &gt; 
&gt; &gt; Thanks for reviewing!
&gt; 
&gt; ... and allow with backtrace iokit-external-method for these two methods.
&gt; 
&gt; That means everything else is denied without telemetry, right?
&gt; 
&gt; If so, I think this seems right.

Actually, I think we are keeping telemetry without backtraces for the denied items, in order to be able to see if they are being used.

Thanks for reviewing!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1781959</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-08-04 11:28:56 -0700</bug_when>
    <thetext>Committed r280644 (240255@main): &lt;https://commits.webkit.org/240255@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 434903.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>434903</attachid>
            <date>2021-08-04 07:48:55 -0700</date>
            <delta_ts>2021-08-04 11:28:57 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-228773-20210804074854.patch</filename>
            <type>text/plain</type>
            <size>2495</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJL
aXQvQ2hhbmdlTG9nCShyZXZpc2lvbiAyODA2MzMpCisrKyBTb3VyY2UvV2ViS2l0L0NoYW5nZUxv
Zwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDIxLTA4LTA0ICBQZXIgQXJuZSAg
PHB2b2xsYW5AYXBwbGUuY29tPgorCisgICAgICAgIFttYWNPU10gVXBkYXRlIG1lc3NhZ2UgZmls
dGVycworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjI4
NzczCisgICAgICAgIDxyZGFyOi8vcHJvYmxlbS84MTUxNDMxMT4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBVcGRhdGUgbWVzc2FnZSBmaWx0ZXJzIHdp
dGggZW5mb3JjZW1lbnQgb24gbWFjT1MgYmFzZWQgb24gdGVsZW1ldHJ5LgorCisgICAgICAgICog
V2ViUHJvY2Vzcy9jb20uYXBwbGUuV2ViUHJvY2Vzcy5zYi5pbjoKKwogMjAyMS0wOC0wMyAgSmVh
bi1ZdmVz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1tZXRob2QKICAg
ICAgICAgICAgIGlva2l0LWV4dGVybmFsLXRyYXAKICAgICAgICAgKQorICAgICAgICAoYWxsb3cg
KHdpdGggdGVsZW1ldHJ5LWJhY2t0cmFjZSkgaW9raXQtZXh0ZXJuYWwtbWV0aG9kCisjaWYgX19N
QUNfT1NfWF9WRVJTSU9OX01JTl9SRVFVSVJFRCA+PSAxMjAwMDAKKyAgICAgICAgICAgIChpb2tp
dC1tZXRob2QtbnVtYmVyCisgICAgICAgICAgICAgICAgOAorICAgICAgICAgICAgICAgIDI4Cisg
ICAgICAgICAgICApCisjZW5kaWYKKyAgICAgICAgKQogICAgICkKICkKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>