Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4794246pxj; Wed, 9 Jun 2021 01:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycF3QjmcPuK8Q4HPile0n9xjN4lDMiUxJdy20W1Xe0+zO8e9JH21/lWm0oN1E/ojjfqcSB X-Received: by 2002:a17:906:e2d6:: with SMTP id gr22mr28032029ejb.514.1623228801171; Wed, 09 Jun 2021 01:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623228801; cv=none; d=google.com; s=arc-20160816; b=vtPeZcQwgWWZEdBuDNoBK71cFIqrOkS8OCqPaYBjZ7afvHMhrZro3az+kaKSr7Bck0 dV0ksqm1BDaELlhmyGerLBbnLuErDWV2BWm7bsETorjBnrYarScnEmAVNJBNjJKVSinl AAj5qEuLwwm/6w0gk3zxG1b6u0nl6zYdxXLUNIM2LS9rNz2lu9IcLu/LWTxkUP2b3nHe Yw76d/Vzus4tTIxDcgkE8U9I8rCmLmVu6VS98/Ysschd4kZAFPBtvMChT5/+w8mevLiI u5WJopFedffyynt3B/BzG5GZM2l8SKGVsjkF0PrO1ZBQufqHId3vZcmR5orkRUhSEgli XUug== 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=vE4hpBkarbGpaIGX2OZfGd8vijIiOr69dHEEgzwDXTQ=; b=FsA9IaWshGq1od1Nj9hyMzMrNbiq72syH4Hglki+/xhzKoyijoufqX8CavieYDZuhV SYBk+onDjXA+6MqCrpuRCEnCexc882O/kHMuM7FMUGvq4iI9t3b82oQo/es4mn3S4bdY MXJO7+C/oC02ZoKg5QjX4E7wC1aCdnzxGjDCTQVU/+i4Cfh2Wc6adsBq4DHCKxOacBuA sjZG9K4rRwrBM+WNtbEQfK6mxg+OEDw91ee/Ao5h8M8a3Ri71eUxIInN0ldkDq+70LAm 1JTz1m4pZx+laorL7ELuKim6bu6vH0ci29L8lx8eQ3lL0uskPuDE4sbOyuZ/f0OPKRvP QvaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YIA8tuuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj4si1832779ejb.400.2021.06.09.01.52.58; Wed, 09 Jun 2021 01:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YIA8tuuS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbhFHRY4 (ORCPT + 99 others); Tue, 8 Jun 2021 13:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbhFHRY4 (ORCPT ); Tue, 8 Jun 2021 13:24:56 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27605C061787 for ; Tue, 8 Jun 2021 10:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=vE4hpBkarbGpaIGX2OZfGd8vijIiOr69dHEEgzwDXTQ=; b=YIA8tuuS3e7S0mCJj0aUxxJC4I 8Q8M/0s6wWU/Q8Nc1E7/5pmxI3eRyejmgagZ86c++74cIGGq/2ONq5b4aeWC+xRwctIICESnxfN2I JUrptVnnj+kAsy7Xs9u7oHmwX6okjEG7KnufucaTp+tFJBUMwvHGgFJSwukPHIvIlLAAydPcXWgA4 vOPUC4Rghb8YOAXJrQgwIrSnbI/Ixw4KQU+LsH/dJnDDY4C5zHaVQmtrhFL320vxQ3X/hy3L93ayK K2J1SA8BGtM9BmTAuDHw14M7LRn94l13+GzVoAM4AvxmzmXPNBmEUQyUDR9GCZu5B3Zbbc2b9+RQP NAr7+MFQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqfRB-004orn-OP; Tue, 08 Jun 2021 17:22:56 +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 (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 1354A3001E3; Tue, 8 Jun 2021 19:22:56 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E153B201E7EE3; Tue, 8 Jun 2021 19:22:55 +0200 (CEST) Date: Tue, 8 Jun 2021 19:22:55 +0200 From: Peter Zijlstra To: Nathan Chancellor Cc: Nick Desaulniers , =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , Josh Poimboeuf , lma@semihalf.com, Guenter Roeck , Juergen Gross , lb@semihalf.com, LKML , mbenes@suse.com, =?utf-8?B?UmFkb3PFgmF3?= Biernacki , upstream@semihalf.com, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , Sami Tolvanen Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls Message-ID: References: <20210604205018.2238778-1-ndesaulniers@google.com> <20210604235046.w3hazgcpsg4oefex@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 09:58:03AM -0700, Nathan Chancellor wrote: > On 6/7/2021 1:54 PM, 'Nick Desaulniers' via Clang Built Linux wrote: > > On Mon, Jun 7, 2021 at 2:46 AM Peter Zijlstra wrote: > > > > > > > Thanks, the below diff resolves the linker error reported in > > https://github.com/ClangBuiltLinux/linux/issues/1388 > > > > Both readelf implementations seem happy with the results, too. > > > > Tested-by: Nick Desaulniers > > > > Nathan, > > Can you please test the below diff and see if that resolves your boot > > issue reported in: > > https://github.com/ClangBuiltLinux/linux/issues/1384 > > Unfortunately, it does not appear to resolve that issue. > > $ git log -2 --decorate=no --oneline > eea6a9d6d277 Peter's fix > 614124bea77e Linux 5.13-rc5 > > $ strings /mnt/c/Users/natec/Linux/kernel-investigation | grep microsoft > 5.13.0-rc5-microsoft-standard-WSL2-00001-geea6a9d6d277 > (nathan@archlinux-ax161) #3 SMP Tue Jun 8 09:46:19 MST 2021 > > My VM still never makes it to userspace. Since it's a VM, can you use the gdb-stub to ask it where it's stuck?