From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B4B3EB28F1 for ; Fri, 6 Feb 2026 08:56:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4f6nxY5mTxz30BR; Fri, 06 Feb 2026 19:56:01 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.234.252.31 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770368161; cv=none; b=F8TUkRJJf8VrenlQHeFvAwW2yy02ryqNqTycEiueqRBFdz5s2u7ChAgIO7WeD6HByhzD6BCQ0wPlhbM6NHCV/6Ij0I3rN2cWIWhzldtAJEWasGB2ccY0pHL2NRYOVXShpYU48RYGmSsBD7jY+8/OLFDClv+1IwaDbZUJUBqquC5JsKx1CNpex+zDFVbXaDrajGGkzXeC2MZowQxy/nIzGEfkYq5QX3InI1wNfMipS4YuClkt4MdJlzNWsT91dGqt7ahdOnQR5N5QZSXd4Lg/rDWt4sapWLa0PD9l52cYcf3BZw/nlahzvGtUylay3LeD0kWs1nlJoIjv5UeXg5eM3g== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770368161; c=relaxed/relaxed; bh=jelIi3hGsj+4c04iErzkYD9GT0Uen4BiJWApuWXcVgw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=RMIQCBSyud/ofQCM7N/2MnEGlRhYm69MxyiqhTX4QARDOb/O7ZcmmIsWt79BSiWHHXPo0f9t7AHWKvFvJnVOVWOvksb9EI97uilNJtKyGSDBNbPL9tvNo6cYERSMj5xOV5z7K7STQwlG+Llz7tbkVkC1TJPDN02w2l+xZxbuHARVrfaaw0xDhp6JeNyqGf5hv3hvjkNiLNaJXxD3I9UBUFTw0M9NUsWOTMPKVZWZONeYzSS+263dddHaiFmazZ5YfP3seDVUS7JLxUOP/ZfMhF69eBsvwavCuv5BVfG3kolmvHybrJQ70LX8LU00ardshp7ubWmjVm7va939KU2LbQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CU+cP+w0; dkim-atps=neutral; spf=pass (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=CU+cP+w0; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.234.252.31; helo=sea.source.kernel.org; envelope-from=nsc@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4f6nxY07WYz2yFc for ; Fri, 06 Feb 2026 19:56:01 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 700C940A47; Fri, 6 Feb 2026 08:55:59 +0000 (UTC) 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> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list 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