lkml.org 
[lkml]   [2022]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v3 1/2] minmax: sanity check constant bounds when clamping
On Mon, Sep 26, 2022 at 8:26 PM Kees Cook <keescook@chromium.org> wrote:
>
> On Mon, Sep 26, 2022 at 03:34:34PM +0200, Jason A. Donenfeld wrote:
> > The clamp family of functions only makes sense if hi>=lo. If hi and lo
> > are compile-time constants, then raise a build error. Doing so has
> > already caught buggy code. This also introduces the infrastructure to
> > improve the clamping function in subsequent commits.
> >
> > Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > Cc: Andrew Morton <akpm@linux-foundation.org>
> > Cc: Kees Cook <keescook@chromium.org>
> > Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
>
> Reviewed-by: Kees Cook <keescook@chromium.org>

Wondering - did you ever queue this up for 6.1? I assume the plan is
to hold off on 2/2 for the time being, but this 1/2 is good to have
either way.

Jason

\
 
 \ /
  Last update: 2022-10-04 15:42    [W:0.310 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site