From nobody Sat Nov 02 19:41:10 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 4Xgp4k60xqz5cb0g; Sat, 02 Nov 2024 19:41:10 +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 4Xgp4k3GWlz3wc9; Sat, 2 Nov 2024 19:41:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730576470; 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=auQMckqfprd2HqSjWsFFZGocQ8ndEuJTYx84tEVEQlY=; b=HQ4Rf/4joljXTkZ77Vp7M6LhwQULZpWOJQr+gDxhsPzwRmVtzLNOyOJxOWivKOP4Ir9RwQ dTguOiSkbPDN7tCvsWKRF/bccEGQfrtzqZeXYBEg+5VFec6O2A8gEuPJRwKhAe1KlTGcKr ebxCXBqonMJS4Yzgaw/J8TQoU82Pm4rhTjEgnnv9oShl+BRaARvsOSOgYgQBfjHLbSbIbr ryrbs378BZbNFyAEbkJs7L07CK/8jFBhStoT82LClUmSKQXvGNTBll+vAJcRhU1xXAyEBE NHAeT2q+Ixa/LnKFnamncH1tkCi9DptbdSZGkQVGdLl0BAjxo5M+t0WnzEL08g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730576470; 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=auQMckqfprd2HqSjWsFFZGocQ8ndEuJTYx84tEVEQlY=; b=aLw09K9XsqbmaD2yrBSywzN5xd7jQYC2PNUUqyZGEXoYJnbjsjnyRnHHL+WViBCC471dnm B4LxnyUfZO5++KoQMaOvvoft7NLwoWDBOCmo8k/bcH2F7TZgr1zUZmNxVSGxEwY9vDRLJL XG0LpC2qAfytmHBLBqeiRIDlmEEnGnDgKryCaNfP/uEcer/BXX0Gs/ykKZvdTzORNDMkzw SrMhkpNeYhN7tLKdvtdf8GxBNyNMAezCTX3Csm7afGLcuAWxGvYWy7XvCsbzKpbbn0N0u+ ghTh/rftwrYIfjVNvuw3dQE5K/zgl4U1qcHM6c9zIfTp1T3XGOjqRPFaS29jXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730576470; a=rsa-sha256; cv=none; b=FaMgyHbrozhdUFdLzLVLi5krvV3nrJ71IY7iQM38ZCR8dA+mYZ3Y+fVOYOCjvFbFiwmV1z jIE70kxh8MJ5fa3d5ivi0EN2YnFQyRzQNEarXLb7oZ2BJc33vvXLrXdeM+Nfjcsg5L+Dvx FH5gC3E3bSCk6Dy8Nx7cmtMHVpjBOYwGI4A8QhntzXpnvOaq9d2S8SrRPKpwwhxomdYwvU drJ3JnAjQ7ZzuJmkfA6haOiddvSLPxYlDVP8zqoxzZEbasg8Nxr2G93wDgCpT2ew6ioGOs JOZCHcNyC1Gy6zi6HxLgWqzh9PsFcaLZQAEJU1dLxvYaQCpInLloU5SBpgK/Vg== 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 4Xgp4k2jNTzJ05; Sat, 2 Nov 2024 19:41:10 +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 4A2JfAXg044556; Sat, 2 Nov 2024 19:41:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A2JfAAA044553; Sat, 2 Nov 2024 19:41:10 GMT (envelope-from git) Date: Sat, 2 Nov 2024 19:41:10 GMT Message-Id: <202411021941.4A2JfAAA044553@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 814ddb3c8cda - stable/13 - Tentatively merge llvm fix for buildworld WITH_ASAN 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 814ddb3c8cda06686c5fe10f67b63bc2457e97b5 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=814ddb3c8cda06686c5fe10f67b63bc2457e97b5 commit 814ddb3c8cda06686c5fe10f67b63bc2457e97b5 Author: Dimitry Andric AuthorDate: 2024-10-28 17:33:49 +0000 Commit: Dimitry Andric CommitDate: 2024-11-02 19:37:33 +0000 Tentatively merge llvm fix for buildworld WITH_ASAN Building world using WITH_ASAN results in an assertion when compiling certain source files referencing ifuncs: Assertion failed: (isa(Callee) || isa(Callee)), function analyzeAllUses, file /root/freebsd/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp, line 514. This was already reported upstream a while ago, in , but now there is finally a candidate fix, which seems trivial so I am importing it right away. Reported by: markj PR: 280936 Pull Request: https://github.com/llvm/llvm-project/pull/113841 MFC after: 3 days (cherry picked from commit f3457ed94241be9d4c2c3ab337c9086d5c45c43f) --- contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp b/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp index 19991c1a7bae..3973a48139aa 100644 --- a/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp +++ b/contrib/llvm-project/llvm/lib/Analysis/StackSafetyAnalysis.cpp @@ -506,7 +506,7 @@ void StackSafetyLocalAnalysis::analyzeAllUses(Value *Ptr, // dso_preemptable aliases or aliases with interposable linkage. const GlobalValue *Callee = dyn_cast(CB.getCalledOperand()->stripPointerCasts()); - if (!Callee) { + if (!Callee || isa(Callee)) { US.addRange(I, UnknownRange, /*IsSafe=*/false); break; }