[PATCH 1/5] string.h: add array-wrappers for (v)memdup_user()

Andy Shevchenko andy.shevchenko at gmail.com
Wed Aug 30 07:15:02 PDT 2023


On Wed, Aug 30, 2023 at 4:46 PM Philipp Stanner <pstanner at redhat.com> wrote:

> +       if (unlikely(check_mul_overflow(n, size, &nbytes)))
> +               return ERR_PTR(-EINVAL);

> +       if (unlikely(check_mul_overflow(n, size, &nbytes)))
> +               return ERR_PTR(-EINVAL);

Btw, why not -EOVERFLOW ?

-- 
With Best Regards,
Andy Shevchenko



More information about the kexec mailing list