aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorNikita Zhandarovich <[email protected]>2024-07-25 08:59:25 -0700
committerRodrigo Vivi <[email protected]>2024-09-06 15:00:32 -0400
commit1f1c1bd56620b80ae407c5790743e17caad69cec (patch)
tree873cb18f74948bb0bb218a9ec73da3c1453fd74d /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent596a7f1084e49cc65072c458c348861e9b9ceab9 (diff)
drm/i915/guc: prevent a possible int overflow in wq offsets
It may be possible for the sum of the values derived from i915_ggtt_offset() and __get_parent_scratch_offset()/ i915_ggtt_offset() to go over the u32 limit before being assigned to wq offsets of u64 type. Mitigate these issues by expanding one of the right operands to u64 to avoid any overflow issues just in case. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: c2aa552ff09d ("drm/i915/guc: Add multi-lrc context registration") Cc: Matthew Brost <[email protected]> Cc: John Harrison <[email protected]> Signed-off-by: Nikita Zhandarovich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Rodrigo Vivi <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions