[PR #1519] vk_fuzz_run: --pc-tail-ubo under LEONIDA_PC_TAIL_UBO, VK_FUZZ_SKIP_CRASH for driver crashes #1548

Open
opened 2026-11-26 20:21:38 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1519
Author: @whoalin1
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: vk-fuzz-run-pctail


📝 Commits (2)

  • a1302c4 vk_fuzz_run: --pc-tail-ubo under LEONIDA_PC_TAIL_UBO, VK_FUZZ_SKIP_CRASH for driver crashes
  • 383650d vk_fuzz_run: document and cover crash skips across signal exits

📊 Changes

2 files changed (+89 additions, -2 deletions)

View changed files

📝 tests/test_vk_fuzz_run.py (+71 -1)
📝 tools/vk_fuzz_run.py (+18 -1)

📄 Description

Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7151670929

What

Two small tools/vk_fuzz_run.py additions found during overnight fuzzing on 128-byte-push-constant and crash-prone drivers:

  • LEONIDA_PC_TAIL_UBO → --pc-tail-ubo: when the env var is truthy (1/true/yes/on, same convention as image_fuzz/lds_fuzz/valu_fuzz), the flag is appended to the rdna2spirv.py call so translated shaders fit 128-byte push-constant devices. The variable reaches vk_compute_test via the inherited env, so both sides agree on the layout.
  • VK_FUZZ_SKIP_CRASH=1: records vk_compute_test crashes (any exit other than 0/1/2/77 — e.g. the 0xC0000005 driver crashes seen on the AMD Windows Vulkan driver for ~2% of fuzz programs) as skips instead of aborting the whole batch. Harness errors (exit 1/2) stay fatal.

Tested

  • tests/test_vk_fuzz_run.py: 17 tests OK — new tests pin flag→translator-cmd, env→harness propagation, flag absent when unset, crash→skip, and exits 1+2 staying fatal under VK_FUZZ_SKIP_CRASH=1.
  • compileall clean; check_no_game_data.py clean.
  • Used in anger: the overnight fuzz campaign ran thousands of programs through this path on AMD iGPU + RTX 4070 SUPER.

AI-assisted (Devin).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1519 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `vk-fuzz-run-pctail` --- ### 📝 Commits (2) - [`a1302c4`](https://github.com/ubiquitarianism/leonida/commit/a1302c42e26d399fd9a8072ece1b0973f0a44cf0) vk_fuzz_run: --pc-tail-ubo under LEONIDA_PC_TAIL_UBO, VK_FUZZ_SKIP_CRASH for driver crashes - [`383650d`](https://github.com/ubiquitarianism/leonida/commit/383650dde27202341238d6049e27fbf759813e3b) vk_fuzz_run: document and cover crash skips across signal exits ### 📊 Changes **2 files changed** (+89 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_vk_fuzz_run.py` (+71 -1) 📝 `tools/vk_fuzz_run.py` (+18 -1) </details> ### 📄 Description Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7151670929 ## What Two small `tools/vk_fuzz_run.py` additions found during overnight fuzzing on 128-byte-push-constant and crash-prone drivers: - **`LEONIDA_PC_TAIL_UBO` → `--pc-tail-ubo`**: when the env var is truthy (`1/true/yes/on`, same convention as `image_fuzz`/`lds_fuzz`/`valu_fuzz`), the flag is appended to the `rdna2spirv.py` call so translated shaders fit 128-byte push-constant devices. The variable reaches `vk_compute_test` via the inherited env, so both sides agree on the layout. - **`VK_FUZZ_SKIP_CRASH=1`**: records `vk_compute_test` crashes (any exit other than 0/1/2/77 — e.g. the `0xC0000005` driver crashes seen on the AMD Windows Vulkan driver for ~2% of fuzz programs) as skips instead of aborting the whole batch. Harness errors (exit 1/2) stay fatal. ## Tested - `tests/test_vk_fuzz_run.py`: **17 tests OK** — new tests pin flag→translator-cmd, env→harness propagation, flag absent when unset, crash→skip, and exits 1+2 staying fatal under `VK_FUZZ_SKIP_CRASH=1`. - `compileall` clean; `check_no_game_data.py` clean. - Used in anger: the overnight fuzz campaign ran thousands of programs through this path on AMD iGPU + RTX 4070 SUPER. AI-assisted (Devin). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1548
No description provided.