From nobody Tue Jan 30 18:20:18 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 4TPYPG2Mpcz59Jd0; Tue, 30 Jan 2024 18:20:18 +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 4TPYPG1v9Dz4RVq; Tue, 30 Jan 2024 18:20:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706638818; 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=1pLeFOrHdrUC103vjqZ3SQkaEybHKS7iT+UPJs6Pkf0=; b=bi8T8Xav3EEOhxNoWtNQqcYjiEi361OV1sZ6pvskIR8h4hIFKOCHdXgM/NVYNGuj9SID9d /a09Oi9yOfF5dKLOrr1qR6XGyZqClsX1ZuE0ICgPgZiNPpu9f2CPkBBYDNtI6RiU3ZSWU8 5HaPt0feUKLGDGC+fLCr5a9RufY+LiQdnylMEoQKb0ZnDv7bXWH9Ow0nRuYqZIYHeX32fp CYF27TfEoJlXaZNBSTPhm5mWM6fCqhHCQr+5rk73Q1WdUu75gbKB4CLk4V4u9NVYOB8D0u UidHIhgDbTpmrNQ0dQ2I4ZCVCWvDrS7af0JiQeMHnIglpswB0NysEvJO5GC9FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706638818; 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=1pLeFOrHdrUC103vjqZ3SQkaEybHKS7iT+UPJs6Pkf0=; b=QcMuRt+Gm7HVg7p/QkQkjQPh6GqeL/bO/X4Xh5V+y2m8eLdSMSAxuic9JSvy34aBya+PIM tqjNoW7HZRUO7H35EMXbv5OhKBwObAd2IGsTF+hKAkOqOg8peMHGiDPZPxARXnZHg+2cVr sZfGbzGnr52k4CSLrn/C8rHw+806eTGK0+LnmwkMMGs47WEQyY20BPwS3XgbQ/C5hmZmBI SvMYrG1KiwMYO3YY4lAWQZflihbiM6KrgZ5auUhrY4wlxIE12xtdnkZKPmC+GFVx3hhwQ+ j89RgbYnsDgfgJmNLZUhkOqFvx/iWcfd5kN/+0D203uAfv7LTEx9Whv3Bl9q7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706638818; a=rsa-sha256; cv=none; b=WcE++Uc0PxsY9/99a6IHy7E/iH1nCoT5BiSDjUfRBZhKlWt5KGBkcKE39kpjN7qswOwpgJ JsEt3KxtagBceArcnlf9YIuO0dd/GH5vU5P1ofu1P2SCi2SFwBAnuf8oBWqRglPO6zVsiE r18pGd07NvYUe/vsW1Oe/7cHqPjL1/c1VLoATNuDnfmevzQw2CZZZTjYDrM2P2GWlYjbmb zjKoSHO+tlL8iacu1G0/zJWtQTQ4AWW8omb4KYP7pLdhFEiZGIACxuk3+3O0qWzMo04J7R eio+qCr5PB+5HzvK05HJazXEF3kmxtBEUmr3gDd/Vo5au92F+HCmMlsGy3ti0g== 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 4TPYPG0rg4zmPK; Tue, 30 Jan 2024 18:20:18 +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 40UIKIFo010987; Tue, 30 Jan 2024 18:20:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40UIKIqc010979; Tue, 30 Jan 2024 18:20:18 GMT (envelope-from git) Date: Tue, 30 Jan 2024 18:20:18 GMT Message-Id: <202401301820.40UIKIqc010979@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 06fc42c0cb1f - stable/14 - libc/amd64: Disable ASAN for amd64_archlevel.c 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 06fc42c0cb1f34063a206d82c7076cba4caf13b9 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=06fc42c0cb1f34063a206d82c7076cba4caf13b9 commit 06fc42c0cb1f34063a206d82c7076cba4caf13b9 Author: Mark Johnston AuthorDate: 2024-01-28 02:49:41 +0000 Commit: Mark Johnston CommitDate: 2024-01-30 18:01:58 +0000 libc/amd64: Disable ASAN for amd64_archlevel.c The code in this file runs before the sanitizer can initialize its shadow map. Fixes: ad2fac552c3f ("lib/libc/amd64: add archlevel-based simd dispatch framework") (cherry picked from commit 4dedcb1bb54cbbe8043c79ad733f966b6ffc6972) --- lib/libc/amd64/string/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/libc/amd64/string/Makefile.inc b/lib/libc/amd64/string/Makefile.inc index b1369841bc74..d5bb646c5c53 100644 --- a/lib/libc/amd64/string/Makefile.inc +++ b/lib/libc/amd64/string/Makefile.inc @@ -28,3 +28,9 @@ MDSRCS+= \ strspn.S \ timingsafe_bcmp.S \ timingsafe_memcmp.S + +.if ${MK_ASAN} != "no" +# Disable ASAN for amd64_archlevel.c since its code is executed before the +# sanitizer runtime can initialize itself. +CFLAGS.amd64_archlevel.c+= -fno-sanitize=address +.endif