mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[GH-ISSUE #12] work on 5090? #5
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zhaojp-Frank on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/12
is it possible?
@AndrewCTF commented on GitHub (Oct 25, 2026):
GB202 (RTX 5090) speed-select reconnaissance: RM rates, firmware layout, and register probe
Posting what I found probing an RTX 5090 (GB202,
10de:2b85) on driver 615.71.09 / Linux 7.0.0. None of this writes to the card. The goal is to give whoever does the Blackwell booter analysis a head start.1. RM rate getter works on Blackwell
The
NV2080_CTRL_CMD_GR_GET_SM_ISSUE_RATE_MODIFIERcall (0x20801230) fromread_sm_rates.pyreturns valid data on GB202, same field layout as Ada:Meaning:
0=full,1=half,2=quarter,3+=further reductions.fmla32 = 3— FP32 accumulation cap. On Ada this was1(half rate). On Blackwell it's3.fmla16 = 0— FP16 accumulate is full rate (confirmed by matmul benchmark: 324.6 TFLOPS FP16-accum vs 217.5 with FP32-accum).imla1 = imla2 = imla4 = 3— some INT modes are also capped.2. Firmware layout differs from Ada/Ampere
GB202 firmware lives at
/usr/lib/firmware/nvidia/gb202/gsp/:bootloader-570.144.bin0x10deheader, version 1fmc-570.144.bingsp-570.144.bin../../ga102/gsp/gsp-570.144.binThere is no
booter_loadfile for any Blackwell chip (gb100, gb102, gb202, gb203, gb205, gb206, gb207). Onlybootloaderandfmc.All Ampere and Ada chips have separate
booter_loadandbooter_unloadfiles. Blackwell does not.FMC ELF structure
The FMC is a signed image with its own public key and signature. It appears to be a new component in the Blackwell secure boot chain.
GB202 bootloader header
The
bootloaderfile uses the same container format (0x10deheader, version 1) as the GA102/AD102booter_load, suggesting it serves the equivalent role in the boot chain, just renamed and substantially larger.3. What gpu_peek would show (needs sudo)
The
gpu_peek.komodule from this repo builds cleanly against kernel 7.0.0-38-generic. The registers it reads are BAR0 offsets shared across GA102/AD102; if the GB202 register map is similar, it would show:0x00823804(FEAT_OVR_PLM) — the permission gate0x0082381c(SS0) /0x00823820(SS1) — the speed selectors0x00823818(FEAT_READOUT_1) — the effective readoutCommand to run (requires sudo, cold boot recommended for pre-driver state):
I was unable to run this because sudo requires an interactive terminal. The RM getter already confirms the field values, but BAR0 register offsets would confirm whether the FEAT_OVR layout matches Ada.
4. Card identity
5. Implications for a Blackwell unlock
The Ada exploit chain (SEC2 booter_load → V67 stack overflow → FEAT_OVR_PLM write → host SS0/SS1 write → FLR) may not directly port because:
booter_load— GB202 usesbootloader+fmcinstead. Thebootloaderis the same container format but 3× the size, meaning a different internal layout.fmla32 = 3on GB202 vs1on Ada. The unlock values (0x88888888/0x8) might need adjustment for Blackwell's encoding.GET_SM_ISSUE_RATE_MODIFIERcontrol call returns valid data with the same field names, so the driver-level abstraction is compatible.The next useful steps would be:
bootloaderbinary — same0x10deformat, so the existingextract_boot_assets.pytooling might partially parse itbooter_load@AndrewCTF commented on GitHub (Oct 25, 2026):
Update: rate encoding confirmed from NVIDIA source, GB202 cap is 1/8 rate not 1/2
From
ctrl2080gr.hin open-gpu-kernel-modules:On the RTX 5090 (GB202),
fmla32 = 3= 1/8 rate. This is more aggressive than Ada (RTX 4090fmla32 = 1= 1/2 rate).Full RTX 5090 rate table from
read_sm_rates.py:BAR0 access blocked
iomem_is_exclusiveprevents userspace BAR0 reads while the NVIDIA driver is bound.gpu_peek.koand sysfsresource0mmap both returnEPERM.nvidia-debugdump --dumpallproduces a protobuf dump (rm_00.pb) but it doesn't include the fuse/FEAT_OVR register block.Additional firmware data
PMC_BOOT_0=0x21120000(from RM dump)98.02.2e.40.afImplication for SS0/SS1 values
If the FEAT_READOUT_1 field encoding matches the RM rate values, then each 3-bit field in the readout holds
3(not2as on Ada) for the capped modes. The unlock SS0 value0x88888888(each nibble = bit3 enable + 3-bit zero override) should still zero out the effective readout, but this needs BAR0 confirmation.@Panchovix commented on GitHub (Oct 25, 2026):
Blackwell isn't unlocked at the moment, it seems it reads the information from a fuse, and if you edit the values from the flags that live there and try to boot, the card will refuse to post (easy to revert). Is not like Ada or before.
I guess if someone find an exploit to be able to edit on "level 3" as NVIDIA likes, then the unlock would be feasible.
@ElXreno commented on GitHub (Oct 25, 2026):
GB203M Laptop (RTX 5090 Laptop,
10de:2c18): pre-bind register dump, gate still closedSame probe, Linux 7.2.10, open kernel module 615.78.08, cold boot. I built a read-only sampler from
diagnostics/peek/gpu_peek.c(plus a write-ladder variant) and loaded it in the initrd before any driver binds (gpu_peek, GPL-2.0, happy to upstream it back if useful). Nothing was written to flash or firmware; the only write attempt is volatile register writes, reverted by the next cold boot.1. The whole block is alive at the Ada offsets on Blackwell. No relocation needed for anyone porting tooling:
read_sm_rates.pyfrom userspace returnsfmla32=3, imla1=imla2=imla4=3, identical to the GB202 table posted above, and identical to theFUSE_SS_*words above. The nerf is in the fuse words, same encoding.2.
FEAT_READOUT_1does not decode like Ada on this chip. The naive 9x3-bit decode of0x00c36180gives0 0 6 0 6 6 0 6 0- values6are out of range of thectrl2080gr.hdefines and the nonzero fields sit one position off the fuse values (...3at fields 3,5,6,8 vs...6at fields 2,4,5,7). Before anyone writes unlock values, the Blackwell readout packing needs re-deriving;0x88888888as a goal may still be right (the SS nibble format looks unchanged), but the readout will not confirm with the Ada decoder.3. The gate is intact, host writes are silently dropped. Write ladder, pre-bind, cold boot:
SS0=0x88888888,SS1=0x8-> readback unchanged; thenFEAT_OVR_PLM=0xffffffff-> unchanged. No FLR was reached because nothing stuck. Exactly the Ampere/Ada "writing there just does nothing" behavior, so Blackwell keeps the protection logic together with the register map. The non-zeroSS0/SS1at boot are firmware writes with the enable bit clear (AD102 stockSS0=0x44023025looked the same way), so the nibble encoding still appears to be enable-bit3 + value.Matches what @Panchovix says about fuses and "level 3": the data and the registers are all where the Ada tooling expects them, only the privilege is missing. The unlock for GB20x will be an FSP/FMC bug, not a register move.
One caution for anyone tempted by the fuse path: per the report above an edited fuse value makes the card refuse to post, so fuse edits on Blackwell look fatal rather than inert - the volatile SS/PLM ladder above costs nothing to try.
@AndrewCTF commented on GitHub (Oct 25, 2026):
I tried UEFI, during GRUB and still cannot do it..... Such a pain. But I did find a way for FP16
@AndrewCTF commented on GitHub (Oct 25, 2026):
@Panchovix I think this might be possible with voltage glitching, the biggest problem right now is the fuse. Easy to set it fast, but need to sign/bypass.
@AndrewCTF commented on GitHub (Oct 25, 2026):
I discovered that there are 3 fused (kinda a pain to find).
@AndrewCTF commented on GitHub (Oct 25, 2026):
Software might not be possible. Need to find a method to allow it to take the args for that specific bytes to load....
@isma-is-dev commented on GitHub (Oct 25, 2026):
I picked this up on a fork of this repository with the goal of making the module work on the GeForce RTX 50 series, and the result is a fork where the Blackwell cards are recognised, refused with a reason, and one input short of a working unlock. Posting the state of that work here so the next person does not have to redo it.
No Blackwell unlock yet, and nothing here has touched a GPU.
What is now in the fork
gpu_unlock.gb20x_experimental=1andgpu_unlock.targets=naming that single card exactly.targets=allnever selects a GB20x card, the same rule AD103 and AD106 already had.-EOPNOTSUPPwith the reason, before BAR0 is mapped, before a register is written, before any reset. The refusal is the point: the alternative would be a card that silently does nothing.firmware/extract_boot_assets.py --chip gb202builds the GB202 GSP boot image, its descriptor and the FMC from the pinned NVIDIA source, with every input and output pinned by SHA-256. Verified end to end against the realNVIDIA-kernel-module-source-610.43.03.tar.xz, whose hash matches the pinned one.gpu_peekprints the chip identity, the rate fuse words and the FEAT block, and says plainly that theFEAT_READOUT_1line uses the Ada layout so it must not be read as a Blackwell decode.read_sm_rates.pyreports the device ID and the Blackwell rate encoding.The payload derivation is now mechanical
This is the part I would most like feedback on. The six gadgets the payload needs have fixed byte signatures, because the constants they carry are the same on every chip that runs this booter: the BAR window at 0x1c000, the mailbox at 0x1000, the canary slot at 0x5f50. They can therefore be found by pattern instead of by reading a disassembly.
find_gadgets.pylocates them and rebuilds the payload word table. It is validated against this repository's own pin: on the AD102 booter code region rebuilt from TOTORONG's published decrypted disassembly, it finds the gadgets at exactly the published addresses (0x21b2, 0x33fc, 0x256f, 0x7a02, 0x31b5, 0x771e) and produces the payload byte for byte as it is pinned here (SHA-25644c36b2d6b3424e53e18f3e55db85c833655de071ce66ce42749588a4a7dc8cb).So a Blackwell booter plaintext is enough: the payload table follows from it mechanically. Only the four PLM target registers and the stack pointer the chain starts from still have to be read off the chip.
Where the missing booter is, and is not
The Ada chain runs its V67 payload inside the SEC2 "BooterLoad" container. NVIDIA's open source publishes
BooterLoadUcodefor TU102, TU116, GA100, GA102 and AD102, and for Blackwell it publishesGspRmBoot_GB202andConcatenatedFMC_GB202instead. In the open module the per-chip dispatch resolves every other chip, Blackwell included, tokgspGetBinArchiveBooterLoadUcode_80f438, which in the open header is a stub that returns NULL: the Blackwell booter is not in the open source.I went looking for it in the closed module. NVIDIA's generated bindata is stored there as raw DEFLATE streams with a gzip trailer, and inside the module a container's header record sits just before its image, with the image sized as data offset plus data size plus the os code block. With that rule the 610.43.03
nv-kernel.o_binaryyields seven published images as a control and 86 unpublished ones. The control is byte exact: the image paired with the AD102 header is byte for byte the AD102IMAGE_DBGthat NVIDIA publishes.The inventory is the interesting part: every booter-sized geometry in that module belongs to a chip NVIDIA already publishes (60416 GA102, 60160 GA100, 59136 TU102, 58880 TU116, 56832 AD102), and the unpublished images are smaller ucodes, the largest at 40192 bytes against the Ada booter's 56832. The Blackwell booter is not in the Linux module's bindata.
Two open leads: the Windows module's bindata set may be larger, and the per-chip Blackwell firmware that an install writes under
/usr/lib/firmware/nvidia/gb202/is the installer's split of the encrypted.fwimage.The ask
A GB20x booter plaintext, or the debug test key.
On the key: the key is documented as NVIDIA's public AES-128-ECB test key, with the known-answer control
AES_ECB(key, 0x00 * 16) = 717d1494eaca317ff106195258b38377and the key number 37. I swept the simple permutations of the MD5 initialisation vector with the key number last and first, on the binary and the ASCII hex bases, plus the trivial and hash-derived families, with no hit. The cmp170hx wiki notes that the "debug #37" claim was never substantiated and that the key itself was never posted, so this may be a private input rather than a public one. If anyone has it, that is the single thing standing between this fork and a Blackwell payload.I can share the fork, the tools and the full write-up (
docs/gb20x-blackwell-report.md) with whoever wants to continue.@wht0224 commented on GitHub (Oct 25, 2026):
Right then, please support Blackwell as soon as you jolly well can - we 5090 owners are getting rather fidgety. Ta very much.
@isma-is-dev commented on GitHub (Oct 25, 2026):
Closing the loop on the booter question, with a method that should save the next person a lot of time.
The newest Windows driver (621.01) does carry booter-sized Falcon images, and two of them are big enough to look like Blackwell candidates: 60,928 and 57,600 bytes, each with a debug twin whose AES control appears eleven and fifteen times, so they are the images the public test key would open.
They are not Blackwell. The way to know is the open source of the branch that shipped them: 621.01 on Windows corresponds to the 615 branch of the open kernel modules, and that branch's generated arrays name every booter and its source path.
The 57,600 byte image is byte for byte that branch's AD102 booter and the 60,928 byte one is byte for byte its GA102 booter, with the debug twins matching the published
IMAGE_DBGarrays.So, checked and closed: the Linux 610.43.03 module, the Windows 610.88 module, the Windows 621.01 module and the 610.43.03 and 615.78.08 source branches all fail to publish a Blackwell Falcon SEC2 booter. Combined with the fact that the Blackwell GFW, FMC and GSP boot images are all encrypted, a Blackwell payload cannot be a transplanted Ada payload: it would have to be built around the FSP or the GFW, and validated on a Blackwell card.
Two practical notes from that work, in case they are useful here:
Also worth noting for anyone pulling assets from a 615-or-later branch: the generator stores each array as NvU64 words of eight little endian bytes rather than a plain byte array, so a parser written for the 610 format needs to handle both.
The write-up with all the measurements is in
docs/gb20x-blackwell-report.md, and the tools are in the fork.@AndrewCTF commented on GitHub (Oct 25, 2026):
I'm already working hard lol. I'm sure hardware is the best route forward or it's just searching for bugs next lol
@AndrewCTF commented on GitHub (Oct 25, 2026):
The biggest problem right now is the fuse is a pain.
@Panchovix commented on GitHub (Oct 25, 2026):
The problem now is that I also have been on this for some days and no luck, it is really hard to do an unlock for RTX 50 series this time around. The only feasible way is someone finding an exploit to be able to write something on the fuse, but that sounds like a dream at this time lol.
Kinda sucks for RTX 50 users if you train with these, my unlocked 4090 now trains faster than my 5090 haha.
@AndrewCTF commented on GitHub (Oct 26, 2026):
FP16 bypass should work, I'll be committing it. FP32 is a work in progress
@JustAResearcher commented on GitHub (Oct 26, 2026):
Thanks for asking, and a big thanks to @AndrewCTF, @ElXreno, @Panchovix and @isma-is-dev for the reconnaissance. That's a lot of careful read-only work.
The short answer is no. On Blackwell the same registers are there, but host writes to them are dropped, the rate comes from fuses, and there's no published SEC2 booter for an Ada-style payload to run in. The approach here doesn't carry over, and there's no Blackwell support planned in this repo. If someone does find a working path, a PR with hardware evidence would be the place for it.
Closing as not planned.
@GalladeGuy commented on GitHub (Oct 26, 2026):
Just to give a bit more info, the reason why no one can find anything for Falcon is that, starting with Hopper, it has been replaced as the root of trust by the Foundation Security Processor (FSP). It's based on NV-RISCV, and at least some of its firmware is formally verified in Ada SPARK at assurance level silver, which guarantees an absence of many types of runtime errors. All recent Nvidia GPUs have switched to this, including consumer Blackwell, so exploits designed for chips that have Falcon as the root of trust fundamentally can't work here. FSP is sometimes still referred to as Falcon in code, but AFAIK this is just a legacy thing from when Nvidia was using dual-core Falcon/NV-RISCV modules, and Blackwell does not use Falcon anywhere.
@shuttie commented on GitHub (Oct 31, 2026):
Hey I'm currently doing some 5090/blackwell research on the BF16 unlock. No luck so far, but if you're curious to see the details, you-re welcome: https://github.com/shuttie/bf16-unlock-blackwell-research/
@steviecurrie commented on GitHub (Nov 4, 2026):
Context:
phiraml/gpu-unlock-blackwelllistsg_bindata_kgspGetBinArchiveGspRmFmcGfwDebugSigned_GB202.cin its bindatainventory, and the Ada route depends on a debug build being minable. The FMC
runs at PL3, which is exactly the level the Blackwell unlock is missing — so a
minable debug FMC would be the missing primitive without needing the SEC2
booter at all. Worth checking directly. It doesn't work.
Source: the 615.71.10 open module,
src/nvidia/generated/.Decoded and compared:
UCODE_IMAGEUCODE_HASHb54e23af…)UCODE_SIGc9907005…)207634c2…)So "DebugSigned" changes the signature only. Same ciphertext, same SHA-384.
Two things follow, and neither is good news:
uniformly, including the first 64 KiB and across the 478 KB
ConcatenatedFMC_GB202UCODE_IMAGE_PROD. There is no cleartext preambleand no RISC-V code to disassemble. (Contrast the Falcon BooterLoad bundles,
which ship
IMAGE_PRODin plaintext and only the signature is checked.)gpu_unlock_booter_patch()works by choosing among
num_sigssignature slots inside the image, indexedby the fuse version read from the card. The FMC ships one 96-byte signature
next to the image, with no slot table and no
patch_loc. There is nothingto select between.
Conclusion: the FMC does not give PL3 code execution for free, and the
debug/prod split is not a lever. It needs the key, same as the negative result
already recorded in
shuttie's FMC key search. This closes the "maybe thedebug build is the way in" idea — the debug build is the same bytes.