Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1061579pxu; Mon, 23 Nov 2020 10:36:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPIxqOusXMuIkpUSvyjCMmj2MMDYFGwl09NaKDcBLU4z/QO7/WbNU9O7+I09KxWAl/uwkS X-Received: by 2002:a50:8e0e:: with SMTP id 14mr472287edw.171.1606156586415; Mon, 23 Nov 2020 10:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606156586; cv=none; d=google.com; s=arc-20160816; b=pDrts+zkiR14VdobvduTcSnLcvOL9V9KFX+Nrk75lbJHnSaduh5U2f6zJv5ZGcotX/ NQ4wNQg7TvsenpldV/IbSTxQDLyTXhwmsdrhCG3FIk2dDsrdxuvw2G/l2I3o1GKTrUPi CNv80U+1UnDje9IC1e9awKaetaWLxe+sePp90BUP6qJTXG0SxBVFoG4fgTZSCDjDBmL6 dsBoY56bgNZteBtBbAHhAOIYBR5D+CiKwdy3N8Y1yPGxfxxbNNdoEl+//JlmQCU19+pl zq57tyUDRdJponyA/DvhvG1LLzNGlpAcFgyKZp7rf/uKrCypNPy9yV+gD6NhbVhbldQa GmRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ducm/uE+sMkPK2UOgkqYMUQ4ilvqi+LJ419ruam/qFs=; b=Voq4cAMNfz6Q0bWkxjPAbTB2lsAmBFg3bR9NpiMoAMlAaAt5MashcFU5NDLxalwIuQ FQ7PZjSXgWH2YNdSWqCeKtGFOXrF+bKHTNKli+tY68kvIUaWw5jo7IcvuJVByN/ivNZe qdRvdzupjqdAV6TeiNfQlxnsEBXgnGnhejI9xG6P6T7xLkXMsxKIzsB9S3NkO/ieLurm Noku+ee5cK47+WoBwEVC1fAJGOY0XcLj4UTQYO2fSuWZMrVGUpIpbeyF5u+Zt8DQ9erC a1TH/RGzmFxkVNg88+i3nFj/Zvh8uvuwTr4zJ7CWrcrgt+g49I+uNjEx91IkOrUvUC3W 6FNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=a28npanX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si7022352edc.153.2020.11.23.10.36.03; Mon, 23 Nov 2020 10:36:26 -0800 (PST) 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=@google.com header.s=20161025 header.b=a28npanX; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729816AbgKWSe2 (ORCPT + 99 others); Mon, 23 Nov 2020 13:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729778AbgKWSe2 (ORCPT ); Mon, 23 Nov 2020 13:34:28 -0500 Received: from mail-vk1-xa43.google.com (mail-vk1-xa43.google.com [IPv6:2607:f8b0:4864:20::a43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36777C061A4E for ; Mon, 23 Nov 2020 10:34:28 -0800 (PST) Received: by mail-vk1-xa43.google.com with SMTP id i62so4166431vkb.7 for ; Mon, 23 Nov 2020 10:34:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ducm/uE+sMkPK2UOgkqYMUQ4ilvqi+LJ419ruam/qFs=; b=a28npanXu2b+2Zm6spF8Xxq67i0FF1mofgAXLZrp9sWLlq5VqELCHg7nNtL/fggxfy 4CvQOkS95wisZC5OOhHXgHc7fhFAJxswBiURdiMJ9pvomlaHamPT+ykt9lAJiikZ+dLt osQObvLhHeCEfH726pPrnktuPN+mM05X3eQTo9OM7P951PbVbYXAJtMdKWsW3ZpOJycz Fo60Q7UeI0dsFGaQdho0oc4TBDEtFVDe4gG5sgoLUuJHQYabpl1Mv31/0zpxLkiYJIlP yNiDIkVOpAML5h30am2pinK5OAxNIvR/ui0KubaSslDdw6PBBAOOjQrByts6Koo1ViWx IqJQ== 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; bh=ducm/uE+sMkPK2UOgkqYMUQ4ilvqi+LJ419ruam/qFs=; b=Sy3GOUncZKwcahHRIuogz9QLOrBpa4IX5D7SRVfy4gb8biaPdk0WnLcXpEiLzy+NRu ub8n6Rde4+YH/dqbqkNVKHAkb5ta03i5mosRkDenGw6tbeOkFjrD2CjtW5Wya+uW0gHI KfDd9qQb01fo5yi3V7c5dx+3q34FFxMYMh4/69/y68nam/8ORsLJ/mZl0V5V+ZGIgUN4 3EvuJ4jUUCQQO+yv98eGTSje3WbsXsRajOsmcrxO4bVmssoVPnl/HXqdNzjdAw1R3EWG Zb+7WFrk6XDqeUONTsCxTYyXIJYqy3iz4eCJIrqwqbqLFKovbJ7SSXyIw1+8t2UnAce/ 0LaA== X-Gm-Message-State: AOAM53194hRZuTP+e5p4KWN68gzn52jJFQciU67sPwtj2JP9BluX9Usq J0S2RSkg+5kGNoyNoBiiLpv8+zNkKfhKgxr0QMiTqQ== X-Received: by 2002:a1f:b245:: with SMTP id b66mr1161485vkf.3.1606156467081; Mon, 23 Nov 2020 10:34:27 -0800 (PST) MIME-Version: 1.0 References: <20201118220731.925424-1-samitolvanen@google.com> <20201118220731.925424-16-samitolvanen@google.com> <20201123102149.ogl642tw234qod62@google.com> In-Reply-To: <20201123102149.ogl642tw234qod62@google.com> From: Sami Tolvanen Date: Mon, 23 Nov 2020 10:34:16 -0800 Message-ID: Subject: Re: [PATCH v7 15/17] KVM: arm64: disable LTO for the nVHE directory To: David Brazdil Cc: Masahiro Yamada , Steven Rostedt , Will Deacon , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux , Kernel Hardening , linux-arch , linux-arm-kernel , linux-kbuild , LKML , linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 2:21 AM David Brazdil wrote: > > Hey Sami, > > On Wed, Nov 18, 2020 at 02:07:29PM -0800, Sami Tolvanen wrote: > > We use objcopy to manipulate ELF binaries for the nVHE code, > > which fails with LTO as the compiler produces LLVM bitcode > > instead. Disable LTO for this code to allow objcopy to be used. > > We now partially link the nVHE code (generating machine code) before objcopy, > so I think you should be able to drop this patch now. Tried building your > branch without it, ran a couple of unit tests and all seems fine. Great, thanks for testing this, David! I'll drop this patch from v8. Sami