Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1693157pxb; Mon, 13 Sep 2021 03:26:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxXB/ZP/piu+npZyT8OBqoa6YEZUiQeOQZQ/gPrVMOikXCOa3Av5XsrpejFhnf7Co49kWZ X-Received: by 2002:a17:906:9395:: with SMTP id l21mr11713929ejx.308.1631528806511; Mon, 13 Sep 2021 03:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631528806; cv=none; d=google.com; s=arc-20160816; b=fCSvuvkpqKoaJQMFidB09v5CAj/gWEuTPh7qwe74ofjP31AZ7NRnXIn2MbqadwgUQo QlvHE4EPcDcNapasWYzNHfGAt+LIi0XeiWwit07qUpWm0lKQlgvUKeJQDeVhp9zLCCZE aEwvfId9WWC7FCt4qrdm//D+iXSk1FRWgAIYmQPRnPydUBkZsc1pg3C+ZkZMolUhDJuo ZxkhIbi0+bM26k0axKRVS5VXawjZ2mxzBpGmuIHiiGnou2xbsOmyR7vDUtXD5IGrk7ZK ejJayvUnEpm3p2n2mtG5yt81xYc0QIM5jwNXyEmRL3rvxAhul467GrPmjyuaf2vbGGAn zBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=m3N4HNssfch7iAlbhBngMJCE9836KiTe3m5nL7YQgN4=; b=RZnfHpZ7Zm0pWVsVO4CsX1KtXhWNl5sTyTgz4fh2WMaf+2Fn/DP2cJ9FVotwSfqAH7 7EKsmMXrefa2i2vEmTbPWXJ6/ltFoGHfjqSkmK3yA1jEffNehvt+sh+Mcva+jAyASdoR 6vjDCWxMx53+Klar0L7WZyeA972gnOsTBJ8x+s6U/Y60AQPW9uhxqgg+bmLDOIiOFF47 g75+txKhfqeEnGFzscHLvhFhaeOrsDyQcPcOBe+JsJNWstkX5JX0EFNgfgIQOei9vnnI GV7B7Zur4gJp4n0K2KmUMQFI7Xt365+qe9kWQGKEOy+dq4G9NoNBMzhgRjhxZLZNDB0+ 0qAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hq16si7675461ejc.653.2021.09.13.03.26.05; Mon, 13 Sep 2021 03:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238815AbhIMJvG (ORCPT + 99 others); Mon, 13 Sep 2021 05:51:06 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:59176 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238040AbhIMJvF (ORCPT ); Mon, 13 Sep 2021 05:51:05 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id EA6771C0BA5; Mon, 13 Sep 2021 11:49:48 +0200 (CEST) Date: Mon, 13 Sep 2021 11:49:48 +0200 From: Pavel Machek To: Nick Desaulniers Cc: Andrew Morton , Linus Torvalds , Rasmus Villemoes , Nathan Chancellor , Masahiro Yamada , Joe Perches , Arnd Bergmann , Stephen Rothwell , llvm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/10] raise minimum GCC version to 5.1 Message-ID: <20210913094947.GB12225@amd> References: <20210910234047.1019925-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig" Content-Disposition: inline In-Reply-To: <20210910234047.1019925-1-ndesaulniers@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --H+4ONPRPur6+Ovig Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > commit fad7cd3310db ("nbd: add the check to prevent overflow in > __nbd_ioctl()") >=20 > raised an issue from the fallback helpers added in >=20 > commit f0907827a8a9 ("compiler.h: enable builtin overflow checkers and ad= d fallback code") >=20 > Specifically, the helpers for checking whether the results of a > multiplication overflowed (__unsigned_mul_overflow, > __signed_add_overflow) use the division operator when > !COMPILER_HAS_GENERIC_BUILTIN_OVERFLOW. This is problematic for 64b > operands on 32b hosts. Please don't. gcc 4.9.2 is still in use here. Plus, someone will want to prevent overflow in -stable, too, and you can't really raise gcc version there. Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --H+4ONPRPur6+Ovig Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmE/HrsACgkQMOfwapXb+vIE3gCgw0HkhidmfYw6S+rmXZktbNr8 /oYAoMTOKfFL+ay0TnpmYFWqDgrZVoBY =ZOqT -----END PGP SIGNATURE----- --H+4ONPRPur6+Ovig--