Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* i915 utils: range_overflows*()
@ 2025-05-30  7:44 Jani Nikula
  2025-05-30 17:28 ` Kees Cook
  0 siblings, 1 reply; 9+ messages in thread
From: Jani Nikula @ 2025-05-30  7:44 UTC (permalink / raw)
  To: Kees Cook; +Cc: Gustavo A. R. Silva, linux-hardening, intel-gfx


Hi Kees -

drivers/gpu/drm/i915/i915_utils.h has a handful of helper macros for
checking range overflows: range_overflows(), range_overflows_t(),
range_overflows_end(), and range_overflows_end_t().

Looks like the first one has also been copy-pasted to
include/drm/drm_buddy.h.

Feels like include/linux/overflow.h would be the right place for (some
version of) them.

Thoughts?


BR,
Jani.

-- 
Jani Nikula, Intel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-06-04 11:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30  7:44 i915 utils: range_overflows*() Jani Nikula
2025-05-30 17:28 ` Kees Cook
2025-06-02 13:10   ` Jani Nikula
2025-06-02 18:20     ` Kees Cook
2025-06-04  8:59       ` [RFC] drm/i915/utils: document range_overflows*() macros Jani Nikula
2025-06-04  9:25       ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2025-06-04  9:25       ` ✗ Fi.CI.SPARSE: " Patchwork
2025-06-04  9:49       ` ✓ i915.CI.BAT: success " Patchwork
2025-06-04 11:23       ` ✗ i915.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox