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 18E3F34676F; Fri, 6 Feb 2026 09:09:26 +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=1770368967; cv=none; b=c0msk9u8Q/i1Vf1t7ZSioHW1sSnFvfGWE+2GZhSmXLsMnzDrOawxEokNjeYXTQEQzi7b77IU818wTy5iz7fp8EJUtYkHEvxayNulUIUhXD53VNHnz5cjPT7KJyX8Szahcr6XC55oX9mVSdnL0znaChaf7BYKpL4QcyPFITHVrLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770368967; c=relaxed/simple; bh=bvTRKg2OrjlQepO6LzKrASGvcExrTa3Qk/kDeFWK0eo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=c5PLwotbFLNZMHmHwrI6/E3FYf1Vf8wkMqrMURCOGWatJrwDC7KbbMYb4Vtt/5wWUt/ggxnXhdVq0/YYMtwvOeBrcu+yhyTRx6OiSjdA+AvebGCWYO7mbf8Np/+4V05jT+iqX0LSB2IBVFJ/evCseuprrmDf4FIk2pLy1nzCC44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A7b5R4g+; 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="A7b5R4g+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F419C19424; Fri, 6 Feb 2026 09:09:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770368966; bh=bvTRKg2OrjlQepO6LzKrASGvcExrTa3Qk/kDeFWK0eo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=A7b5R4g+TJRZZXAGk3SKg4fQ3mkmVtOPSQE3PlMgcjr8O7xXRq8Jpvzam3nXZDYkv +Zt/AyrCiKCKpfi7gnSR9NFYDSVjEGCpWHk4FZP+WiFnQZfUXeM7cQTX4redKYkLxE SkUEzKlZAB7RCls0Cup2EA5fL2Rkiau4oR11peZpB8UrzPue5/OwWqCIcfEKih2UTc SHqqzHb5+r3Y/36OucldM9ggEkUtRbQnUpiSNaWQ/3WeggSRDyg4WZ0dxyoZZH2R8r VeC3+V5ktY4F36b70LLeQRYzciPk4iK6jmsb98kDxftqNPhRqhC5jD3XrxSF+cmqrO r0A1HSU1NbsQA== Message-ID: Date: Fri, 6 Feb 2026 10:09:12 +0100 Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 05/17] module: Switch load_info::len to size_t To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , 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 , Nicolas Schier , Daniel Gomez , Aaron Tomlin , Nicolas Schier , Nicolas Bouchinet , Xiu Jianfeng Cc: =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?UTF-8?Q?C=C3=A2ju_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> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260113-module-hashes-v4-5-0b932db9b56b@weissschuh.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 13/01/2026 à 13:28, Thomas Weißschuh a écrit : > 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. Are you sure ? Some architectures have size_t as 'unsigned int', some have 'unsigned long', some have 'unsigned long long' https://elixir.bootlin.com/linux/v6.19-rc5/source/arch/s390/include/uapi/asm/posix_types.h#L16 https://elixir.bootlin.com/linux/v6.19-rc5/source/arch/sparc/include/uapi/asm/posix_types.h#L35 https://elixir.bootlin.com/linux/v6.19-rc5/source/arch/xtensa/include/uapi/asm/posix_types.h#L26 https://elixir.bootlin.com/linux/v6.19-rc5/source/include/uapi/asm-generic/posix_types.h#L68 https://elixir.bootlin.com/linux/v6.19-rc5/source/include/uapi/asm-generic/posix_types.h#L72 https://elixir.bootlin.com/linux/v6.19-rc5/source/arch/sparc/include/uapi/asm/posix_types.h#L23 https://elixir.bootlin.com/linux/v6.19-rc5/source/arch/x86/include/uapi/asm/posix_types_x32.h#L15 https://elixir.bootlin.com/linux/v6.19-rc5/source/include/uapi/asm-generic/posix_types.h#L16 Christophe