From nobody Sat Nov 30 19:09:15 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 4Y102z6vPpz5fW8J; Sat, 30 Nov 2024 19:09:15 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y102z4wlPz4FXb; Sat, 30 Nov 2024 19:09:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993755; 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=DzrLnZ1Sr7hXRTXA/+QuC8xR8zPh0k/iPXXOlJqcqxw=; b=uHk3861zQDDeVtJ4QWxMl5/jILrwaPwTaiwPXHnknsGi0u+x2c4rdU3IM1BXIAsDxXKCHY GwuYwArk5HZzTNjQW1pEgJ8j7mIOSREmhGofx+I2UAMiYrEL5sWL54mtlxiDIsPeXNP07u O++O7yFYXC41AsCRse/XFk1t1LxCDP1+JgBkuTN+bOFg5d1hrqDLzm5uC6yBUAATZlMdaX 8PFA1VagFm2mcE8hXPhS5SGv2r14ol5Ytg9wgH8Sc95V3BcJkptsjeXtBoEsUnH41Q112X v0Brurt0qx2xGv7GPQICerIDj3HtW+ljuX9flIcpiY5y9ubw3C7kdvBA7bvTaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732993755; 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=DzrLnZ1Sr7hXRTXA/+QuC8xR8zPh0k/iPXXOlJqcqxw=; b=FolnQ1/yR5D0ZkJMCYSixfezfNjpBWIAtYSr0CF+Lz4D9t9995JInTqY7dSOPDjF+8th4T 5+2sI9QJeqGCC3qugiplXqE7Ylsu/IJvVEKIzZP0I7lkWp3pXN4JbTq+LorFbJNFExIPVm UzzpnqoKvId1sgsfp1/kzx68TJjhae1aOZASU43tFJfmYrO/dGD47Mblnevu5QhRQmRiva eVYzQwAjl/GecGk3Lahgp65DigbgYpm7PBUF8/B+/NXHK+YKd4TwQuFTof3hF50bRmnKlE 9BjlGN2SsRAqHzMEtz6tiDMcbqIBCDQTxkOKsa6b1Iz80R4ePPJAKnudInM4Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732993755; a=rsa-sha256; cv=none; b=Va1QQhxEM4hdNTmfxrZ3mnz0n5lUTqlkoQSD1jCv4/5mMjnlRLwJILh8jqs8Z3htQQcDjA mryM06ZRVw5cZymWrf0rBVTgrMIr+1aP/wtEmWPwtF1gX5cI6FCu5JPf1IarHLP/F6GB9R WHCpPUXqBGmpdsm9tPSJ4MDZVkbEIvhGiAA/jDU2hYLUj0WxV+/AIKCBaWUirIWd6DEBIw kUZwZ+JXUqSvRAmbzA79bDZdcjfUTO4kWPQR+vNWCCHfrCiJdtfUSv9grXOqlgwskVS0b5 slYLhYt5T6PNjk1in4h3tNb9Plb4OmXeie/fKNgN4cxfA+eVPP816gvDQpwKvw== 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 4Y102z4YRDzL1H; Sat, 30 Nov 2024 19:09:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AUJ9FNb097629; Sat, 30 Nov 2024 19:09:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AUJ9FTO097626; Sat, 30 Nov 2024 19:09:15 GMT (envelope-from git) Date: Sat, 30 Nov 2024 19:09:15 GMT Message-Id: <202411301909.4AUJ9FTO097626@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: ecefb5d33ceb - stable/13 - 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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/13 X-Git-Reftype: branch X-Git-Commit: ecefb5d33cebb599ffcc8f6ae29354eb6e798424 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=ecefb5d33cebb599ffcc8f6ae29354eb6e798424 commit ecefb5d33cebb599ffcc8f6ae29354eb6e798424 Author: John Baldwin AuthorDate: 2023-11-15 02:37:25 +0000 Commit: John Baldwin CommitDate: 2024-11-30 19:07:56 +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 7a2cc4bfa7ff..5e79dd2af66a 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -88,6 +88,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 \