Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp931052rwl; Thu, 10 Aug 2023 04:05:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWd7H0aI8DFCbz3M5yrBbdk+awKQoTjZ7E3/JmXDYNHZ6nfHdkPzPzcd1+I+v5z02/tviB X-Received: by 2002:a17:90a:d58b:b0:268:7ce2:ad20 with SMTP id v11-20020a17090ad58b00b002687ce2ad20mr1501113pju.21.1691665512010; Thu, 10 Aug 2023 04:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691665511; cv=none; d=google.com; s=arc-20160816; b=JUTrof0U0EjuYoSKPYSGKNNr9yA3+4TcF59IaLI5oZG4Bzr0hQnuIcXum44QhdMdxz fVRgs6NEXRyJlFIVpsRoUzLABIh/71CMVWgbpNYTpjPPegvmwyPYUBKDW4fFGmgEiT+/ /8uF2dk8+IYMhQ2HFc85DQvQsUGxH0gAZoQg5q8Oawtz8MewnO8btjag+95hgMCPODSE WA2VLd9XO9j9npt2/2jN/NQLDaE7Bwpqqi8MnvDvGQcPNaU6LvJ0LR5yAfMVrtpUhd+7 8EI4Bgp2n++8tC1n2CtAD6T5052DlAuMMgmzeHzpph8Cot+pLpDbWVaAkLzCl0d4txLh R/Xw== 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=JIw1qhxFZEedFl3R7in5Sh6GHUvt9ldwDc3MoEuDLEU=; fh=qbL3oTtvI8s5YNAzoA11vdqTq8Zmmw9LvjvyLWw5wyA=; b=K/7Mvv733RFZECsGnq5bZetweYzni/60xEO8SCpoBXEl9RrtkjtYHCwNzH8QjbEUen kFjfxVz/titNfTum2m4pszA1WaBSSwfZoHNWbrMk+vbuZYH4M4b47SljvEomNYpVD9rm rJUIip+KERyOGK8rjK4wZqS8WtCebZBy8PJs4V04Y0nZsq5MRsw6O9BzruyrNv0+/gfw PkJCZHZV/b0N//gYzqlPiJ/Z5SDaKi/DT3ilCLHZY8GEsDZ/YEJcksdpY5mCoA8z3Sgh LCkVyFuNoUOcWPJpdHn/sYNH3cwuCtnXYMegec0pc0pKL2TOj2F2CXvOCSWSfOJ9f9yT EJMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gpGE4KO9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a17090abe0700b0026b09e2e3eesi1259322pjs.47.2023.08.10.04.04.57; Thu, 10 Aug 2023 04:05:11 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=gpGE4KO9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234414AbjHJKQ4 (ORCPT + 99 others); Thu, 10 Aug 2023 06:16:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233486AbjHJKQy (ORCPT ); Thu, 10 Aug 2023 06:16:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CC90C5 for ; Thu, 10 Aug 2023 03:16:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C659665769 for ; Thu, 10 Aug 2023 10:16:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEF8AC433C8; Thu, 10 Aug 2023 10:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691662611; bh=rxQXVJ0yXjMi3ynyps+JjJfJqtoB7d6KO/4+z5Vs7Go=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gpGE4KO9/C1welyewX/UY4RrCys51AOpewra3tjc/goBaZ96i9jbT1YuB6Mos42rx HDr6GRkzc1KBEF9vs8aA5dNfCGm75zmkaYBS6DRzs/cIrOSKVcnDfqNyyansA23MZ4 wYi6FmobUCWxju8HXbV9+tJya0wEM8vVQgZw7YCVD8vZK0+6fhhYivMDX6fXVFj93U cDqIBu/9hQebyOYSWzB0kT1Q1HJTEXVIlAK8NWNWDQsOUbUjfHqWhI6e+fmjjrcUX7 Ad6bMEYInlaW27uWzEjs1e68gzf4LixxnS7UK6nIOFjvTaGyyaKtr6zDRmYVXYaK+i uGwN4Y/77R2/A== Date: Thu, 10 Aug 2023 03:16:49 -0700 From: Nathan Chancellor To: Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: Hang when booting guest kernels compiled with clang after SRSO mitigations Message-ID: <20230810101649.GA1795474@dev-arch.thelio-3990X> References: <20230810013334.GA5354@dev-arch.thelio-3990X> <20230810081038.GAZNSbftb6DOgg/U7e@fat_crate.local> <20230810090835.GBZNSpE6tCw+Ci+9yh@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810090835.GBZNSpE6tCw+Ci+9yh@fat_crate.local> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Thu, Aug 10, 2023 at 11:08:35AM +0200, Borislav Petkov wrote: > On Thu, Aug 10, 2023 at 10:10:38AM +0200, Borislav Petkov wrote: > > I can repro this here with Debian clang version 14.0.6-2 even with -smp > > 2. > > > > Lemme poke at this a bit. > > Err, this stops booting even on plain -rc5 which doesn't have the SRSO > patches. Just to clarify, this is the guest kernel at -rc5 and the host kernel with the SRSO mitigations applied? If so, that's the problem. The guest kernel does not have to have the SRSO mitigations applied to see this problem. Sorry I should have made that more clear! If not though, that's interesting because I was running -rc5 on the host without issues. Cheers, Nathan