From nobody Sun Jan 28 03:12:57 2024 X-Original-To: dev-commits-src-main@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 4TMxMF4zrPz57Yq0; Sun, 28 Jan 2024 03:12:57 +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 4TMxMF4RBlz4nnK; Sun, 28 Jan 2024 03:12:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706411577; 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=iW24du4tS87zLZ0Xd/U10UUKIzJCjZF6CZDd8xtIucg=; b=JRox05TXR0nwAkHYBPZgF5JMOaRpmN6oge89hWEUxKP27E1bDGico6M3Lz+FoX9LORmOFl dwL0NkgZkpLAUYqXMCwKhnL9rew2OtBelj4kjyWTQmSUMFJsuiCmBXwhthkeSOkjQn9zRS +bWb+sYD9v2dHMRjY4Y5dYpRi42yA7cqZhN4k+UPYUR8os6rFMlTWfbQeSR0SxW18a2NF1 jlGwO4vNPnsDgazdMiuos3CGrm//7gGhHRZ8vspoe1flU2wD0C5HbU/UmkSGD4s21WsNjt U5TH0x3kU8kyl7T2UUhrbNcJ2yBSg9weezSkke3DusqvnIoHIIFWRcyy1N7BJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706411577; 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=iW24du4tS87zLZ0Xd/U10UUKIzJCjZF6CZDd8xtIucg=; b=yX93DeLPl2h6AcKXImyqAK67s8hu35lwwFtwdCWEepmzd0RQ5tLtYPjfp1sRzGNe9wkuIJ L2q9Q3ovYrnhrR54FFQl42prVXPwWV/UmWJtIQiyaWMYUTmNqz5o5qTdacmXedsFvALz2r EfmzUcVleCDAqhSdbuSPIL0VMYAA29Mn4cIPg4VvTUwl/Z27LTK0XxIz70dQr8C1ofrT1A HEJx6jEwS0FcGBRl9JOoetKUTBoLxRRhcX8Bs6IRv55fX2buZ8js2p6gZKKFRZ7xWZRqx0 3IMLcRQtPEnyWU17Sz5M0XEBr7I6jenoMZZn09Bob/B/dsSFoKqNOiXGj0m9wA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706411577; a=rsa-sha256; cv=none; b=a+jWYgX7z53Qn9fHORdSmm3ZOOGXA8n6kJYhoyLmEp2KsClgyTazvVp9iD37q1MJLvk2W0 +sNdZU2x1r9aLtqJiivlressPbfNHYEGLAsZa8DjBXxWhr7Z3SWhPyRCvCNSFvzI5O7/Rs aoPcmqrZ2XO1EMcSqVrLc8xJidomgcHKPzRx0YKC3UM3TEKdVqvk8hYUQa2OYD+0pISKXb Occn6Q8yeNBXBUh3tHs4D6CBC5EYnJyRX6mPqETn0GvVfcHsb3NRL/vGOeYBS6vJD7GXfz rfVHrhIOwtdGP0/Dkxuyas5OBVGCls3fgtVqDtJAaocQcoj+9fD2JrKtl8jFoA== 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 4TMxMF3XJmzrZr; Sun, 28 Jan 2024 03:12:57 +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 40S3Cv2T031680; Sun, 28 Jan 2024 03:12:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40S3CvGV031677; Sun, 28 Jan 2024 03:12:57 GMT (envelope-from git) Date: Sun, 28 Jan 2024 03:12:57 GMT Message-Id: <202401280312.40S3CvGV031677@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 4dedcb1bb54c - main - libc/amd64: Disable ASAN for amd64_archlevel.c List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4dedcb1bb54cbbe8043c79ad733f966b6ffc6972 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4dedcb1bb54cbbe8043c79ad733f966b6ffc6972 commit 4dedcb1bb54cbbe8043c79ad733f966b6ffc6972 Author: Mark Johnston AuthorDate: 2024-01-28 02:49:41 +0000 Commit: Mark Johnston CommitDate: 2024-01-28 03:12:01 +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") --- 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