[Intel-gfx] [PATCH v2 25/40] drm: Detect overflow in drm_mm_reserve_node()
Joonas Lahtinen
joonas.lahtinen at linux.intel.com
Fri Dec 16 10:11:05 UTC 2016
On pe, 2016-12-16 at 07:47 +0000, Chris Wilson wrote:
> Protect ourselves from a caller passing in node.start + node.size that
> will overflow and trick us into reserving that node.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
I was about to suggest an additional check (but didn't). A combined
check is much more clever.
Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Regards, Joonas
--
Joonas Lahtinen
Open Source Technology Center
Intel Corporation
More information about the Intel-gfx
mailing list