From nobody Sat Nov 02 19:40:42 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 4Xgp4C1Xs9z5cb0c; Sat, 02 Nov 2024 19:40:43 +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 4Xgp4C0rXlz4vcv; Sat, 2 Nov 2024 19:40:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730576443; 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=pzMHRKGF/swfCT7zyERUHG8uoXgdIqs/NG+OsC63CvI=; b=OlJ5gtFTDlmyOm96U/cw7sff65O3mI0FUyCnAhu1Uvug+xJRnGha45ZXJSEqeT3W9ra3Y+ Bd74HwtWNGlHJSQdZ20i6mG/2REn48lpeOX13LdOTMq9I+ucXkn4GclwMSGU84Ck8aT5KI X/Pd6CRsGwy78ZIVDgFyjUgT62B5/MtLMtDVoIxVhAq/1mrO9gMi9B7EKncSSzg7j8on1i B90XotO0E0CfcZtbzBgvts2f1tKAMfZCTfnFZEsJY0BdsPAU5o1+TJVMo3t1ew0t31lC7R sIO1caybwjQG5j2qk2T2Ut2rmMFMVG249hMMlGk+6jh4dXie0CQVoMFO/mh0sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730576443; 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=pzMHRKGF/swfCT7zyERUHG8uoXgdIqs/NG+OsC63CvI=; b=FZPrKPPCB1kj/UL3rh+MkXChhFE3FEXTOsWbD/eRjjySUzWYliGiSLuWEiLHpduHpWvgYS Bw2cCv0SssrxA3uiPylBkzPya+yZWiijb3H9I7uLSZZZxUf3iB+QvWSLJGe/GpG94KmRJ9 WUvbGHpTVzWGwonucwkfGZAWRXsjlSRzKyn1wuspMBJCZubdBNMTuUFdFK51I1Y0Pn0pw+ aBiE/qppgGVHYFvDh+2hncTctTTudPY9bI7UXSoorWxWA9+ALWxPCM96glkItSYk018MdY 7owxzk/vE0EKzJ27GQh5gH2hBAert3En3GHqCIatmwAiDIrV8mb2jX5AiNEahA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730576443; a=rsa-sha256; cv=none; b=gROMEug0i6Zx9B1i7Frg7lCVFoBNTXiZv+4ThtJWJa3layyqv0+hL3cBmPqNm6IFdKdVHm pNuw0hiEhJzzxt7wcj4eIuK/yQicO5R1/Isp4dY82Rfm7YssY8sqE2VMW4NSqJDHPw5Xmw xF2r0IeS7hiSPNjZ6Hh1TN55smhA67pHsinqZ+/3IsgVEAWEONQp/xMjD7DQv/8uA2Athw PRpxEsC53Pst+aoaPwGkLcJZin4sgPP5Ij7zkP9HlJH4idacONdmSh+88iisFGhEGZhWFK ulbbD7er0vZ2aGEbARy8gnGkhLprVirYXfGCjOhliN3pga4g0zWUyvBz0wNEMA== 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 4Xgp4B73D6zHWP; Sat, 2 Nov 2024 19:40:42 +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 4A2JegV7043308; Sat, 2 Nov 2024 19:40:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A2Jeg7L043305; Sat, 2 Nov 2024 19:40:42 GMT (envelope-from git) Date: Sat, 2 Nov 2024 19:40:42 GMT Message-Id: <202411021940.4A2Jeg7L043305@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: 17d39df524a5 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 17d39df524a5003131398bc9fbdf8c9fef043d05 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=17d39df524a5003131398bc9fbdf8c9fef043d05 commit 17d39df524a5003131398bc9fbdf8c9fef043d05 Author: Dimitry Andric AuthorDate: 2024-10-28 17:33:49 +0000 Commit: Dimitry Andric CommitDate: 2024-11-02 19:37:27 +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; }