Measuring GPU device firmware

Open
#2,004 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale

Research direction

Start by reviewing the related Dasharo issue 1087 and the linked OptionROM discussion before assessing the proposed approach. The request considers an authenticated Nvidia flash reader, GPU ROM/flash measurement, TPM authentication, and user notification on failure; done would require a decided implementation path for these steps.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

I was thinking about buying a new laptop with a GPU and use it with Qubes.
But in the https://github.com/Dasharo/dasharo-issues/issues/1087 @marmarek is rightfully concerned that a VM which has control over the GPU could flash the firmware of it.

I was wondering if it would be possible to authenticate the GPU ROM/flash content hash as well.

I assume reading the GPU flash requires a proprietary Nvidia binary. But it could be authenticated as well before it is run.

Describe the solution you'd like

  • Add Nvidia flash reader as blob
  • On boot:
    • authenticate flash reader
    • read and hash GPU ROM/flash content
    • authenticate hash with TPM
  • On failure inform the user about it.

Describe alternatives you've considered

Additional context

https://github.com/Dasharo/dasharo-issues/issues/1087

Dominant language
Makefile
Stars
1.6k
Forks
211
Avg merge
3d 19h
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxboot/heads

All issues in linuxboot/heads

Similar issues

More Operating Systems issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.