[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z6oyqL8aDCOmoCbd@ashyti-mobl2.lan>
Date: Mon, 10 Feb 2025 18:08:56 +0100
From: Andi Shyti <andi.shyti@...ux.intel.com>
To: l1138897701@....com
Cc: jani.nikula@...ux.intel.com, luoqing@...inos.cn,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests: i915: Use struct_size() helper in kmalloc()
Hi luoqing,
On Sat, Feb 08, 2025 at 09:35:39AM +0800, l1138897701@....com wrote:
> From: luoqing <luoqing@...inos.cn>
>
> Make use of the struct_size() helper instead of an open-coded version,
> in order to avoid any potential type mistakes or integer overflows that,
> in the worst scenario, could lead to heap overflows.
>
> Signed-off-by: luoqing <luoqing@...inos.cn>
Reviewed-by: Andi Shyti <andi.shyti@...ux.intel.com>
Thanks,
Andi
Powered by blists - more mailing lists