From nobody Wed Mar 22 16:24:35 2023 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 4PhYhg43g2z411yP; Wed, 22 Mar 2023 16:24:35 +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 4PhYhg3Bsgz3Mvr; Wed, 22 Mar 2023 16:24:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502275; 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=a7ZA27MmqHBThMt2uWDIq4igiFRzdlFn2uWGK6r9b0Y=; b=Bo8Y0Lkc6onyYb+1kOVDNJE9QwgfZXGXl4R4RSQOtoEMwFeapdZCI5wyiFvdAq4sXheEzx SFaDMi9R7mMYSHYOem8p9EzPxGzZg0KN4b/YbkNot9KkBkwr8wjDEX6O3+shUCbUma8uWr 3B0ngmS0D6158EOLasAa42RvSfaKgItsMy+WeUVvNq8rLEghfn1U5zkms/sCijRY4e2uR5 cY1rWg5LWCDeTrYucUZIlAVlFk7fU9kpOqoH4S+tdnU9zu0AY0PX05sHBZBU5xxpCqTLR1 6FXFvV02uBDoKJEzlmf2BGZIY2TkkGjrdpZPCRGdFqAAoZ3EUUyBUND3ldhkkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679502275; 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=a7ZA27MmqHBThMt2uWDIq4igiFRzdlFn2uWGK6r9b0Y=; b=R39CCTKkotWziKTcw8ZOC/R2gWzntofUXUi0hVnH2Eb2TgNasscx1ItLSeFnI8UWifPpu1 l3szBhnl+xTg3m02t76PjbV8ST1ZkeRvHIADWQ9PIJx2rhseqWCs4YET2BSGGsWZBJeZL+ 2gsBq6jnvkxdjaL1yasit1VGNXO5dhkJcSn84TcJ63dqG/+ms17RzqomNhn6lr0VyHQCAY XyesWxXIrnRsDPl4XCpzF9enYksIQHMum+HEeljJcNLD3ibWfZNdgO1tXZeKVuEOQtlgec ssV/qwc9UBOTa6IKpRhZqaLcHPAs2orLSsALb7w0VTXmEMsphO7FsZOn/fsXNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679502275; a=rsa-sha256; cv=none; b=kPOIK5SNmdjzDE715Ez+eSMao3jOdkiP8TmvqkcmbzTerzOiqIVGhryrY/omRfkDXDEfAT Uok5oN1boIR1bt1xK5vHiB0Qo9x31tsVxSK0kpgPTwglV8pnhOYGV7tMeSVhCsD7QApZwJ c2g9T4UMc80sZ6byZ16sYINHspHApw3V9Y2q/dnVzrlVqCZILrIC0lmyZpn6KsAOD1QwjK leQ28pp+8xSb0BYmH8q2PLEE1A/pIAV/bQaPhgjnAJuUSnQUG3yMv0BoPaMz4nJ595OKl3 Qgccm7KyDjshYy8gdhc02OqwAIK4OxX96b6Eeeo+DSmA5INSHL+7ye5BUmpmhQ== 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 4PhYhg2DBDz11Cn; Wed, 22 Mar 2023 16:24:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 32MGOZcl007643; Wed, 22 Mar 2023 16:24:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32MGOZIm007642; Wed, 22 Mar 2023 16:24:35 GMT (envelope-from git) Date: Wed, 22 Mar 2023 16:24:35 GMT Message-Id: <202303221624.32MGOZIm007642@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 3d2837f3bd04 - main - arm64: Fix sig_atomic_t limit definitions 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: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d2837f3bd044d879d652e64ced79cd890e690c5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=3d2837f3bd044d879d652e64ced79cd890e690c5 commit 3d2837f3bd044d879d652e64ced79cd890e690c5 Author: Brooks Davis AuthorDate: 2023-03-22 16:22:21 +0000 Commit: Brooks Davis CommitDate: 2023-03-22 16:22:21 +0000 arm64: Fix sig_atomic_t limit definitions sig_atomic_t is defined as a long and thus is 64-bit on arm64. For some reason its limit was incorrectly specified as a 32-bit number. This had the unfortunate side effect of causing gnulib to override most of the definitions in stdint.h. On CheriBSD this breaks all software that uses gnulib in annoying and hard to debug ways. Technically updating the limits might be an ABI change, but these defines are largely unused (the only use in tree is in the libc++ test suite where it's use an assertion that will fail due to this bug). Further, since the underlying type remains the same, we're just increasing the range of values a paranoid program might use. Reviewed by: andrew, emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39193 --- sys/arm64/include/_stdint.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/include/_stdint.h b/sys/arm64/include/_stdint.h index 32e5b6fd081e..d73a9c088b59 100644 --- a/sys/arm64/include/_stdint.h +++ b/sys/arm64/include/_stdint.h @@ -143,8 +143,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT32_MIN -#define SIG_ATOMIC_MAX INT32_MAX +#define SIG_ATOMIC_MIN INT64_MIN +#define SIG_ATOMIC_MAX INT64_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX