diff options
| author | 2026-05-25 22:57:22 +0900 | |
|---|---|---|
| committer | 2026-05-25 16:30:34 +0200 | |
| commit | 237c252be0db616c93e4984369db7e74bb797564 (patch) | |
| tree | 0e752e9b1ed9df7feedbbf2cbe51145d1c500a50 /scripts/Makefile.thinlto | |
| parent | gpu: nova-core: vbios: avoid reading too far in read_more_at_offset (diff) | |
gpu: nova-core: vbios: read BitToken using FromBytes
If `header.token_size` is smaller than `BitToken`, then we currently can
read past the end of `image.base.data`. Use checked arithmetic for
computing offsets and simplify reading it in using `FromBytes`.
Fixes: dc70c6ae2441 ("gpu: nova-core: vbios: Add support to look up PMU table in FWSEC")
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260525-fix-vbios-v5-4-e5e455251537@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
