From 6962de9cdc57a222977f17082ddd2eba61cf3c8c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 23:59:50 -0800 Subject: [PATCH] FAST-PATHS: the NVIDIA exit fault's known gap as the gap and its bound alone A known gap states what is true now and one bound; the evidence stays here. A correction to d35c43feaf's message: the exit hunt stopped on the orchestrator's call, not the owner's word. The evidence behind the line (NVIDIA 615.71.09, RTX 5080 Laptop GPU, Linux): - exitcap-162601 (probe 7f851ced8c): 1 of 94 runtime children, each making a device on libtest's test thread and returning with it kept live, took SIGSEGV after their test passed. The faulting thread was an NVIDIA worker (libnvidia-eglcore into libnvidia-glvkspirv+0x363b2, address 0x18) named after the ended test thread, while the main thread ran libEGL_nvidia's exit handler (an ioctl in libnvidia-glsi). The runtime's 30-odd threads were all waiting, none in a section of the exit guard or a making. A consumer saw the same fault twice in a suite of about 1900 tests, in a test that keeps its device in a static. - nvexit, a Vulkan program without the runtime (an instance, the NVIDIA device, one compute pipeline, a return from main), beside the same 14-minute load of the runtime's device suite: 1550 runs, 0 faults. 1028 destroyed everything first (507 + 262 on the main thread, 259 on a thread joined before the return); 522 kept the device live (263 made on the main thread, 259 on a joined thread, whose two driver workers named after it still ran at the return). (cherry picked from commit be87171f9ecb74c3b695ceb9501cc4435144728f) --- docs/FAST-PATHS.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/docs/FAST-PATHS.md b/docs/FAST-PATHS.md index 33f933ca8..8faf7ffdc 100644 --- a/docs/FAST-PATHS.md +++ b/docs/FAST-PATHS.md @@ -1236,19 +1236,9 @@ driver's. Each is open work. (`copied-host-pages`), at a copy's cost; a guest RAM's chunk over them is not imported. Which later allocations the driver fails, and for how long, is **unaudited** past the shapes measured there. -- **On NVIDIA, a process that exits with a device live can take `SIGSEGV` in its exit** (615.71.09 - on the RTX 5080 Laptop GPU, Linux): one of the driver's own worker threads faults in - `libnvidia-glvkspirv` (at address 0x18) while the main thread runs `libEGL_nvidia`'s exit - handler. Seen in 1 of 94 child processes that made a device on a test harness's thread and - returned with it live, beside the runtime's device suite: none of the runtime's threads was in a - section of the exit guard (`exit_guard.rs`) or a pipeline making, all waiting, and the faulting - worker carried the name of that thread, which had ended; and twice in a consumer's suite of about - 1900 tests, in a test that keeps its device in a static. A program without the runtime, which - made an instance, a device and a compute pipeline and returned, did not fault in 1550 runs beside - the same load: 1028 with everything destroyed first, and 522 with the device live, 263 made on - the main thread and 259 on a thread joined before the return (the driver's workers made from it - still running at the return, as in the runtime's child). The cause is not found, nor whether the - runtime's own state takes part. +- **On NVIDIA's proprietary driver, a process that exits with a device live can fault in the + driver's own worker thread during its exit handler**: about 1 in 100 test processes beside other + GPU work. The cause is not found. - **Reflection after a compute descriptor reset on RADV**: `max_total_threads_per_threadgroup` answers 0 where Metal answers 96, `required_threads_per_threadgroup` `0x0x0` where Metal answers