From nobody Wed Jan 03 17:50:09 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T4y0y3xscz56MVn; Wed, 3 Jan 2024 17:50:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T4y0y1Qqkz4rsT; Wed, 3 Jan 2024 17:50:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tUElhK05aqPbANr6Fm7Y41Qq+HUZd22Jkp2ACj4oGlM=; b=RrtR15C0T8/Ve9zlubrCKOzp/TRu5a0iC2tX83+VtY69mIyVPJ8ui7HbirywHZXhvVUMMY Mu4au8mbj5ePvUGZeLhXwiRA7iy7iaNuEvEuV1OSAS8XNghbrX6+UvAdgMjGT0AyBihFzz HTHxmzmfZGIze2A+RS3nUAeS0+q/cKN+jX5pk9/B9y49+MG/NY0y+kWa50o+Ze1nPzCj99 kxYajBVewEgNUDP6NPtPYS62O3OZ0Ju9ETxy9jLawW7zvIoxPkjSy1NC93QkCv+j7q0vaX 4uDi3kpCSdSpFLhVhF8iomgv2baaFCS6MSrv4WBMqMJMUFaYViqumrCo3H6blA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704304210; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tUElhK05aqPbANr6Fm7Y41Qq+HUZd22Jkp2ACj4oGlM=; b=Ca8KCh1X4ZkmTlKBGk5mLy232k2B8DTGwpZwsCEGEuxV77b3HpUzCnpUw/SR2rIxKXaZMc 8ttdmZdmoqDuE/Xxiiz4J9iwXQLD+Bp7c8x5ajv//VDLjImo9CfxyxXdkpzYGDBh/l8MUf YY+xHASsmVuiTtL2uTKcCL0JwDIR03Y+1Fj/SU22MYtMBXr6YwDxFM0T2jQMTF4qHxk/oC 7A+XwPxcd4ekweB1ivG37gLYjRn0C8q1x1wX7OAN4oCl5BtZfdE8yKaKlDNROAWLD4hPbe FnDJFUa+I3XZgSoLgEwGwCkizm/WRn6NG7l2Se/qWjUiO2lANe3Mx445yxY9xA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704304210; a=rsa-sha256; cv=none; b=q8zd4iTJUVbNVxQ2odKk+HqRj0CzD5fehlFuytDtVDtTdPaDrHcYAwe+zzfXt9EzoxOD5P Bcaoac/Yxdn7SeFSoMJTpC3ST/+z2y37EX+nRkej5BlAC2yK0lpmg6mSz6hPdubOYPlPwf xOR1YPxsB8Z4DlULFD0lui5mqy4VoAO6QPliNh5h/daICjHOnoS6rAYd3feIkImY6CmRL0 2QPayQplPnVsAaEBEWTegdupAUDrWf5VBZr9IkuV4Lw2I2q721cTIjsWimcTFooKYXh1yz hRRFyEjGBSwTSd7x1rMH0BKfI8IFov4Ub0IYY9Fnr0GiT2JWrpcFDFYVKUxRpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T4y0y0YDsztWw; Wed, 3 Jan 2024 17:50:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 403Ho9Wi039266; Wed, 3 Jan 2024 17:50:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 403Ho93g039257; Wed, 3 Jan 2024 17:50:09 GMT (envelope-from git) Date: Wed, 3 Jan 2024 17:50:09 GMT Message-Id: <202401031750.403Ho93g039257@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: fd3190c2da0f - stable/14 - sys: Disable -Walloc-size-larger-than for GCC 9+ List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: fd3190c2da0fa34139888ed0f82fb49f8011ab47 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=fd3190c2da0fa34139888ed0f82fb49f8011ab47 commit fd3190c2da0fa34139888ed0f82fb49f8011ab47 Author: John Baldwin AuthorDate: 2023-11-15 02:37:25 +0000 Commit: John Baldwin CommitDate: 2024-01-03 17:43:48 +0000 sys: Disable -Walloc-size-larger-than for GCC 9+ By default this warns about sizes larger than PTRDIFF_MAX passed to malloc (rather than SIZE_MAX). This doesn't trigger deterministically, but it does trigger for kmalloc() of struct_size() in iwlwifi's iwl_configure_rxq even when struct_size() is changed to use PTRDIFF_MAX. NB: struct_size() in Linux caps the size at SIZE_MAX, not PTRDIFF_MAX via size_mul(). Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D42587 (cherry picked from commit ede077bf2a259c23923d1ab1231dc8c4577e6672) --- sys/conf/kern.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index dcaacbf831cb..6cc22a44f51e 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -76,6 +76,7 @@ CWARNEXTRA+= -Wno-error=packed-not-aligned .endif .if ${COMPILER_VERSION} >= 90100 CWARNEXTRA+= -Wno-address-of-packed-member \ + -Wno-alloc-size-larger-than \ -Wno-error=alloca-larger-than= .if ${COMPILER_VERSION} >= 120100 CWARNEXTRA+= -Wno-error=nonnull \