Files
nvdriver/reports
kubuntugamer 87cbefa8b0 gsp: stop leaking boot DMA and accept the real payload size
Review findings on the payload split: the DMA adapter rejected anything over
16 MiB, so the real 30,539,776-byte radix3 container failed before a single byte
was written; and the non-install path, session teardown and the slot-exhausted
install path all freed GSP-visible DMA without stopping the engine first, which
can let a running GSP write into pages the kernel has already reused.

Raise the cap to 64 MiB with the bounds checks intact, and reset the GSP
(kgspResetHw_TU102) before returning any GSP-visible buffer to the allocator,
including the WPR and queue rings. When that reset cannot be confirmed nothing is
released: leaking the buffers is preferable to a device writing into freed
memory. Teardown keeps the reference ordering, since kgspTeardown_TU102 resets
before FWSEC-SB and Booter Unload.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-11-30 17:36:46 -06:00
..