Re: [PATCH v2] module: procfs: fix signed integer overflow in module_total_size()

Petr Pavlu <[email protected]> Thu, 9 Jul 2026 10:45:51 +0200
Newsgroups org.kernel.vger.linux-modules
Message-ID <[email protected]>
On 6/7/26 6:18 AM, Naveen Kumar Chaudhary wrote:
> module_total_size() returns unsigned int but uses a signed int
> accumulator. While the result is numerically correct, the type
> mismatch is misleading.
> 
> Change the accumulator to unsigned int to match the return type.
> 
> Signed-off-by: Naveen Kumar Chaudhary <[email protected]>

Queued on modules-next for v7.3-rc1.

-- 
Thanks,
Petr