From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A40982DCF46; Fri, 6 Feb 2026 08:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770368159; cv=none; b=IUoJ4GwVBykvOe4hrQTz7S3fWvaf8RS+XgP4nToCAoFKJ+Mk+oNnwZqiSx01N2o6qqnlCcIuI61+i0oChmzPidynKPqqddFaIRmL/qndURc0cf2m74IJjDQE4DuBWl9FT5oZ39fu59q4kXNEPsE9njnnZfG2IxpMeZrbi1Fqqyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770368159; c=relaxed/simple; bh=TUSlCOhrAtGm3RFLHWsHhAz5xYWCAH3aTOWbzoQrEko=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mpt6njdTFt5ooJYS2GgUbGTRWzngfkcaiOcBlOTLdsmO8z4bvHyYBe/vyx9TRc+6f9GPXBwwpAm94ahcTHGm8W3AqLP3uDyNLCj7flQgPzghtPGA1iyZ200VMBpNnTWf4P++KL9zIXcHPlVlIJOpQ8cHRx26E+/Le+ghtYwrEUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CU+cP+w0; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CU+cP+w0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EB60C116C6; Fri, 6 Feb 2026 08:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770368159; bh=TUSlCOhrAtGm3RFLHWsHhAz5xYWCAH3aTOWbzoQrEko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CU+cP+w07aDAn1kC18HiM/LUIeZUCnNuHh0PfQQjZjmj3J0A4fhIhk05I3vcnbasd rNcR+4z2piSJJtZzQRuZKltlh8lIbnQDc7tx+z9+Pj8QKcCl3Y/gKJpBnusjZdTBvW 7QUz3JlqWwj040I5c4Nyw23/DajuxfO/OQltgGyNxuUWczbwHSMYQGS3vSw+BHPIqm nm2McVRUpJg5wNG2K/L9kZx0wix2DyCr04JIcSh0FtTKv9YYnTDOAYOHxfUNaYnb32 O3K3fvUKrO75FiWXaYvRFpf++ADHPckHazTjaBAIpUzhBH3CkXh8NkSnmWvBZYJZ+/ ebMCmVyMQHjgA== Date: Fri, 6 Feb 2026 09:55:50 +0100 From: Nicolas Schier To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Nathan Chancellor , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Fabian =?iso-8859-1?Q?Gr=FCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?iso-8859-1?Q?C=E2ju?= Mihai-Drosi , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Subject: Re: [PATCH v4 05/17] module: Switch load_info::len to size_t Message-ID: Mail-Followup-To: Nicolas Schier , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Nathan Chancellor , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Sami Tolvanen , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Fabian =?iso-8859-1?Q?Gr=FCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?iso-8859-1?Q?C=E2ju?= Mihai-Drosi , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org References: <20260113-module-hashes-v4-0-0b932db9b56b@weissschuh.net> <20260113-module-hashes-v4-5-0b932db9b56b@weissschuh.net> <8fd4914d-5cff-4030-822c-98c8e76d0e60@t-8ch.de> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8fd4914d-5cff-4030-822c-98c8e76d0e60@t-8ch.de> On Fri, Feb 06, 2026 at 09:38:07AM +0100, Thomas Weißschuh wrote: > On 2026-02-06 09:30:08+0100, Nicolas Schier wrote: > > On Tue, Jan 13, 2026 at 01:28:49PM +0100, Thomas Weißschuh wrote: > > > Switching the types will make some later changes cleaner. > > > size_t is also the semantically correct type for this field. > > > > > > As both 'size_t' and 'unsigned int' are always the same size, this > > > should be risk-free. > > > > include/uapi/asm-generic/posix_types.h states: > > | * Most 32 bit architectures use "unsigned int" size_t, > > | * and all 64 bit architectures use "unsigned long" size_t. > > > > Is that statement wrong? Or did I mix up the context? > > That statement is correct. But as both 'unsigned int' and 'unsigned > long' are 32-bit wide on 32-bit Linux platforms they are compatible. > > > Thomas sure, thanks! Acked-by: Nicolas Schier -- Nicolas