Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4880786pxj; Wed, 9 Jun 2021 04:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+AOfIToY4CXCXaNR8F40bef7ee1w7FXS2a7rPzeh0lvf9hmSrXNdoMirENAgF8r/4oN5d X-Received: by 2002:a17:907:7749:: with SMTP id kx9mr29023677ejc.90.1623237598744; Wed, 09 Jun 2021 04:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623237598; cv=none; d=google.com; s=arc-20160816; b=iBSl4EuVO4UjkA6XEkT0DHp4Ya2n01YMDWahD/xHMS2eS7NoRz75ePpOzDcN/7VrWY BtntJu2IESA42sxuRzZA5CpOX9tW8iT+8W8EdTCnkUifJ/ueiGzi4JZzmgUa9eew4rx9 Pu2ZP2xI6STdEh5G4IBmeZzuD3UYX5wegDYz4uu/d82jKBNBokajfjpBn9wUUU4Nc5BF Nl1clla5wxpcF5S8MSPFpysDOJUAiCKQ4Q7iPAN+F/Gbt0EjGDeWqx0dYTsbWTSDWW8L y2vaF2ZpzaixeY/kZu+X027naHPeMorsQA34Sn1X/Z87ELOLPtmxmi+4Y8SCHpiGCHby mt5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ZmOdfcCNAaL3072pTDyJv11bEBAuOBGVYrb6TudvEt4=; b=OFAWuF+F/w0QRqDcduSzYf8ovVNj/vq1ExGshaG/doDsfqFujh60bQdizy+abw5cFx Ia1ReEhLWdjxn3z6ac04jo7kNoFm7S8umv6CouGFFNCtwvTtU9lIj1sMFGeAGIqMbvWj +R6CWUaxhbJDpMJcBsR7gpSXEFs/3jgTH7Bq7/PqXy19JHzBMH4yxeI6yNtOUUrBt5ql K++zCiKJnd77oBWw9j2FPK91P1kK3Npq2ecjL0hkgHcGmUMz/dzq7RWTIM62vjqPru0u 86tg1amBhTkb0y5rVf5pYO4m7Q1ha5rVWCCnan7HPToSGmapYqw0wUWSW3ojrZEflSol wU4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m9CxkHzh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si2222314ejz.127.2021.06.09.04.19.35; Wed, 09 Jun 2021 04:19:58 -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=@kernel.org header.s=k20201202 header.b=m9CxkHzh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234400AbhFHT1r (ORCPT + 99 others); Tue, 8 Jun 2021 15:27:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:37984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235621AbhFHTNg (ORCPT ); Tue, 8 Jun 2021 15:13:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F1A156196A; Tue, 8 Jun 2021 18:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623178188; bh=ckYWFdjEJXxvnkQRZWDc6jwPRd5jtBkq4BQAfKzm89Y=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=m9CxkHzhQse/6lwKnbx4+Q8tQ7/4im1G7Jtu0+HNYIQjCpgqmwJT/lxqxp41wJ0YP 9GHsQGEWuQCHlS63lKpzlgmCdPQWAJQduqHidSQo/IugO/8hClOT/n34nxAhAYmKQb tsqoEBqgLZE7kpolyeg6jlAdgqWQEVZX/wfDbycJmUwZmoUPXxEtQES1RlsB0In6nD 0KQfinqh9DKhX3rSwRHiQHOTA1wf12n4H+tUummX3fVK8+KcHyuOlu5LZZHuhCKEd+ OuFxV2EQveHvaEZMjVzOhOaZZb/AhexpxrEQJEjeJny0hGuOdB2pDkNhd4ov4PqSFC TlKfrgaqNvn3w== Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls To: Peter Zijlstra 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?Q?Rados=c5=82aw_Biernacki?= , upstream@semihalf.com, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , Sami Tolvanen References: <20210604235046.w3hazgcpsg4oefex@google.com> From: Nathan Chancellor Message-ID: <5dd58dce-c3a7-39e5-8959-b858de95b72c@kernel.org> Date: Tue, 8 Jun 2021 11:49:47 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/8/2021 11:17 AM, Peter Zijlstra wrote: > On Tue, Jun 08, 2021 at 10:29:56AM -0700, Nathan Chancellor wrote: >> Unfortunately, this is the VM provided by the Windows Subsystem for Linux so >> examining it is nigh-impossible :/ I am considering bisecting the transforms >> that objtool does to try and figure out the one that causes the machine to >> fail to boot or try to reproduce in a different hypervisor, unless you have >> any other ideas. > > Does breaking Windows earn points similar to breaking the binary > drivers? :-) :-) :) > The below should kill this latest transform and would quickly confirm if > the that is causing your problem. If that's not it, what was your last > known working version? Yes, that diff gets me back to booting. I will see if I can figure out the exact rewrite that blows everything up. > diff --git a/tools/objtool/check.c b/tools/objtool/check.c > index e5947fbb9e7a..d0f231b9c5a1 100644 > --- a/tools/objtool/check.c > +++ b/tools/objtool/check.c > @@ -1857,10 +1857,10 @@ static int decode_sections(struct objtool_file *file) > * Must be after add_special_section_alts(), since this will emit > * alternatives. Must be after add_{jump,call}_destination(), since > * those create the call insn lists. > - */ > ret = arch_rewrite_retpolines(file); > if (ret) > return ret; > + */ > > return 0; > } > Cheers, Nathan