Re: [PATCH] mm/zsmalloc: prevent integer overflow in obj_free
From: Sergey Senozhatsky
Date: Mon Mar 24 2025 - 23:24:58 EST
On (25/03/20 12:12), Anastasia Belova wrote:
> If address (and unsigned long) is 64-bit, the result of multiplication
> won't fit 32-bit integer. Please correct me if I'm wrong.
Even if we'd consider s32 that should be an object offset of more
than 2B bytes within its zspage, we never have anything like this.