Re: [PATCH] overflow: improve size_add/mul for 32bit systems
From: Dan Carpenter
Date: Mon Nov 18 2024 - 03:13:53 EST
On Mon, Nov 18, 2024 at 09:09:28AM +0300, Dan Carpenter wrote:
> On 32bit systems, if you pass a long long to size_add()/mul() the top
> 32 bits are truncated away so the function doesn't work as expected.
> Add a test to prevent this.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> ---
Sorry, I thought I had build tested this, but actually I didn't build test it
enough... Probably the kbuild bot will complain soon.
regards,
dan carpenter