Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2886697rwb; Fri, 20 Jan 2023 08:30:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXtQKeDQm5xB9f3T2SmFbJGlDePmRCbzhhIN/DIop6ITbWSsu4GaIUt2RqVKa2pZTcZVGM4u X-Received: by 2002:a05:6402:5508:b0:49e:9751:2f17 with SMTP id fi8-20020a056402550800b0049e97512f17mr5637137edb.17.1674232245532; Fri, 20 Jan 2023 08:30:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674232245; cv=none; d=google.com; s=arc-20160816; b=0tLW6xw97+PhIoEcHp2p4QUjAUCiOEKNqisQei3/bk0HCGl8Vo2NKjBrZ9GDBtGPFv u42kZ5+z0nhlL7uFoS9H62wWXdhfPZboF1wPrhXSoQNL69oGIDpkca9JHcno7z/tTYEA AhlKzt94Q4rsUqhEFU+eBVsZUhlOM0eqOkmCHnc8Wk/uEmTRUU9MhXmXWFBw2sqruIiI m0v8oFgOw6OkgvmGy+I6cLzaTPgk+bKvnwAU4jRF7KWlVaLidLlIbtWvEGC1GvqQMont Vo2VlNKa0JvTAukIh6+WtXgkr9nCria0mXqFw8wzJEwrt16BlTejc9R4nncsSNlGqOhN UoAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PjoJ42EgnGagzBWpbrImMu5qIYgZY+Uq1SMiOfjJCwE=; b=ZYN5qGU9gbVm9qwFck/xCXupLBz5qsccC1scXJvQsP+n2NxqDtkCC7UmVvwYlh83/z jwdRFF+USTCRnPw/rH3Evp2t4MedAdRa8H9j7pfqBXTaA6mukHOKCrGo2RRJ8D6ymg70 Y6JAIGsNBg2v3MY8Phhf0f9tRjVXwuBuAV4uPMIH/jtqnlKgLbY/zPgEt6mk0T09M9Bs HLeIgFrHdH+NKcGoA3+zD4aDAurr5t8aczTJvyhgIPhlqb2rNaCXbPNrQd1ufxf3wyp7 Xu/Y6XSzd9d3q2eKkC8h859y8zuR6+3HKJsOXJgORLTVuAtaE3ovWU/PIOyxB0afHO2/ 5A6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MYFDw6J6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a056402032b00b0048d858ddabfsi41019233edw.414.2023.01.20.08.30.33; Fri, 20 Jan 2023 08:30:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=MYFDw6J6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230493AbjATPdO (ORCPT + 49 others); Fri, 20 Jan 2023 10:33:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbjATPdM (ORCPT ); Fri, 20 Jan 2023 10:33:12 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FB91E8 for ; Fri, 20 Jan 2023 07:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=PjoJ42EgnGagzBWpbrImMu5qIYgZY+Uq1SMiOfjJCwE=; b=MYFDw6J6w+vjOHbQqp65d7Jpnd SKhuANy7rZ71MIIp0Zf6arLF6ikMqARW9PJo641mQp/6JYaV4pWNmOGp4z3jD5RIhuYmAF4UZoagJ c5bBPfynEpuejJTPVovQcbOvCFXcCmgdaOan1KOfK0Vu59F6iwdFeUkbSlERHhbefIyr/1c4QAMSE FUOTAlxx4AsA3K6puj81qppOrGQ6vvrLZVwgLV9+hb4FteIx3PUAv11qQI0MhcfWa7WUttDBpG74Y 1Iq0tMRkhDJFguM95s/urrHM2Jds+BcEFwnzWvX9ZnAwdKN74WAyVRSTXeltd0zHVHjWGTJkPeBql u8rGXbGQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pItNp-00250F-HX; Fri, 20 Jan 2023 15:32:50 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5F56430008D; Fri, 20 Jan 2023 16:32:49 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 49013201C94AC; Fri, 20 Jan 2023 16:32:49 +0100 (CET) Date: Fri, 20 Jan 2023 16:32:49 +0100 From: Peter Zijlstra To: Sandipan Das Cc: "Erhard F." , linux-kernel@vger.kernel.org, Nick Desaulniers , Joao Moreira , Masami Hiramatsu , x86@kernel.org, Josh Poimboeuf Subject: Re: [bisected] clang 15 built kernel fails to boot, stuck at "Loading Linux 6.1.1 ...", gcc 12 built kernel with same config boots fine Message-ID: References: <20230119022303.177052e4@yea> <178000f1-1464-03cb-2335-a01b77e70692@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 20, 2023 at 03:57:48PM +0100, Peter Zijlstra wrote: > +extern void __static_call_return(void); > + > +asm (".global __static_call_return\n\t" > + ".type __static_call_return, @function\n\t" > + ASM_FUNC_ALIGN "\n\t" > + "__static_call_return:\n\t" ANNOTATE_NOENDBR ANNOTATE_RETPOLINE_SAFE > + "ret; int3\n\t" > + ".size __static_call_return, . - __static_call_return \n\t"); are needed to quiet some objtool complaints, but otherwise this seems to boot and build a kernel. I suppose I had better go make these proper patches..