Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5146514pxj; Wed, 9 Jun 2021 10:09:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5q+vRf8DdwAy9praKzQ+ltTqiNawavNl1Vomurup+bS/V/MgsSd/3tDeHVoCtSvUUjbdW X-Received: by 2002:a17:906:7d8d:: with SMTP id v13mr880061ejo.2.1623258593912; Wed, 09 Jun 2021 10:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623258593; cv=none; d=google.com; s=arc-20160816; b=S1Fn+EVia6o4w9Z4/dAzSUQd885l/iUENKStc3qTYK82WBm0FibuGv1yZFCSDGG9Tz 7UlJ3+OM97dcrzqDmm5U20sFka5H4dS4VFduAohTOwTCFp/CnIz4hUR3slhIoBGXc03B 5jdcdTfKQgvUvbj2ACrD2ldgkm5poOLSxKGj02qxxxgjIJZtXRYFk66whwK39iqYOby/ UdasmNOSfxDfPLFEJ6KrRX9LiTwJ5QSe4inW4iW5W+guWxQlgbX/vFWRh8RQn4AywioZ mbLWTInHg6e9Q5vGzfjax7Ga7DHV1FFkgxMfMtl9omaJBwmMQHbmKX88DGVE64/bIZew JEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KDN/Y4NVTR4ONCwZelyjSq2F6Y9RLnw1vkdnl5IlqRs=; b=ZUimYjErlOsrwu0vKvDWk4ZONi6n4vH6ZFpXhiDxCAbnmFA4rXF3T057Y8r5bI9UeF flTWThQa+EPZ7bPCpY3TQThUPLJM3QWSKrluZBE3guTTwqB1EQV1Qpr7JH0wW66UExeH eihfo/e0TzeHc6a7VqeXHjE6crGacI5FA8minuvV7HQ1nPH1Ri/VPmjLuUUle7LILwWt 7gb/6V+u2xK+U7RYUn8RtzSeLKwiFqKdeir9liS9+N7YxDsnej9oltaO+nhg7uwV4X0E 0zKAbGWd+V7URm8dIROVhCsbXYFLHuxGy07CYk0qvBr50nb58+A2f7QKQKGy1DQiShuz 8L6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=KPxT3dD2; 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 k11si199760edi.278.2021.06.09.10.09.29; Wed, 09 Jun 2021 10:09:53 -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=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=KPxT3dD2; 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 S236017AbhFIHOh (ORCPT + 99 others); Wed, 9 Jun 2021 03:14:37 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:46898 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235284AbhFIHOg (ORCPT ); Wed, 9 Jun 2021 03:14:36 -0400 Received: by mail-pf1-f181.google.com with SMTP id u126so13725172pfu.13 for ; Wed, 09 Jun 2021 00:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KDN/Y4NVTR4ONCwZelyjSq2F6Y9RLnw1vkdnl5IlqRs=; b=KPxT3dD2Xv5hQ/9Vzr/W5NCK2tV9xqbduw/dMDvLVKZqd2HhHoHhHjegmaJIpWGejS omInBCkhJ7eKs4JoCUV5p6jyhyiY2IF2aGu+ap8ihYe57MXJK8/2e+9pTokHTwze6vMb D3UFQF67vY2raQmjyYGI083bkGZ3YqW0agp3lrBjG5nLwOmv/RNWSBwImjePSmaljvDz L7d619extVGDWfQElHka2Yc2nUORel59OjLsi7tiwvA7eAxRyJIJhsFZN0I69fHJseJE /PvM4sv8mfjiNVROnmfzVps4P7MFoAP/nR1Mxt3RY1k/3H8kVqwdEj/+GHzhERFd0/c1 Q+XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=KDN/Y4NVTR4ONCwZelyjSq2F6Y9RLnw1vkdnl5IlqRs=; b=aV+52JZpkxy3f2EgF0nGrcJkgfKu9/pXG2ye7BG6J1YoY6NgjA8RpE0ffxMthmQziF O2HBTGMe163Hn4F4F3pTaE7NH+5vIY5BQXHjAWDaZkm7MJnKQyZ3LDIBwI2ynbMDCNxi yWqT+bKCiPOdqVRLhJ1RxW7p1W+j/6aqSzodchK6hQSPfwrs3gzNhRYxZxhjYduGkllN LZAvWlZHek2pvgTyXyyCweVBRtZ0eaeM4tFm37wIlbIX0kna912yMMaOwcTB8xPoGnXo JYzADEplU6OfCCyngNBxRQHN6wh3MsHxXFnVBQ295RbQp5vTlshDQGSivCp63+0aPBVF uZmQ== X-Gm-Message-State: AOAM531Fik+VSBK5WLgSQgYAonQaZH/2rl5CjhnC7gvb2B1ooMA9v4oT Bw+3hGvP6Wg5TUKTjc64PHj5zjuR2WVL9w0o9qVlhw== X-Received: by 2002:a62:7cca:0:b029:2e9:c89d:d8a9 with SMTP id x193-20020a627cca0000b02902e9c89dd8a9mr3899409pfc.55.1623222689831; Wed, 09 Jun 2021 00:11:29 -0700 (PDT) MIME-Version: 1.0 References: <20210604235046.w3hazgcpsg4oefex@google.com> <5dd58dce-c3a7-39e5-8959-b858de95b72c@kernel.org> In-Reply-To: <5dd58dce-c3a7-39e5-8959-b858de95b72c@kernel.org> From: Lukasz Majczak Date: Wed, 9 Jun 2021 09:11:18 +0200 Message-ID: Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls To: Nathan Chancellor Cc: Peter Zijlstra , Nick Desaulniers , =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= , Josh Poimboeuf , Guenter Roeck , Juergen Gross , =?UTF-8?Q?=C5=81ukasz_Bartosik?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 8 cze 2021 o 20:49 Nathan Chancellor napisa=C5=82(= a): > > 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 Li= nux so > >> examining it is nigh-impossible :/ I am considering bisecting the tran= sforms > >> that objtool does to try and figure out the one that causes the machin= e 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 i= f > > 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(), sin= ce > > * those create the call insn lists. > > - */ > > ret =3D arch_rewrite_retpolines(file); > > if (ret) > > return ret; > > + */ > > > > return 0; > > } > > > > Cheers, > Nathan Hi Peter, I'm sorry I was on vacation last week - do you still need the requested deb= ugs? Best regards, Lukasz