diff options
| author | Eliot Courtney <ecourtney@nvidia.com> | 2026-05-25 22:57:22 +0900 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-05-25 16:30:34 +0200 |
| commit | 237c252be0db616c93e4984369db7e74bb797564 (patch) | |
| tree | 0e752e9b1ed9df7feedbbf2cbe51145d1c500a50 /include/linux/timerqueue.h | |
| parent | 33f1402bcfa6cfd85fa265ce6fa5c6bb7d981c6d (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 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
