From nobody Wed May 22 05:37:56 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 4Vkg7S2v1Pz5Ldvt; Wed, 22 May 2024 05:37:56 +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 4Vkg7S1rfbz4MjY; Wed, 22 May 2024 05:37:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716356276; 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=lIXKGB1097VhDp5BjTWnHspxl9/YjEXSiDVJ7C/azfQ=; b=N3a1w8wP+XcYtCw5HyyWmKsTik+8FdbP/SfmppgbNKOK7Kyfi31bj7bZRb3g5+Mq0XVurM v3MSxrI+9BFZGsMDZdKngGAXFf/1ttpw11jQxESlapCpqm1HfE+fdg97oOk6fIlskIqF7D RuofkxLT1H09YLpIHhzYxdnOUra/9GrMJMBvSz8WtyYtiK9IgT2EKFOSDLuNt0JWfuSo5U CCuibwVXTAF8x9VbBTTyFwJattIj9EmzMo5Gd1mWkOmTMvVLl/nMPTRKjNunEcOqqXdGHV TCMd896/26UaW7qH1keb3wblAsqMFuRAfKyV+sZR4wg7tiaiIPlZdWJ5Kv5ooA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716356276; a=rsa-sha256; cv=none; b=utCis846XAEC5UlimoJTMpMAYzPj0fFG6t9w6Q/KHp7Ok4iSjPE3pz0wU9cvT2Qkwj0Gcm t8F2Yv0jCiN0Sa7rUCIyTX9y4/SK4X4nrMiA9HtfbJ1paMCTJVBf3TkXglyjlwm8TlkJI7 oJl1cxlyQwd8TvJIuTf2kovvhTJbGn57NQanneGg315jP9zEZfDrLLHGQ8Cf3hlE3sIygZ Is0cz1ULeI5uDcFSRD9Qq3wdYAiJMJGSCupJRjm+EUrKfjY8VRLAVatRconcNXbLmYypAR j6kWbEb7Cf59mzBqVlmoYvA2mSbsEQn39Vxk1hEafnL5cuOvU3RSIQsKiOoYTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716356276; 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=lIXKGB1097VhDp5BjTWnHspxl9/YjEXSiDVJ7C/azfQ=; b=bk88tL6Q3HO6opalKF5y//i/CpDA0+tV75DfL4m82xWzXfrVhk+cRQwk459uTHvoBfcdfc 5xicKEA5efyWB+e9Huvsf0dqQDRGAXZGPTmK6PN5JFE3BbRTojp17JT050d7uvEfTWHB4V QqpHTGNQCOQ9iKoi+4fMKx6YFuMbeAVToo1rb79irk/gAa/673bRlRN8WFjyslx/L5+Fvt 0w1vFq9VqQjOnnBRBS9hprg6ci6gANS0RCBC1ukEGFSL/LD4iuZ9nY0eReot3qUEHNcUoE 6fvEMxPmwKhpM1UfuT1nGh4AvrWKIWLWLYJdvBJSkCmglXLeu3A1RWMZKYiLkA== 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 4Vkg7S1S2LzswM; Wed, 22 May 2024 05:37:56 +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 44M5bu6c007295; Wed, 22 May 2024 05:37:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44M5bugu007292; Wed, 22 May 2024 05:37:56 GMT (envelope-from git) Date: Wed, 22 May 2024 05:37:56 GMT Message-Id: <202405220537.44M5bugu007292@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 6e824f371301 - main - time: siginfo_recvd needs to be marked volatile 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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e824f3713011f7955a4f88fb16445e8e2cbe72c Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=6e824f3713011f7955a4f88fb16445e8e2cbe72c commit 6e824f3713011f7955a4f88fb16445e8e2cbe72c Author: Kyle Evans AuthorDate: 2024-05-22 05:36:29 +0000 Commit: Kyle Evans CommitDate: 2024-05-22 05:37:41 +0000 time: siginfo_recvd needs to be marked volatile sig_atomic_t does not imply volatility, we must do it ourselves to avoid caching of siginfo_recvd loads. Sponsored by: Klara, Inc. --- usr.bin/time/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/time/time.c b/usr.bin/time/time.c index 92148ab2e35b..4c1ce06543e3 100644 --- a/usr.bin/time/time.c +++ b/usr.bin/time/time.c @@ -54,7 +54,7 @@ static void showtime(FILE *, struct timespec *, struct timespec *, static void siginfo(int); static void usage(void) __dead2; -static sig_atomic_t siginfo_recvd; +static volatile sig_atomic_t siginfo_recvd; static char decimal_point; static struct timespec before_ts; static int hflag, pflag;