Re: [PATCH 3/3] overflow: add range_overflows() and range_end_overflows()
From: Kees Cook
Date: Thu Sep 04 2025 - 12:28:16 EST
On Thu, Sep 04, 2025 at 10:34:04AM +0300, Jani Nikula wrote:
> On Wed, 03 Sep 2025, Kees Cook <kees@xxxxxxxxxx> wrote:
> > On Fri, Aug 29, 2025 at 08:46:01PM +0300, Jani Nikula wrote:
> >> Move the range_overflows() and range_end_overflows() along with the _t
> >> variants over from drm/i915 and drm/buddy to overflow.h.
> >>
> >> Cc: Kees Cook <kees@xxxxxxxxxx>
> >> Cc: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>
> >> Cc: linux-hardening@xxxxxxxxxxxxxxx
> >> Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>
> >
> > Looks good to me! :)
> >
> > Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
>
> Cool, thanks! How do you want to handle merging this?
Since it's touching drm, feel free to take it there. I'm not worried
about conflict resolution in overflow.h.
--
Kees Cook