Skip to content

Commit 69ce1ed

Browse files
a10yclaude
andauthored
fix Fuzz constant OOM for CUDA (#8481)
## Summary The Fuzz check has been failing for CUDA `compress_gpu` job for a very long time now (at least a month). After some investigation, it appears this is because ASAN will mprotect a very large memory region that conflicts with some address space that the CUDA driver wants to own, resulting in cudaCtx initialization failing with OOMs like we've been seeing. I've run a sample Fuzz workflow with this change and confirmed we are able to get past context init now. Signed-off-by: Andrew Duffy <andrew@a10y.dev> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 85aad72 commit 69ce1ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/fuzz.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ jobs:
200200
fuzz_target: compress_gpu
201201
runner: gpu
202202
extra_features: "cuda"
203+
# ASan mprotects the shadow gap PROT_NONE by default, which collides with the large
204+
# virtual-address range the CUDA driver reserves and makes device init fail with an
205+
# OOM-style error. protect_shadow_gap=0 frees that VA range for CUDA.
206+
extra_env: "ASAN_OPTIONS=protect_shadow_gap=0"
203207
jobs: 1
204208
secrets:
205209
R2_FUZZ_ACCESS_KEY_ID: ${{ secrets.R2_FUZZ_ACCESS_KEY_ID }}

0 commit comments

Comments
 (0)