From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 8CB253A89C9 for ; Tue, 20 Jan 2026 20:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768940057; cv=none; b=LCchLmWNV8NXVe64HVaN477xTkCOW6RQiTa/91wble3aLOiZ/ySpz/GBNWvPC8/3QRyNjgwk4xpopk5JlRjECfQLr2W75zavhY8q1xuttoeifxel/G6D6bBGuChC8fcNXC+N0ou0WPrTHCPL8hFqGmB0TTKleM7JJbeaU0QZdkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768940057; c=relaxed/simple; bh=TxxYRmrfXhJM+lqv7Yd6UDRp3XSMXruZYzWl+nxgrUw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q3CZ3bfJba4QcRBFcmnD5W3MisAbokgLK96mBO4es4NU7DPFmlq+GpGWaMCeMKmLW2gZm8AeDevPIiRy1xcTQSc57DvbNwmeUWbqQhi8NgDqcFUYbQk9gLnu2INYsl4QYqbp415mwbLRwu0PHXAJSevEmladqLaxq0PPfKKSVxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=QsqIy3jr; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="QsqIy3jr" Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 7346240E0192; Tue, 20 Jan 2026 20:14:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0RCuRTvJSCKu; Tue, 20 Jan 2026 20:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1768940040; bh=FLi5NkCluQZG+MPZghVB2jiX53YYFpKSUOZUXGXGncU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QsqIy3jrszyYbuXqncPKMTdS7yQB51fkeWU66yzzFv7aSxN2GWPo/LoKT90U6iO+O odjDH+RACT/SyLN+0CrEZuf6M06HFgdPIy2vnKsSqKv/wDcCg3u8P3GkLV2smZUZQd kzPvdAarV7Untgzh0ozOF4QLEgr3M5bn7pj66pmxGtBd1p83kw/sUuUQc2px5tY3bS CXPuvV12jqPKqmQjAdWf8pmBgCep/EDygAJ39AFLpl0IiIGDz9wnL2rJ8GkJ65Bpdn HOwvlPzcjh1WBdY6VTIQgEa3g1xyCoD7P9ESv13TRqYBVFxA2imDk5pQuLZhdPIiYd itjwNukptn2/GbpPIxceE4aNCyInMqwmAXGmrUM2SCg7Gf8dS/4w3TRjdkIdUe0XII dyx+SERmbl5cjentbnA2Xsp6blyVftTCAvnzV+pAyGyEMLoASJxSP3JhgUqd+c75cE QjsqnywxxniE9BI+yjS+L/QUTXxIiQDDOEyR77fvsVRBmf5izVsmtnRqj1z8pWnFJB dffKuFKyc/yWxUEDWuLqm4C2u23Gp/mOsCCJuWzXUNUwar4C/16WWdY3GuPMQTC+X9 spYZm2N44YHHZY2Dpegz7vPzpVoXew6ktRuUh6SIOQPb/1hM8d+KK/fDkyOOUpF5yA TcAA924KbIvnGPEDndrgwG5c= Received: from zn.tnic (pd953023b.dip0.t-ipconnect.de [217.83.2.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with UTF8SMTPSA id 7F29C40E016A; Tue, 20 Jan 2026 20:13:53 +0000 (UTC) Date: Tue, 20 Jan 2026 21:13:46 +0100 From: Borislav Petkov To: "H. Peter Anvin" Cc: David Desobry , tglx@kernel.org, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/lib: Fix num_digits() signed overflow for INT_MIN Message-ID: <20260120201346.GEaW_h-tUO2pb4d26w@fat_crate.local> References: <20260120094258.41313-1-david.desobry@formalgen.com> <53DB5B87-BA96-44B1-AE1B-9055CB7B9350@zytor.com> <20260120164050.GBaW-wEvzp9WVFj9n9@fat_crate.local> <7C458D74-49E8-4FFE-BD60-74CA3ABFDC6C@zytor.com> <20260120191655.GDaW_Up2ZOv5AHhbq7@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Jan 20, 2026 at 11:50:41AM -0800, H. Peter Anvin wrote: > For negative numbers? Dave Hansen pointed out that we currently don't ever > pass negative numbers, in which case it would make more sense to have the > function simply take an unsigned int. Yes, that's why I'm asking what we're even fixing here... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette