Re: [PATCH] drm/i915/guc: prevent a possible int overflow in wq offsets

2024-09-06 Thread Rodrigo Vivi
On Thu, Jul 25, 2024 at 08:59:25AM -0700, Nikita Zhandarovich wrote: > 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 the

Re: [PATCH] drm/i915/guc: prevent a possible int overflow in wq offsets

2024-09-04 Thread Tvrtko Ursulin
On 26/08/2024 11:45, Nikita Zhandarovich wrote: Hi, On 7/25/24 08:59, Nikita Zhandarovich wrote: 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 u

Re: [PATCH] drm/i915/guc: prevent a possible int overflow in wq offsets

2024-08-26 Thread Nikita Zhandarovich
Hi, On 7/25/24 08:59, Nikita Zhandarovich wrote: > 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 expand