summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorEliot Courtney <ecourtney@nvidia.com>2026-05-25 22:57:22 +0900
committerDanilo Krummrich <dakr@kernel.org>2026-05-25 16:30:34 +0200
commit237c252be0db616c93e4984369db7e74bb797564 (patch)
tree0e752e9b1ed9df7feedbbf2cbe51145d1c500a50 /include/linux/debugobjects.h
parent33f1402bcfa6cfd85fa265ce6fa5c6bb7d981c6d (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/debugobjects.h')
0 files changed, 0 insertions, 0 deletions