WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
197682
[WebGPU] Validate GPUComputePassEncoder.dispatch to prevent DOS on macOS
https://bugs.webkit.org/show_bug.cgi?id=197682
Summary
[WebGPU] Validate GPUComputePassEncoder.dispatch to prevent DOS on macOS
Justin Fan
Reported
2019-05-07 18:04:08 PDT
[WebGPU] Limit threadsPerThreadGroup for GPUComputePassEncoder.dispatch to prevent DOS on macOS
Attachments
Patch
(1.94 KB, patch)
2019-05-08 13:48 PDT
,
Justin Fan
mmaxfield
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Justin Fan
Comment 1
2019-05-08 13:48:03 PDT
Created
attachment 369419
[details]
Patch
Myles C. Maxfield
Comment 2
2019-05-08 13:56:29 PDT
Comment on
attachment 369419
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=369419&action=review
> Source/WebCore/platform/graphics/gpu/cocoa/GPUComputePassEncoderMetal.mm:97 > + LOG(WebGPU, "GPUComputePassEncoder::dispatch(): Threadgroup dispatch size too large!");
a single thread can make the GPU hang. This check is not sufficient to solve the problem nor necessary to solve the problem. We need to solve DOS attacks at a more fundamental level. Also this constant would have to be hardware-dependent.
Myles C. Maxfield
Comment 3
2019-05-08 13:57:47 PDT
Comment on
attachment 369419
[details]
Patch This is fundamentally the wrong approach to solving this problem.
Radar WebKit Bug Importer
Comment 4
2019-05-14 15:08:53 PDT
<
rdar://problem/50784837
>
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