Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4283546pxj; Tue, 8 Jun 2021 10:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFKA86wRUe1zbqPW5qYz6pLuKEot0RIYNCQNqSqoZDyTOVJeAl2JAvGziA6TbcVgbsYrud X-Received: by 2002:a17:906:c211:: with SMTP id d17mr24883570ejz.247.1623173616528; Tue, 08 Jun 2021 10:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623173616; cv=none; d=google.com; s=arc-20160816; b=GjYsFnPmphPOvfPtfs7poQs9Whqw+ThHcVnx18ox6j0o+VIPZ8m01DU3vV3ZbtkSyq HUN5nQ/xk5GYGBwXXoakYg9DUfkzvRyHEC2Egz9GLKKdOD6c/CP3tY+4m+TNR28v50nz u8DnY4k1ZTeZifRHDqRXhrX3aCX+QvdN9oifUG+/7/1x6j8TCV03JIrK6GHf2QE2o79n bqeH9ijFrR3ZMqO8tLaT6RiUMZu301Izv/NrLLAlPRfkFhWIjZ91SDve6U2UqSpv7wKV 9IBv4ewhn+bQZwUfBkdmpmBEBTbJu8KJWetUaTEdrO1itVQVLVUl9jq9RBd86xqbx426 iwnw== 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=PkQ238tUQsNsGWVnbmix3voON+Ibs7DcsUVl9FycFhg=; b=0u61ZkQ51/1hrsNG5ZWnzUgCvlhKfkNLsOYFhTF46tI8FZMoAXZ+yh/sIoIZVXQ1Og HHZ6nQaUKj2uyysT9tuRHyvHCGaZNtHCWdT+79zyxT99g5+LyO75qFLEbpKnQUv+Viu2 aMW6vfQMmjEdo3I7M8x+bo4YQPt/incjVlugeMkfK7OH7+zlcOXwEPnGjS5YDw+glQDu jBY+itW2jbJL+LbVhlH8sAwSoGidMY7frPxK+VQZdTPbz7OcnKxWN9EK0ygS5s+nBpxB K220U80Qgw1xpVHx4tscgeKHbusO4jBWhaBv0T9FlLzNQdFuerjdsfwnsn2QfjCGiAdg Za9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VbARVNu/"; 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 j10si183242edp.268.2021.06.08.10.33.07; Tue, 08 Jun 2021 10:33:36 -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="VbARVNu/"; 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 S231983AbhFHRbw (ORCPT + 99 others); Tue, 8 Jun 2021 13:31:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:59608 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbhFHRbv (ORCPT ); Tue, 8 Jun 2021 13:31:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8EA3B61378; Tue, 8 Jun 2021 17:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623173398; bh=ma/CkFfb8CYaaDcX25dR9NFonTv/wOGFyGfkm75Kj9Y=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VbARVNu/BDv7MOreXdH0h0CjHdMLUOauVp/AeplxCuwYNJfohMxtKJWhy8RaPPtQ0 dCplQ8K+KqbASS0q/VrnUAClykw8RFvI/nvJdSIOQ/o27JX68HdKEQkDqm18fze5lq zk92iaQ7GwSSAueUAqMKpRfGSmGvPaD2ZajXpgn/LC3jDf5umXHUyLxyik0BN6QYFg RqSji2MPY67nmh80t4F1wvVMpYSCJmlJVPV3ITkci84klRjfGBu+TnU+iHu9afBMm0 hffBmnxfZlrwmJMmIrglrEN3Es3tjtkpSDNjLAgKwern6vhY1nY0Rgiiy0VyygDxUX s5Riljchq/j0Q== 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: <20210604205018.2238778-1-ndesaulniers@google.com> <20210604235046.w3hazgcpsg4oefex@google.com> From: Nathan Chancellor Message-ID: Date: Tue, 8 Jun 2021 10:29:56 -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 10:22 AM, Peter Zijlstra wrote: > 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? > 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. Cheers, Nathan